/* ==========================================================================
   SoloCalc CSS Design System
   ========================================================================== */

:root {
    /* Colors - Dark Mode (Default) */
    --bg-primary: hsl(222, 47%, 8%);
    --bg-secondary: hsl(222, 40%, 12%);
    --bg-card: hsl(222, 35%, 16%);
    --bg-glass: hsla(222, 40%, 15%, 0.65);
    --bg-glass-hover: hsla(222, 40%, 20%, 0.75);
    --border-glass: hsla(0, 0%, 100%, 0.08);
    --border-glass-hover: hsla(0, 0%, 100%, 0.15);

    --text-primary: hsl(210, 40%, 96%);
    --text-secondary: hsl(215, 20%, 65%);
    --text-muted: hsl(215, 15%, 45%);

    --accent-violet: hsl(258, 90%, 66%);
    --accent-violet-glow: hsla(258, 90%, 66%, 0.3);
    --accent-emerald: hsl(160, 84%, 50%);
    --accent-emerald-glow: hsla(160, 84%, 50%, 0.25);
    --accent-amber: hsl(38, 92%, 60%);
    --accent-amber-glow: hsla(38, 92%, 60%, 0.2);
    --accent-rose: hsl(346, 87%, 60%);

    --gradient-primary: linear-gradient(135deg, var(--accent-violet), hsl(280, 80%, 55%));
    --gradient-emerald: linear-gradient(135deg, var(--accent-emerald), hsl(180, 70%, 45%));
    --gradient-card: linear-gradient(135deg, hsla(258, 50%, 30%, 0.15), hsla(222, 40%, 20%, 0.45));

    --shadow-sm: 0 2px 8px hsla(0,0%,0%,0.3);
    --shadow-md: 0 8px 24px hsla(0,0%,0%,0.4);
    --shadow-lg: 0 16px 48px hsla(0,0%,0%,0.5);
    --shadow-glow-violet: 0 0 25px var(--accent-violet-glow);
    --shadow-glow-emerald: 0 0 25px var(--accent-emerald-glow);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', var(--font-primary);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-primary: hsl(220, 25%, 97%);
    --bg-secondary: hsl(220, 20%, 93%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-glass: hsla(220, 20%, 100%, 0.75);
    --bg-glass-hover: hsla(220, 20%, 95%, 0.85);
    --border-glass: hsla(0, 0%, 0%, 0.08);
    --border-glass-hover: hsla(0, 0%, 0%, 0.15);

    --text-primary: hsl(222, 47%, 12%);
    --text-secondary: hsl(215, 20%, 42%);
    --text-muted: hsl(215, 15%, 60%);

    --accent-violet-glow: hsla(258, 90%, 66%, 0.15);
    --accent-emerald: hsl(165, 85%, 26%);
    --accent-emerald-glow: hsla(165, 85%, 26%, 0.12);

    --shadow-sm: 0 2px 8px hsla(0,0%,0%,0.05);
    --shadow-md: 0 8px 24px hsla(0,0%,0%,0.08);
    --shadow-lg: 0 16px 48px hsla(0,0%,0%,0.12);
    
    --gradient-card: linear-gradient(135deg, hsla(258, 50%, 95%, 0.5), hsla(220, 20%, 98%, 0.5));
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-violet);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.app-container {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Navigation */
.sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: width var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.logo-icon {
    background: var(--gradient-primary);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-violet);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item i {
    font-size: 1.15rem;
    width: 24px;
    display: flex;
    justify-content: center;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: var(--bg-glass);
}

.nav-item.active {
    color: var(--accent-violet);
    background-color: var(--bg-glass-hover);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background-color: var(--accent-violet);
    border-radius: 0 4px 4px 0;
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-control {
    display: flex;
    justify-content: center;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-glass);
    border-color: var(--border-glass-hover);
}

body:not(.light-mode) .sun-icon { display: block; }
body:not(.light-mode) .moon-icon { display: none; }
body.light-mode .sun-icon { display: none; }
body.light-mode .moon-icon { display: block; }

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    border-color: var(--border-glass-hover);
}

.curr-lang-flag {
    margin-right: 4px;
}

.lang-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    padding: 6px;
    z-index: 105;
}

