/* ==========================================
   Unveil Design Client Dashboard
   Refined, light, editorial aesthetic
   Matching unveildesign.com brand language
   ========================================== */

/* @font-face — Zalando Sans Variable Fonts */
@font-face {
    font-family: 'Zalando Sans';
    src: url('../assets/fonts/Zalando_Sans/ZalandoSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('../assets/fonts/Zalando_Sans/ZalandoSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans SemiExpanded';
    src: url('../assets/fonts/Zalando_Sans_SemiExpanded/ZalandoSansSemiExpanded-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans SemiExpanded';
    src: url('../assets/fonts/Zalando_Sans_SemiExpanded/ZalandoSansSemiExpanded-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans Expanded';
    src: url('../assets/fonts/Zalando_Sans_Expanded/ZalandoSansExpanded-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans Expanded';
    src: url('../assets/fonts/Zalando_Sans_Expanded/ZalandoSansExpanded-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-bg: #1A1A1A;
    --color-bg-card: #2B2B2B;
    --color-bg-sidebar: #2B2B2B;
    --color-bg-hover: #353535;
    --color-bg-input: rgba(255, 255, 255, 0.05);
    --color-accent: #ED6C43;
    --color-accent-hover: #FF7E55;
    --color-accent-soft: rgba(237, 108, 67, 0.12);
    --color-accent-medium: rgba(237, 108, 67, 0.2);
    --color-charcoal: #FFFFFF;
    --color-charcoal-light: #E0E0E0;
    --color-text: #FFFFFF;
    --color-text-secondary: #A0A0A0;
    --color-text-muted: #707070;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.06);
    --color-success: #4CAF50;
    --color-success-bg: rgba(76, 175, 80, 0.12);
    --color-warning: #FFC107;
    --color-warning-bg: rgba(255, 193, 7, 0.12);
    --color-error: #F44336;
    --color-error-bg: rgba(244, 67, 54, 0.12);
    --color-info: #2196F3;
    --color-info-bg: rgba(33, 150, 243, 0.12);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.04);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-lg: 16px;

    --sidebar-width: 272px;
    --header-height: 64px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-normal: 0.25s var(--ease-out);
    --transition-slow: 0.4s var(--ease-out);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Zalando Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Headers — SemiExpanded for card/section headers */
.form-header h2,
.plan-card h2,
.plan-card h3,
.contract-card h3,
.support-hours-card h3,
.other-services h3,
.payment-history h3,
.billing-actions h3,
.info-card h3,
.update-title {
    font-family: 'Zalando Sans SemiExpanded', 'Zalando Sans', sans-serif;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ==========================================
   Login Page — Split Screen
   ========================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Left side — form panel with blurred background */
.login-form-side {
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    z-index: 2;
}

/* Blurred background image behind the form side */
.login-form-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/Background.png') center center / cover no-repeat;
    filter: blur(50px) brightness(0.15);
    transform: scale(1.15);
    z-index: -2;
}

/* Dark overlay for readability */
.login-form-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.65);
    z-index: -1;
}

/* Right side — full background image */
.login-bg-side {
    width: 50%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-bg-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/Background.png') 100% center / cover no-repeat;
    transition: transform 0.6s var(--ease-out);
}

.login-bg-side:hover::before {
    transform: scale(1.03);
}

/* Subtle vignette on image side */
.login-bg-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.3) 0%,
        transparent 30%,
        transparent 100%
    );
    pointer-events: none;
}

/* Divider line between panels */
.login-container > .login-form-side {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: loginReveal 0.6s var(--ease-out) 0.15s both;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

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

.glass-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Hide the logo on login since it's in the background */
.login-logo {
    display: none;
}

.login-logo img {
    width: 200px;
    height: auto;
}

.login-card h1 {
    font-family: 'Zalando Sans Expanded', 'Zalando Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-family: 'Zalando Sans SemiExpanded', 'Zalando Sans', sans-serif;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

.login-card .form-group {
    text-align: left;
    margin-bottom: 22px;
}

.login-card label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.login-card input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.login-card input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
}

.toggle-password:hover {
    color: #FFFFFF;
}

.error-message {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-bottom: 12px;
    min-height: 20px;
}

/* Login button — accent colored on the login screen */
.login-card .btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.login-card .btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(237, 108, 67, 0.3);
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--color-accent);
}

/* Login responsive — stack on mobile */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .login-form-side {
        width: 100%;
        min-height: 100vh;
        padding: 32px 24px;
    }

    .login-bg-side {
        display: none;
    }

    .login-card {
        max-width: 400px;
    }
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-text-secondary);
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Dashboard Layout
   ========================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-right: 1px solid var(--color-border);
    border-left: none;
    border-top: none;
    border-bottom: none;
    z-index: 100;
    transition: transform var(--transition-normal);
    background: var(--color-bg-sidebar);
    box-shadow: none;
}

.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.sidebar-header .welcome-text {
    font-size: 0.85rem;
    padding-top: 16px;
    margin-bottom: -4px;
    border-top: 1px solid var(--color-border-light);
    width: calc(100% + 40px);
    text-align: center;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.sidebar-header .welcome-text span {
    color: var(--color-text) !important;
    font-weight: 700 !important;
}

.sidebar-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

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

.nav-item.active {
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--color-border-light);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.client-avatar {
    width: 36px;
    height: 36px;
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-avatar i {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.client-details {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}

.client-plan {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--color-error-bg);
    border: 1px solid rgba(192, 57, 43, 0.12);
    border-radius: var(--radius-sm);
    color: var(--color-error);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: rgba(192, 57, 43, 0.12);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--color-bg);
}

.dashboard-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px;
}

