/* Grand Ellora Partners Portal — Styles */

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

:root {
    --gold: #D4A84B;
    --gold-light: #E8C068;
    --gold-dark: #B8923D;
    --navy: #0A2E2A;
    --navy-light: #134840;
    --charcoal: #0f0f23;
    --cream: #F8FAF8;
    --white: #FFFFFF;
    --error: #E74C3C;
    --success: #2ECC71;
    --border: rgba(212, 168, 75, 0.15);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-light: rgba(255, 255, 255, 0.7);
    --text: #ccc;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 24px rgba(212, 168, 75, 0.15);
    --transition: 0.2s ease;

    /* Status colors */
    --status-new: #3B82F6;
    --status-contacted: #F59E0B;
    --status-site-visit: #8B5CF6;
    --status-negotiation: #F97316;
    --status-closed-won: #10B981;
    --status-closed-lost: #EF4444;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--charcoal);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(212, 168, 75, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(10, 46, 42, 0.3) 0%, transparent 60%);
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--gold);
    text-decoration: none;
}

/* ─── Loading Screen ──────────────────────────── */

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ─── Login Page ──────────────────────────────── */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-container {
    text-align: center;
    width: 100%;
    max-width: 380px;
    animation: fadeIn 0.8s ease-out;
}

.login-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 24px rgba(212, 168, 75, 0.2));
    animation: logoReveal 1.2s ease-out;
}

.login-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 1.5rem;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* ─── Forms ───────────────────────────────────── */

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

.form-input.error {
    border-color: var(--error);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-input option {
    background: var(--charcoal);
    color: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

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

/* ─── Password Toggle ────────────────────────── */

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

.input-password-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
    padding: 0;
}

.password-toggle:hover {
    color: var(--gold);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* ─── Buttons ─────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    outline: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    box-shadow: var(--shadow-gold);
}

.login-container .btn-primary,
#passwordForm .btn-primary {
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    box-shadow: var(--shadow-gold);
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
}

.btn-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(212, 168, 75, 0.25);
}

.btn-gold svg {
    width: 18px;
    height: 18px;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-download {
    padding: 0.5rem 1rem;
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid rgba(212, 168, 75, 0.25);
    border-radius: var(--radius);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-download:hover:not(:disabled) {
    background: rgba(212, 168, 75, 0.2);
    border-color: var(--gold);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212, 168, 75, 0.08);
}

/* ─── Error / Success Messages ────────────────── */

.message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.message.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.message-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #E74C3C;
}

.message-success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ECC71;
}

/* ─── Modal / Overlay ─────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-lead {
    max-width: 520px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions .btn-primary {
    flex: 1;
}

.modal-actions .btn-cancel {
    flex: 0 0 auto;
}

/* ─── Dashboard Layout ────────────────────────── */

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 48px;
    height: auto;
    border-radius: 4px;
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.08em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-user {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius);
    color: #E74C3C;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #E74C3C;
}

/* ─── Dashboard Content ───────────────────────── */

.dashboard-content {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* ─── Welcome Banner ─────────────────────────── */

.welcome-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.welcome-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ─── Stats Row ──────────────────────────────── */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
    border-color: rgba(212, 168, 75, 0.3);
    transform: translateY(-2px);
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-new .stat-value { color: var(--status-new); }
.stat-new { border-color: rgba(59, 130, 246, 0.2); }

.stat-progress .stat-value { color: var(--status-contacted); }
.stat-progress { border-color: rgba(245, 158, 11, 0.2); }

.stat-won .stat-value { color: var(--status-closed-won); }
.stat-won { border-color: rgba(16, 185, 129, 0.2); }

/* ─── Section ────────────────────────────────── */

.section {
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--cream);
    font-weight: 600;
}

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

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 3rem 0 2.5rem;
}

/* ─── Filters ────────────────────────────────── */

.leads-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.55rem 2.2rem 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    transition: border-color var(--transition);
}