.lang-dropdown.open {
    display: flex;
    animation: fadeInUp 0.2s ease forwards;
}

.lang-option {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.lang-option:hover {
    background-color: var(--bg-glass-hover);
    color: var(--accent-violet);
}

/* Main Content Panel */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-primary);
    position: relative;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    background-color: hsla(222, 47%, 8%, 0.8);
    backdrop-filter: blur(12px);
    z-index: 95;
    transition: background-color var(--transition-base);
}

body.light-mode .header-bar {
    background-color: hsla(220, 25%, 97%, 0.8);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.breadcrumb .parent {
    color: var(--text-secondary);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .active {
    color: var(--accent-violet);
    font-weight: 600;
}

.content-wrapper {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.mobile-nav-toggle {
    display: none;
}

/* ==========================================================================
   Typography & Accents
   ========================================================================== */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-emerald-text {
    background: var(--gradient-emerald);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Components: Cards, Tabs, Buttons
   ========================================================================== */

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-md);
}

.glass-card.highlighted {
    border-color: var(--accent-emerald);
    box-shadow: var(--shadow-glow-emerald);
}

.glass-card.violet-glow {
    box-shadow: var(--shadow-glow-violet);
}

.glass-card.secondary-card {
    background-color: var(--bg-card);
}

/* Tab Navigation */
.tab-nav {
    display: inline-flex;
    background-color: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-md);
    gap: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--border-glass);
}

.tab-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-glass);
}

.tab-btn.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow-violet);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-violet);
}

.btn-primary:hover {
    box-shadow: 0 0 35px hsla(258, 90%, 66%, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

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

@media (max-width: 600px) {
    .input-row {
        grid-template-columns: 1fr;
    }
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: var(--shadow-glow-violet);
    background-color: var(--bg-glass);
}

.input-prefix {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
}

.input-suffix {
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
}

.has-prefix .input-field {
    padding-left: 36px;
}

.has-suffix .input-field {
    padding-right: 48px;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Custom Range Sliders */
.range-container {
    margin-top: 10px;
    margin-bottom: 24px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--accent-violet);
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-glow-violet);
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: hsl(258, 95%, 72%);
}

.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--accent-violet);
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-glow-violet);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.range-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-violet);
    font-family: var(--font-display);
}

/* Custom Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
}

.toggle-switch {
    position: relative;
    width: 46px;
    height: 24px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    transition: background-color var(--transition-base);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--text-muted);
    top: 2px;
    left: 2px;
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.toggle-container.active .toggle-switch {
    background-color: var(--accent-violet);
}

.toggle-container.active .toggle-switch::before {
    transform: translateX(22px);
    background-color: #fff;
    box-shadow: var(--shadow-glow-violet);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   Page Layout Structures
   ========================================================================== */

.page-header {
    margin-bottom: 36px;
}

.page-title {
    font-size: 2.25rem;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

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

/* Results Panel */
.result-panel {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-color: var(--border-glass-hover);
}

.result-header {
    text-align: center;
}

.result-main {
    text-align: center;
    padding: 16px 0;
}

.result-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.result-value {
    font-size: 3.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1.1;
    color: var(--accent-emerald);
    transition: transform var(--transition-fast);
}

.result-value.counting {
    animation: pulse 0.3s ease-in-out;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.result-row-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-row-value {
    font-weight: 600;
    color: var(--text-primary);
}

.result-row-value.accent {
    color: var(--accent-violet);
    font-weight: 700;
}

/* ==========================================================================
   Home / Hero Page Styling
   ========================================================================== */

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-violet);
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 0.95rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 650px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    border-top: 1px solid var(--border-glass);
    padding-top: 48px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--accent-emerald);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Feature grid */
.home-section-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 12px;
}

.home-section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-violet);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover .feature-icon-wrapper {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow-violet);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-action-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-violet);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color var(--transition-fast);
}

.feature-action-link i {
    transition: transform var(--transition-fast) ease;
}

.feature-card:hover .feature-action-link {
    color: var(--accent-emerald);
}

.feature-card:hover .feature-action-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   Serbian Calculator: Comparison Layout
   ========================================================================== */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

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

.comparison-card {
    border-color: var(--border-glass);
}