.dashboard-header h1 {
    font-family: 'Zalando Sans Expanded', 'Zalando Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-charcoal);
}

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

.welcome-text span {
    color: var(--color-text);
    font-weight: 700;
}

/* Page Content */
.page-content {
    padding: 28px 32px 48px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageReveal 0.35s var(--ease-out);
}

/* Keep analytics iframe loaded in background */
#page-analytics {
    display: block !important;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 0;
    overflow: hidden;
}

#page-analytics.active {
    visibility: visible;
    position: relative;
    pointer-events: auto;
    height: auto;
    overflow: visible;
}

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

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ==========================================
   Analytics Page
   ========================================== */
.analytics-embed {
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 500px;
}

.analytics-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

/* ==========================================
   Updates Page
   ========================================== */
.updates-header {
    margin-bottom: 20px;
}

.filter-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
}

.filter-group label {
    color: var(--color-text-secondary);
    font-size: 0.825rem;
    font-weight: 600;
}

.filter-group select {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    color: var(--color-text);
    padding: 6px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
}

.filter-group select option {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.updates-timeline {
    position: relative;
}

.update-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.update-item:hover {
    border-color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.update-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.update-icon.maintenance {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.update-icon.feature {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.update-icon.fix {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.update-icon.content {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.update-icon.construction {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.update-content {
    flex: 1;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.update-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--color-bg-hover);
    color: var(--color-text-secondary);
}

.update-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.update-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-charcoal);
    letter-spacing: -0.01em;
}

.update-description {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.loading-spinner {
    text-align: center;
    padding: 48px;
    color: var(--color-text-muted);
}

.loading-spinner i {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

/* ==========================================
   Form Pages (Request & Support)
   ========================================== */
.form-card {
    padding: 32px;
    max-width: 680px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-charcoal);
}

.form-header p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.925rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--color-bg-card);
}

.form-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

.form-hint a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.form-hint a:hover {
    text-decoration: underline;
}

.form-status {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: none;
}

.form-status.success {
    display: block;
    background: var(--color-success-bg);
    border: 1px solid rgba(45, 138, 78, 0.15);
    color: var(--color-success);
}

.form-status.error {
    display: block;
    background: var(--color-error-bg);
    border: 1px solid rgba(192, 57, 43, 0.15);
    color: var(--color-error);
}

/* Support Page Grid */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    padding: 20px;
    margin-top: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-charcoal);
}

.info-card h3 i {
    color: var(--color-accent);
    font-size: 0.9rem;
}

.info-card p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-card a {
    font-weight: 600;
}

/* ==========================================
   Billing Page
   ========================================== */
.billing-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.plan-card {
    padding: 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.plan-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
}

.plan-card h3 i {
    color: var(--color-accent);
}

.plan-card h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-charcoal);
}

.plan-price {
    margin-bottom: 8px;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-charcoal);
    letter-spacing: -0.03em;
}

.plan-price .period {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.plan-features {
    text-align: left;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.plan-feature i {
    color: var(--color-success);
    font-size: 0.8rem;
}

.support-hours-card {
    padding: 28px;
    text-align: center;
    grid-column: 1 / -1;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.support-hours-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
}

.support-hours-card h3 i {
    color: var(--color-accent);
}

.support-hours-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hours-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-charcoal);
    line-height: 1;
    letter-spacing: -0.03em;
}

.hours-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.support-hours-disclaimer {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.contract-card {
    padding: 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.contract-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
}

.contract-card h3 i {
    color: var(--color-accent);
}

.contract-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

.other-services {
    padding: 24px;
    margin-bottom: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.other-services h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
}

.other-services h3 i {
    color: var(--color-accent);
}

.payment-history {
    padding: 24px;
    margin-bottom: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.payment-history h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
}

.payment-history h3 i {
    color: var(--color-accent);
}

.table-responsive {
    overflow-x: auto;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th,
.payment-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.payment-table th {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-table td {
    font-size: 0.875rem;
    color: var(--color-text);
}

.payment-table tr:last-child td {
    border-bottom: none;
}

.payment-table .status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.payment-table .status.paid {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.payment-table .status.pending {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.payment-table .invoice-link {
    color: var(--color-accent);
    font-weight: 500;
}

.billing-actions {
    padding: 24px;
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.billing-actions h3 {
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-charcoal);
}

.billing-actions p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* ==========================================
   Toast Notifications
   ========================================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.35s var(--ease-out);
    max-width: 380px;
}

.toast.success {
    border-left: 3px solid var(--color-success);
}

.toast.error {
    border-left: 3px solid var(--color-error);
}

.toast.info {
    border-left: 3px solid var(--color-info);
}

.toast i {
    font-size: 1.1rem;
}

.toast.success i { color: var(--color-success); }
.toast.error i { color: var(--color-error); }
.toast.info i { color: var(--color-info); }

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--color-text);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%) translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* Alias for backwards compat with JS */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .billing-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .support-info .info-card {
        flex: 1;
        min-width: 200px;
    }
}

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 20px;
    }

    .dashboard-header {
        padding: 0 20px;
    }

    .dashboard-header h1 {
        font-size: 1.05rem;
    }

    .header-right .welcome-text {
        display: none;
    }

    .login-card {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-trend {
        margin-top: 12px;
    }

    .update-item {
        flex-direction: column;
    }

    .support-info {
        flex-direction: column;
    }

    .support-info .info-card {
        min-width: auto;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ==========================================
   File Upload (kept for compatibility)
   ========================================== */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.upload-placeholder p {
    margin-bottom: 4px;
    color: var(--color-text);
}

.upload-placeholder span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-hover);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.file-preview-item i {
    color: var(--color-accent);
}

.file-preview-item .remove-file {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}
