/*
Theme Name: vClock Premium
Description: Beautiful clock tools with modern design
Version: 2.0
*/

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=DM+Mono:wght@300;400;500&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Light Mode - Fresh & Clean */
    --bg-body: #f0f5fa;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(145deg, #ffffff, #f8fcff);
    --text-primary: #1a2639;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-1: #4158D0;
    --accent-2: #C850C0;
    --accent-3: #FFCC70;
    --accent-gradient: linear-gradient(135deg, #4158D0 0%, #C850C0 100%);
    --success: #00b09b;
    --warning: #fbbf24;
    --danger: #f43f5e;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-gradient: linear-gradient(145deg, #1e293b, #233040);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-1: #60a5fa;
    --accent-2: #c084fc;
    --accent-3: #fcd34d;
    --border: #334155;
}

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mono-text {
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.5px;
}

/* ===== Container ===== */
.vclock-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 640px) {
    .vclock-wrapper {
        padding: 30px;
    }
}

/* ===== Theme Toggle ===== */
.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.theme-btn i {
    font-size: 18px;
    color: var(--accent-2);
}

/* ===== Header ===== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: var(--bg-gradient);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65, 88, 208, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-header h1 {
    font-size: 56px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 40px;
    }
    
    .page-header p {
        font-size: 18px;
    }
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.nav-link {
    padding: 14px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.nav-link i {
    font-size: 18px;
    color: var(--accent-2);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-link:hover i {
    color: white;
}

.nav-link.active {
    background: var(--accent-gradient);
    color: white;
}

.nav-link.active i {
    color: white;
}

@media (max-width: 640px) {
    .nav-link {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== Breadcrumbs ===== */
.breadcrumb-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 14px 25px;
    margin-bottom: 30px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--accent-1);
}

.breadcrumb-sep {
    color: var(--text-muted);
    margin: 0 5px;
}

.breadcrumb-current {
    color: var(--accent-2);
    font-weight: 600;
}

/* ===== Cards ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-title span {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

/* ===== Time Display ===== */
.hero-time {
    text-align: center;
    padding: 40px 20px;
}

.time-digits {
    font-family: 'DM Mono', monospace;
    font-size: 110px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: 8px;
    text-shadow: var(--shadow-lg);
    margin: 20px 0;
}

.date-text {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .time-digits {
        font-size: 70px;
        letter-spacing: 4px;
    }
    
    .date-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .time-digits {
        font-size: 50px;
    }
}

/* ===== Location Badge ===== */
.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 12px 30px;
    margin: 20px auto;
    box-shadow: var(--shadow-md);
}

.location-flag {
    font-size: 28px;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}

.location-name {
    font-size: 18px;
    font-weight: 600;
}

/* ===== Control Grid ===== */
.control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

@media (min-width: 480px) {
    .control-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .control-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.control-item {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
}

.control-item:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px);
}

.control-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.control-value select,
.control-value input {
    width: 100%;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'DM Mono', monospace;
    font-size: 16px;
}

/* ===== Preset Grid ===== */
.preset-section {
    margin: 30px 0;
}

.preset-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    .preset-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

.preset-btn {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px 5px;
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-gradient);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
    opacity: 0.2;
}

.preset-btn:hover::before {
    width: 300px;
    height: 300px;
}