.comparison-card.recommended {
    border-color: var(--accent-emerald);
    box-shadow: var(--shadow-glow-emerald);
}

.recommended-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-emerald);
    color: hsl(222, 47%, 8%);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.comparison-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-glass);
}

.comparison-metric:last-child {
    border-bottom: none;
}

.comparison-metric-label {
    color: var(--text-secondary);
}

.comparison-metric-value {
    font-weight: 600;
}

.comparison-metric-value.highlight {
    color: var(--accent-emerald);
    font-size: 1.25rem;
    font-weight: 700;
}

.comparison-metric-value.highlight-red {
    color: var(--accent-rose);
    font-weight: 600;
}

/* ==========================================================================
   Platform Fee Breakdown Bar
   ========================================================================== */

.breakdown-bar-container {
    margin: 20px 0;
}

.breakdown-bar {
    height: 16px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.breakdown-segment {
    height: 100%;
    transition: width var(--transition-slow);
}

.segment-payout { background-color: var(--accent-emerald); }
.segment-platform { background-color: var(--accent-violet); }
.segment-gateway { background-color: var(--accent-amber); }

.bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.payout { background-color: var(--accent-emerald); }
.legend-dot.platform { background-color: var(--accent-violet); }
.legend-dot.gateway { background-color: var(--accent-amber); }

/* ==========================================================================
   SVG Charts Components
   ========================================================================== */

.chart-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.chart-container {
    width: 160px;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.chart-svg {
    transform: rotate(-90deg);
}

.donut-track {
    fill: none;
    stroke: var(--bg-secondary);
}

.donut-segment {
    fill: none;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-center-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chart-center-value {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.chart-center-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.faq-item:hover {
    border-color: var(--border-glass-hover);
    background-color: var(--bg-glass-hover);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.faq-question i {
    transition: transform var(--transition-base);
    color: var(--accent-violet);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.open {
    border-color: var(--accent-violet);
    background-color: var(--bg-glass-hover);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-violet);
}

.faq-item.open .faq-answer {
    max-height: 2000px;
    padding-bottom: 20px;
    padding-top: 4px;
    transition: max-height 0.5s ease, padding 0.25s ease;
}

/* ==========================================================================
   SEO & WordPress Developer Strategy View
   ========================================================================== */

.seo-card {
    border-left: 4px solid var(--accent-violet);
}

.seo-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.seo-meta-table th, .seo-meta-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.seo-meta-table th {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.code-block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-emerald);
    overflow-x: auto;
    margin: 12px 0 24px;
    white-space: pre-wrap;
    word-break: break-all;
}

.wp-checklist {
    list-style: none;
    margin-top: 16px;
}

.wp-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.wp-checklist li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-emerald);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.75rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in forwards;
}

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }

/* ==========================================================================
   Responsive Adaptation & Sidebar Mechanics
   ========================================================================== */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 80px 1fr;
    }
    
    .sidebar {
        width: 80px;
    }
    
    .logo-text, .nav-item span, .curr-lang-text, .curr-lang-flag + .fa-chevron-up, .lang-btn i {
        display: none;
    }
    
    .sidebar-header {
        justify-content: center;
        padding: 16px 0;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px 0;
    }
    
    .nav-item i {
        font-size: 1.35rem;
    }
    
    .theme-toggle-btn span {
        display: none;
    }
    
    .theme-toggle-btn {
        padding: 8px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        margin: 0 auto;
    }
    
    .lang-btn {
        justify-content: center;
        padding: 10px 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        margin: 0 auto;
    }
    
    .curr-lang-flag {
        margin-right: 0;
        font-size: 1.2rem;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        padding-bottom: 64px; /* bottom navbar space */
    }
    
    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: 64px;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border-glass);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
        z-index: 1000;
        overflow: visible;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        padding: 0;
        height: 100%;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        overflow-y: visible;
    }
    
    .nav-item {
        flex: 1;
        height: 100%;
        border-radius: 0;
        padding: 0;
        justify-content: center;
        align-items: center;
    }
    
    .nav-item.active {
        background-color: transparent;
        color: var(--accent-violet);
    }
    
    .nav-item.active::before {
        left: 15%;
        right: 15%;
        top: 0;
        bottom: auto;
        height: 3px;
        width: 70%;
        border-radius: 0 0 4px 4px;
    }
    
    .sidebar-footer {
        display: none; /* hidden or moved to page */
    }
    
    .header-bar {
        padding: 16px 20px;
    }
    
    .content-wrapper {
        padding: 24px 16px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

/* ==========================================================================
   Benchmark & Niche Pricing UI
   ========================================================================== */

.select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

.benchmark-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-meter-container {
    margin: 12px 0;
}

.comparison-meter-bar {
    height: 10px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.comparison-meter-fill {
    height: 100%;
    width: 50%;
    transition: width var(--transition-slow), background-color var(--transition-base);
    background-color: var(--accent-emerald);
}

.comparison-meter-fill.undercharging {
    background-color: var(--accent-rose);
}

.comparison-meter-fill.competitive {
    background-color: var(--accent-emerald);
}

.comparison-meter-fill.premium {
    background-color: var(--accent-amber);
}

.comparison-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all var(--transition-base);
}

.comparison-alert.alert-undercharging {
    background-color: hsla(346, 87%, 60%, 0.1);
    border-color: var(--accent-rose);
    color: var(--text-primary);
}

.comparison-alert.alert-competitive {
    background-color: hsla(160, 84%, 50%, 0.1);
    border-color: var(--accent-emerald);
    color: var(--text-primary);
}

.comparison-alert.alert-premium {
    background-color: hsla(38, 92%, 60%, 0.1);
    border-color: var(--accent-amber);
    color: var(--text-primary);
}

.market-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-glass);
}

