:root { --bg: #f4f7f6; --card-bg: #ffffff; --primary: #2c3e50; --accent: #d35400; --gold: #b8860b; --lucky: #27ae60; --bad: #c0392b; --shadow: 0 10px 30px rgba(0,0,0,0.08); --border: 1px solid #eef2f3; }

    body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--primary); margin: 0; padding: 20px; line-height: 1.5; padding-bottom: 70px; }
    .container { max-width: 1000px; margin: 0 auto; }
    .header { text-align: center; margin-bottom: 40px; }
    .header h1 { font-size: 2.2rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 5px; color: var(--primary); }
    .header p { color: #7f8c8d; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; }
    .controls { background: var(--card-bg); padding: 25px; border-radius: 20px; box-shadow: var(--shadow); display: flex; gap: 20px; justify-content: center; align-items: flex-end; margin-bottom: 25px; flex-wrap: wrap; }
    .input-group { display: flex; flex-direction: column; gap: 8px; }
    .input-group label { font-size: 11px; font-weight: 700; color: #95a5a6; text-transform: uppercase; }
    input, select { padding: 12px 15px; border: 1.5px solid #edf2f7; border-radius: 12px; font-size: 14px; background: #fafafa; transition: all 0.2s; }
    input:focus, select:focus { border-color: var(--accent); outline: none; background: #fff; }
    .dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
    .card { background: var(--card-bg); padding: 25px; border-radius: 20px; box-shadow: var(--shadow); position: relative; border-top: 5px solid var(--primary); transition: transform 0.2s; }
    .card:hover { transform: translateY(-3px); }
    .card h3 { margin: 0 0 15px 0; font-size: 13px; text-transform: uppercase; color: #94a3b8; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
    .big-text { font-size: 28px; font-weight: 800; margin: 10px 0; color: var(--primary); letter-spacing: -1px; }
    .sub-text { font-size: 14px; color: #546e7a; margin: 8px 0; display: flex; justify-content: space-between; border-bottom: 1px dashed #f1f5f9; padding-bottom: 5px; }
    .sub-text strong { color: var(--primary); }
    .badge { display: inline-block; padding: 5px 12px; border-radius: 10px; font-size: 11px; font-weight: 800; margin-top: 5px; }
    .badge-lucky { background: #e8f5e9; color: var(--lucky); }
    .badge-bad { background: #ffebee; color: var(--bad); }
    .personal-zone { grid-column: 1 / -1; background: #fffdf9; border: 1.5px solid #f1e4d1; border-top: 5px solid var(--accent); }
    .personal-zone h3 { color: var(--accent); border-color: #f1e4d1; }
    .input-row { display: flex; gap: 15px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
    #personalResult { background: #ffffff; border-radius: 15px; padding: 20px; border: 1px solid #f1e4d1; min-height: 50px; }
    .highlight-fate { color: var(--accent); font-weight: 800; border-bottom: 2px solid var(--accent); }
    .full-width-card { grid-column: 1 / -1; background: linear-gradient(to bottom right, #ffffff, #fcfcfc); }
    .grid-hours { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; justify-content: center; }
    .hour-item { background: white; padding: 10px 25px; border-radius: 50px; font-size: 14px; font-weight: 700; color: var(--primary); border: 1.5px solid #edf2f7; box-shadow: 0 2px 4px rgba(0,0,0,0.03); display: flex; align-items: center; gap: 8px; transition: all 0.3s; }
    .hour-now { border-color: var(--accent) !important; background: #fffcf0 !important; box-shadow: 0 0 15px rgba(211, 84, 0, 0.2); animation: pulse-border 2s infinite; }
    @keyframes pulse-border { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
    .hour-item::before { content: ""; width: 8px; height: 8px; background: var(--lucky); border-radius: 50%; }
    .btn-main { padding: 12px 25px; cursor: pointer; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: bold; transition: opacity 0.2s; }
    .btn-accent { padding: 12px 25px; cursor: pointer; background: var(--accent); color: white; border: none; border-radius: 12px; font-weight: bold; transition: opacity 0.2s; }
    button:hover { opacity: 0.9; }
    table { width: 100%; border-collapse: collapse; margin-top: 10px; }
    tr:hover { background-color: #fff9f9; }
    td { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
    .element-icon { font-style: normal; font-weight: normal; margin-left: 5px; }
    .status-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(44, 62, 80, 0.98); color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); border-top: 2px solid var(--accent); }
    .status-info { display: flex; gap: 20px; align-items: center; }
    .status-item { font-size: 13px; }
    .status-item strong { color: #f1c40f; font-size: 16px; margin-left: 5px; }
    .timer-container { display: flex; align-items: center; gap: 10px; min-width: 250px; }
    .progress-bg { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
    .progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 1s linear; }
    #countdownText { font-family: monospace; font-size: 14px; font-weight: bold; min-width: 70px; }
    .weather-section { grid-column: 1 / -1; margin-top: 10px; }
    .scroll-24h { display: flex; overflow-x: auto; gap: 12px; padding: 15px 5px; scrollbar-width: thin; }
    .weather-node { min-width: 110px; padding: 15px 10px; border-radius: 20px; text-align: center; flex-shrink: 0; border: var(--border); background: var(--card-bg); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
    .weather-node.active-now { border: 2px solid var(--accent); background: #fffdf9; }
    .uv-low { background: linear-gradient(135deg, #f0fff4, #c6f6d5); color: #22543d; }
    .uv-mod { background: linear-gradient(135deg, #fff9db, #fab005); color: #5c4100; }
    .uv-high { background: linear-gradient(135deg, #fffaf0, #ed8936); color: #7b341e; }
    .uv-veryhigh { background: linear-gradient(135deg, #fff5f5, #e53e3e); color: #742a2a; }
    .uv-extreme { background: linear-gradient(135deg, #faf5ff, #805ad5); color: #322659; }
    .w-night { background: linear-gradient(135deg, #2c3e50, #1a1a1a) !important; color: #ffffff !important; border: none; }
    .w-night .h-info, .w-night .h-desc, .w-night .h-time { color: rgba(255, 255, 255, 0.9) !important; }
    .w-night .h-info b { color: #f1c40f; }
    .active-now { box-shadow: 0 0 15px rgba(211, 84, 0, 0.4); }
    .w-sunny { background: linear-gradient(135deg, #fff9db, #fab005); color: #5c4100; border: none; }
    .w-rainy { background: linear-gradient(135deg, #e7f5ff, #228be6); color: #003865; border: none; }
    .h-time { font-size: 12px; font-weight: 800; opacity: 0.8; }
    .h-temp { font-size: 1.5rem; font-weight: 900; margin: 5px 0; }
    .h-desc { font-size: 10px; font-weight: 700; text-transform: uppercase; }
    .h-info { font-size: 10px; margin-top: 5px; line-height: 1.4; opacity: 0.9; }