.filter-select:focus {
    border-color: var(--gold);
}

.filter-select option {
    background: var(--charcoal);
    color: var(--white);
}

/* ─── Data Table ─────────────────────────────── */

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead {
    background: rgba(212, 168, 75, 0.06);
}

.data-table th {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition);
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: rgba(212, 168, 75, 0.04);
}

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

.lead-name {
    font-weight: 500;
    color: var(--cream);
}

.date-cell {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.row-chevron {
    color: var(--text-muted);
    transition: color var(--transition);
}

.data-table tbody tr:hover .row-chevron {
    color: var(--gold);
}

/* ─── Status Badges ──────────────────────────── */

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-new {
    background: rgba(59, 130, 246, 0.12);
    color: var(--status-new);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-contacted {
    background: rgba(245, 158, 11, 0.12);
    color: var(--status-contacted);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-site-visit {
    background: rgba(139, 92, 246, 0.12);
    color: var(--status-site-visit);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.status-negotiation {
    background: rgba(249, 115, 22, 0.12);
    color: var(--status-negotiation);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.status-closed-won {
    background: rgba(16, 185, 129, 0.12);
    color: var(--status-closed-won);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-closed-lost {
    background: rgba(239, 68, 68, 0.12);
    color: var(--status-closed-lost);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ─── Lead Detail Panel ──────────────────────── */

.lead-detail-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.lead-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.lead-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    font-weight: 600;
}

.lead-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--cream);
}

.detail-notes-section {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-notes {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0.5rem;
    white-space: pre-wrap;
}

/* ─── Materials Grid ─────────────────────────── */

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.material-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), background var(--transition);
}

.material-card:hover {
    border-color: rgba(212, 168, 75, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.material-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(212, 168, 75, 0.08);
    color: var(--gold);
    flex-shrink: 0;
}

.material-info {
    flex: 1;
    min-width: 0;
}

.material-title {
    font-size: 0.9rem;
    color: var(--cream);
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.material-project {
    color: var(--gold);
    font-weight: 500;
}

.material-category {
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.material-size {
    color: var(--text-muted);
}

/* ─── Empty State ─────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: rgba(212, 168, 75, 0.2);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Loading State ───────────────────────────── */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.loading-state .loading-spinner {
    width: 32px;
    height: 32px;
}

/* ─── Toast Notifications ─────────────────────── */

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-color: rgba(46, 204, 113, 0.3);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error {
    border-color: rgba(231, 76, 60, 0.3);
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-info .toast-icon {
    color: var(--gold);
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--cream);
}

/* ─── Animations ──────────────────────────────── */

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

@keyframes logoReveal {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ─── Responsive ──────────────────────────────── */

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1.5rem 1rem;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.25rem;
    }

    .btn-gold {
        width: 100%;
        justify-content: center;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .leads-filters {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .lead-detail-body {
        grid-template-columns: 1fr;
    }

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

    .material-card {
        flex-wrap: wrap;
    }

    .material-card .btn-download {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

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

    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .login-logo {
        width: 160px;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .dashboard-header {
        padding: 0.85rem 1rem;
    }

    .header-logo {
        width: 36px;
    }

    .header-title {
        font-size: 0.85rem;
    }

    .header-user {
        display: none;
    }

    .btn-logout {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.7rem 0.85rem;
        font-size: 0.8rem;
    }

    .data-table th {
        font-size: 0.65rem;
    }

    .welcome-banner {
        padding: 1.25rem;
    }

    .welcome-title {
        font-size: 1.1rem;
    }

    .modal {
        padding: 1.5rem;
    }

    .modal-lead {
        max-width: 100%;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .toast-container {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ─── Scrollbar ──────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 75, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 75, 0.35);
}

/* ─── Selection ──────────────────────────────── */

::selection {
    background: rgba(212, 168, 75, 0.25);
    color: var(--cream);
}