.market-stat-row:last-child {
    border-bottom: none;
}
/* ==========================================================================
   Advanced Calculator Options UI
   ========================================================================== */

.advanced-options-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--transition-base) ease;
    opacity: 0;
    pointer-events: none;
}

.advanced-options-panel.visible {
    max-height: 3000px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 24px;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
}

/* Dynamic Expense Listing */
.expenses-list-container {
    margin-bottom: 24px;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    animation: fadeInUp 0.2s ease forwards;
}

.expense-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.expense-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expense-item-cost {
    font-weight: 700;
    color: var(--accent-rose);
}

.delete-expense-btn {
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.delete-expense-btn:hover {
    color: var(--accent-rose);
}

.expense-add-form {
    display: grid;
    grid-template-columns: 2.2fr 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .expense-add-form {
        grid-template-columns: 1fr;
    }
}

/* Niche Skills Panel */
.skills-category {
    margin-bottom: 24px;
}

.skills-category-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    user-select: none;
}

.skill-tag-pill:hover {
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
}

.skill-tag-pill.active {
    background-color: var(--accent-emerald) !important;
    border-color: var(--accent-emerald) !important;
    color: #0e131f !important;
    box-shadow: var(--shadow-glow-emerald);
}

.skill-tag-pill i {
    margin-right: 4px;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.skill-tag-pill.active i {
    color: #0e131f !important;
}

.skill-percent-badge {
    background-color: var(--bg-primary);
    color: var(--accent-violet);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    transition: all var(--transition-fast);
}

.skill-tag-pill.active .skill-percent-badge {
    background-color: #0e131f !important;
    color: var(--accent-emerald) !important;
}

/* Rate Impact Factors list */
.impact-factors-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.impact-factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-glass);
    font-size: 0.9rem;
}

.impact-factor-item:last-child {
    border-bottom: none;
}

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

.impact-factor-value {
    font-weight: 700;
    font-family: var(--font-display);
}

.impact-factor-value.positive {
    color: var(--accent-emerald);
}

.impact-factor-value.negative {
    color: var(--accent-rose);
}

.impact-factor-value.neutral {
    color: var(--text-muted);
}

/* ==========================================================================
   Invoice Generator Styles
   ========================================================================== */
.invoice-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

.invoice-editor {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.invoice-sheet-container {
    position: sticky;
    top: 2rem;
}

.invoice-sheet {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-primary);
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-base), color var(--transition-base);
}

/* Light mode overrides inside invoice preview to always print crisp black on white */
.light-mode-invoice-sheet {
    background: #ffffff !important;
    color: #1a1e26 !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.light-mode-invoice-sheet .invoice-sheet-title {
    color: #6366f1 !important;
}