.preset-btn:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Buttons ===== */
.action-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.action-btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(65, 88, 208, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -5px rgba(65, 88, 208, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
}

.btn-outline:hover {
    background: var(--accent-1);
    color: white;
}

@media (max-width: 480px) {
    .action-group {
        flex-direction: column;
    }
}

/* ===== Lists ===== */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.list-item:hover {
    border-color: var(--accent-2);
    transform: translateX(5px);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.item-time {
    font-family: 'DM Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.item-badge {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--accent-gradient);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.item-delete {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.item-delete:hover {
    background: rgba(244, 63, 94, 0.1);
    transform: scale(1.1);
}

/* ===== Recent Grid ===== */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 480px) {
    .recent-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .recent-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.recent-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-card:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.recent-time {
    font-family: 'DM Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.recent-label {
    font-size: 11px;
    opacity: 0.8;
}

/* ===== City Grid ===== */
.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

@media (min-width: 480px) {
    .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .city-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.city-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.city-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.city-tile:hover::before {
    transform: translateX(0);
}

.city-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.city-tile.active {
    border: 2px solid var(--accent-2);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-body));
}

.city-flag {
    font-size: 36px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}

.city-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.city-country {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.city-time {
    font-family: 'DM Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-1);
}

/* ===== FAQ Section ===== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-1);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--accent-2);
    font-size: 20px;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-left: 30px;
}

/* ===== Popular Cities Section ===== */
.popular-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
}

.popular-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.popular-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.popular-title {
    font-size: 24px;
    font-weight: 700;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 640px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.popular-item {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.popular-item:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateX(5px);
}

.popular-flag {
    font-size: 28px;
}

.popular-info h4 {
    font-weight: 700;
    margin-bottom: 2px;
}

.popular-info p {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== SEO Description ===== */
.seo-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.seo-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65, 88, 208, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.seo-content {
    position: relative;
    z-index: 1;
}

.seo-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.seo-content p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.seo-content ul {
    margin: 20px 0 20px 30px;
}

.seo-content li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 16px;
}

.seo-content li strong {
    color: var(--accent-1);
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.keyword-tag {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .seo-box {
        padding: 30px;
    }
    
    .seo-content h2 {
        font-size: 26px;
    }
}

/* ===== Footer ===== */
.page-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 15px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: var(--accent-1);
    transform: translateY(-2px);
}

/* ===== Loading & Empty States ===== */
.loading-state {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    background: var(--bg-body);
    border-radius: var(--radius-md);
    font-size: 16px;
}

/* ===== Print Styles ===== */
@media print {
    .theme-switch,
    .main-nav,
    .action-group,
    .preset-grid,
    .item-delete {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .glass-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

moni

        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #f8fafc;
            --bg-secondary: #f1f5f9;
            --bg-card: #ffffff;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #64748b;
            --accent: #3b82f6;
            --accent-hover: #2563eb;
            --accent-soft: #dbeafe;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --border: #e2e8f0;
            --border-light: #f1f5f9;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
            --radius-sm: 8px;
            --radius: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
        }

        [data-theme="dark"] {
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-card: #1e293b;
            --text-primary: #f8fafc;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --accent: #60a5fa;
            --accent-hover: #3b82f6;
            --accent-soft: #1e3a8a;
            --border: #334155;
            --border-light: #1e293b;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
            min-height: 100vh;
            transition: background-color 0.3s, color 0.3s;
        }

        .calculator-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2px;
        }

        /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
        }

        .theme-btn {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 40px;
            padding: 10px 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            box-shadow: var(--shadow);
            transition: all 0.2s;
        }

        .theme-btn:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
        }

        /* Header */
        .calculator-header {
            text-align: center;
            margin-bottom: 40px;
            padding-top: 20px;
        }

        .calculator-header h1 {
            font-size: 42px;
            font-weight: 700;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
            letter-spacing: -0.5px;
        }

        .calculator-header p {
            color: var(--text-muted);
            font-size: 16px;
        }

        /* Main Card */
        .calculator-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 20px;
            box-shadow: var(--shadow-lg);
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-title i {
            color: var(--accent);
            font-size: 28px;
        }

        /* Input Grid */
        .input-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        @media (min-width: 768px) {
            .input-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .input-group {
            margin-bottom: 5px;
        }

        .input-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .input-label i {
            color: var(--accent);
            font-size: 16px;
            width: 20px;
        }

        .input-field {
            width: 100%;
            padding: 16px 18px;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            border: 2px solid var(--border);
            border-radius: var(--radius);
            background: var(--bg-secondary);
            color: var(--text-primary);
            transition: all 0.2s;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

        .input-field:hover {
            border-color: var(--accent);
        }

        .input-field::placeholder {
            color: var(--text-muted);
            opacity: 0.5;
        }

        select.input-field {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 18px;
        }

        /* Info Note */
        .info-note {
            background: var(--accent-soft);
            border-left: 4px solid var(--accent);
            padding: 12px 10px;
            border-radius: var(--radius);
            margin-bottom: 15px;
            color: var(--text-primary);
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .info-note i {
            color: var(--accent);
            font-size: 18px;
        }

        /* Calculate Button */
        .btn-calculate {
            width: 100%;
            padding: 18px 24px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            color: white;
            border: none;
            border-radius: var(--radius);
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 8px 20px rgba(59,130,246,0.3);
        }

        .btn-calculate:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(59,130,246,0.4);
        }

        .btn-calculate i {
            font-size: 20px;
        }

        /* Result Box */
        .result-box {
            margin-top: 10px;
            padding: 10px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .result-box.show {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .result-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .result-title i {
            color: var(--accent);
        }

        /* Tax Breakdown Grid */
        .tax-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 15px;
        }

        @media (min-width: 768px) {
            .tax-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .tax-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 10px 11px;
            text-align: center;
            transition: all 0.3s;
        }

        .tax-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
            box-shadow: var(--shadow);
        }

        .tax-icon {
            width: 48px;
            height: 48px;
            background: var(--accent-soft);
            border-radius: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            color: var(--accent);
            font-size: 20px;
        }

        .tax-label {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tax-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .tax-value.federal {
            color: #ef4444;
        }

        .tax-value.state {
            color: #f59e0b;
        }

        .tax-value.ss {
            color: #3b82f6;
        }

        .tax-value.medicare {
            color: #8b5cf6;
        }

        /* Net Income Card */
        .net-income-card {
            background: linear-gradient(135deg, #10b981, #059669);
            border-radius: var(--radius);
            padding: 10px;
            text-align: center;
            margin-bottom: 10px;
            color: white;
            box-shadow: var(--shadow-lg);
        }

        .net-label {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.9;
            margin-bottom: 10px;
        }

        .net-amount {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 5px;
            line-height: 1.2;
        }

        .net-sub {
            font-size: 14px;
            opacity: 0.9;
        }

        /* Take Home Grid */
        .takehome-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin: 25px 0;
        }

        @media (max-width: 640px) {
            .takehome-grid {
                grid-template-columns: 1fr;
            }
        }

        .takehome-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 10px;
            text-align: center;
        }

        .takehome-label {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .takehome-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--accent);
        }

        /* Chart Container */
        .chart-container {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 10px;
            margin: 10px 0;
            height: 350px;
        }

        /* Breakdown Table */
        .breakdown-table {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            margin: 15px 0;
        }

        .breakdown-row {
            display: flex;
            justify-content: space-between;
            padding: 11px 10px;
            border-bottom: 1px solid var(--border);
        }

        .breakdown-row:last-child {
            border-bottom: none;
        }

        .breakdown-row.total {
            background: var(--accent-soft);
            font-weight: 600;
        }

        .breakdown-label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
        }

        .breakdown-label i {
            color: var(--accent);
            width: 20px;
        }

        .breakdown-amount {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* State Grid */
        .state-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-top: 15px;
        }

        @media (min-width: 640px) {
            .state-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .state-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .state-badge {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 40px;
            padding: 8px 12px;
            font-size: 13px;
            color: var(--text-secondary);
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .state-badge:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .state-badge.highlight {
            background: var(--accent-soft);
            border-color: var(--accent);
            color: var(--accent);
            font-weight: 500;
        }

        /* Info Cards */
        .info-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin: 10px 0;
        }

        @media (min-width: 768px) {
            .info-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .info-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 24px;
            text-align: center;
            transition: all 0.3s;
        }

        .info-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
            box-shadow: var(--shadow-lg);
        }

        .info-icon {
            width: 56px;
            height: 56px;
            background: var(--accent-soft);
            border-radius: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            color: var(--accent);
            font-size: 24px;
        }

        .info-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .info-desc {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.6;
        }

        /* FAQ Section */
        .faq-section {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 10px;
            margin: 10px 0;
        }

        .faq-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 10px;
            text-align: center;
        }

        .faq-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        @media (min-width: 768px) {
            .faq-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .faq-item {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 14px;
        }

        .faq-question {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .faq-question i {
            color: var(--accent);
            font-size: 18px;
        }

        .faq-answer {
            color: var(--text-muted);
            font-size: 14px;
            line-height: 1.7;
            margin-left: 28px;
        }

        

        /* Responsive */
        @media (max-width: 768px) {
            .calculator-header h1 {
                font-size: 32px;
            }
            
            .calculator-card {
                padding: 15px;
            }
            
            .net-amount {
                font-size: 36px;
            }
            
            .chart-container {
                height: 300px;
            }
            
            .faq-section {
                padding: 25px;
            }
        }

        @media (max-width: 480px) {
            .calculator-header h1 {
                font-size: 28px;
            }
            
            .card-title {
                font-size: 20px;
            }
            
            .input-field {
                padding: 14px;
            }
            
            .btn-calculate {
                padding: 16px;
                font-size: 16px;
            }
            
            .tax-grid {
                grid-template-columns: 1fr;
            }
            
            .net-amount {
                font-size: 32px;
            }
        }