.light-mode-invoice-sheet .invoice-sheet-meta,
.light-mode-invoice-sheet .invoice-party-details,
.light-mode-invoice-sheet .invoice-sheet-notes,
.light-mode-invoice-sheet .invoice-totals-table td:first-child {
    color: #4b5563 !important;
}

.light-mode-invoice-sheet .invoice-party-box h4,
.light-mode-invoice-sheet .invoice-sheet-notes h5 {
    color: #9ca3af !important;
}

.light-mode-invoice-sheet .invoice-party-name,
.light-mode-invoice-sheet .invoice-sheet-meta strong,
.light-mode-invoice-sheet td,
.light-mode-invoice-sheet th {
    color: #111827 !important;
}

.light-mode-invoice-sheet th {
    background-color: #f3f4f6 !important;
    border-bottom-color: #e5e7eb !important;
}

.light-mode-invoice-sheet td {
    border-bottom-color: #f3f4f6 !important;
}

.light-mode-invoice-sheet .invoice-totals-table tr.grand-total td {
    border-top-color: #e5e7eb !important;
    color: var(--accent-emerald) !important;
}

/* Invoice Branding & Header */
.invoice-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.invoice-sheet-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--accent-violet);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invoice-sheet-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.invoice-sheet-meta div {
    margin-bottom: 4px;
}

.invoice-sheet-meta strong {
    color: var(--text-primary);
}

/* Billing Parties */
.invoice-sheet-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.invoice-party-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 700;
}

.invoice-party-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.invoice-party-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* Invoice Table */
.invoice-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.invoice-sheet-table th {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--border-glass);
}

.invoice-sheet-table th.text-right,
.invoice-sheet-table td.text-right {
    text-align: right;
}

.invoice-sheet-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.invoice-item-desc-text {
    font-weight: 600;
}

/* Invoice Totals */
.invoice-sheet-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.invoice-totals-table {
    width: 260px;
    border-collapse: collapse;
}

.invoice-totals-table td {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
}

.invoice-totals-table tr.grand-total td {
    border-top: 2px solid var(--border-glass);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-emerald);
}

/* Notes & Footnote */
.invoice-sheet-notes {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.invoice-sheet-notes h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
}

/* Interactive list styling */
.invoice-item-row-editor {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--bg-secondary);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: 8px;
}

.invoice-item-row-editor input {
    margin-bottom: 0 !important;
}

/* Print Stylesheet Overrides */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .app-container {
        display: block !important;
    }
    .sidebar, 
    .header-bar, 
    .page-header,
    .invoice-editor, 
    .site-footer,
    .btn,
    #theme-toggle,
    .lang-switcher {
        display: none !important;
    }
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    .content-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
    }
    .invoice-sheet-container {
        position: relative !important;
        top: 0 !important;
    }
    .invoice-sheet {
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .invoice-sheet-title {
        color: #6366f1 !important;
    }
    .invoice-sheet-table th {
        background-color: #f3f4f6 !important;
        color: #111827 !important;
        border-bottom: 2px solid #e5e7eb !important;
    }
    .invoice-sheet-table td {
        border-bottom: 1px solid #f3f4f6 !important;
        color: #111827 !important;
    }
    .invoice-totals-table tr.grand-total td {
        border-top: 2px solid #e5e7eb !important;
        color: var(--accent-emerald) !important;
    }
}

/* Standardized caution & alert cards */
.alert-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 1rem;
    align-items: flex-start;
    border: 1px solid transparent;
}
.alert-card.warning {
    background: hsla(38, 92%, 60%, 0.08);
    border: 1px solid hsla(38, 92%, 60%, 0.2);
    border-left: 4px solid var(--accent-amber);
    color: var(--text-secondary);
}
.alert-card.warning i {
    color: var(--accent-amber);
    font-size: 1rem;
    margin-top: 2px;
}
.alert-card.info {
    background: hsla(258, 90%, 66%, 0.08);
    border: 1px solid hsla(258, 90%, 66%, 0.2);
    border-left: 4px solid var(--accent-violet);
    color: var(--text-secondary);
}
.alert-card.info i {
    color: var(--accent-violet);
    font-size: 1rem;
    margin-top: 2px;
}

/* ==========================================================================
   New Modules: Simulated Auth, History Tables, Retainer/Runway Gauges
   ========================================================================== */

/* Custom Auth Layout */
.auth-container {
    max-width: 480px;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.auth-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow-violet);
}

.auth-tabs {
    display: flex;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: 2rem;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
}

.auth-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.auth-tab-btn.active {
    background: var(--gradient-primary);
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .input-field {
    padding-left: 44px !important;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    pointer-events: none;
}

.input-with-icon input:focus + i {
    color: var(--accent-violet) !important;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--text-primary) !important;
    transform: translateY(-50%) scale(1.1);
}

.auth-link {
    font-size: 0.82rem;
    color: var(--accent-violet);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.auth-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-violet-glow);
}

.auth-footer-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
    margin-top: 0.5rem;
}

.auth-footer-link:hover {
    color: var(--accent-violet);
}

.social-login-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0.75rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

.social-login-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.social-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.social-btn i {
    font-size: 1.05rem;
}

/* Verification digits */
.verify-digits-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.verify-digit-input {
    width: 54px;
    height: 54px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 0;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.verify-digit-input:focus {
    border-color: var(--accent-violet) !important;
    box-shadow: var(--shadow-glow-violet) !important;
    background-color: var(--bg-glass-hover) !important;
}

.verify-digit-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

/* Password Strength Meter */
.password-strength-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-strength-bars {
    display: flex;
    gap: 4px;
    height: 4px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-secondary);
}

.password-strength-bar {
    flex: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.password-strength-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}
.auth-profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-glass);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}
.auth-profile-avatar {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.auth-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.history-section {
    margin-top: 2rem;
}
.history-table-container {
    overflow-x: auto;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.history-table th, .history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}
.history-table th {
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}
.history-actions {
    display: flex;
    gap: 8px;
}

/* Retainer Calc & Runway Calc Custom Visual Gauges */
.gauge-bar-wrapper {
    margin-top: 1rem;
}
.gauge-bar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
}
.gauge-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gauge-fill.violet { background: var(--gradient-primary); }
.gauge-fill.emerald { background: var(--gradient-emerald); }
.gauge-fill.rose { background: var(--accent-rose); }
.gauge-fill.amber { background: var(--accent-amber); }

/* Logo Uploader styling in Invoice Editor */
.logo-upload-container {
    border: 2px dashed var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    margin-bottom: 1.25rem;
}
.logo-upload-container:hover {
    border-color: var(--accent-violet);
    background: var(--bg-glass);
}
.logo-preview-box {
    margin-top: 1rem;
    max-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 8px;
    background: white;
}
.logo-preview-box img {
    max-height: 80px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    object-fit: contain;
}
.logo-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-rose);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* Invoice Integrity verification hash */
.invoice-integrity-tag {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-glass);
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.invoice-sheet-logo-placeholder {
    max-height: 50px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Specialties Card Directory Styles */
.specialties-container {
    margin-top: 1.5rem;
}

.specialties-search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.specialty-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-violet-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

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

.specialty-card:hover::before {
    opacity: 0.15;
}

.specialty-card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--accent-violet);
    margin-bottom: 1.25rem;
    z-index: 1;
    transition: transform var(--transition-base);
}

.specialty-card:hover .specialty-card-icon {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: white;
}

.specialty-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    z-index: 1;
}

.specialty-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    z-index: 1;
}

.specialty-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
    padding-top: 0.75rem;
    z-index: 1;
    font-family: var(--font-primary);
}

.specialty-card-meta strong {
    color: var(--accent-emerald);
}

/* SEO Specialty guides block on hourly calculator */
.specialty-seo-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.specialty-seo-guide {
    margin-bottom: 2.5rem;
}

.specialty-seo-guide h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.specialty-seo-guide p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.specialty-seo-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-violet);
    background: var(--accent-violet-glow);
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Blog Styling */
.blog-body-content {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-body-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
}

.blog-body-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-violet);
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    font-family: var(--font-display);
}

.blog-body-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.blog-body-content ul, .blog-body-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.blog-body-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-body-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-body-content a {
    color: var(--accent-violet);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-violet);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.blog-body-content a:hover {
    color: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

/* Custom visual improvements for the new tools */
#tax-chart-container, #net-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}




