/* Grand Ellora Staff Portal — Shared 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;
}

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);
}

/* ─── 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 {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    box-shadow: var(--shadow-gold);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
}

.btn-icon {
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.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-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

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

/* ─── 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: 900px;
    width: 100%;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    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;
}

/* ─── Upload Area ─────────────────────────────── */

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    border: none;
    border-radius: var(--radius);
    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);
}

.upload-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

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

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

/* ─── Upload Progress ─────────────────────────── */

.upload-progress {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

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

.upload-progress-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* ─── File List ───────────────────────────────── */

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(212, 168, 75, 0.08);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}

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

.file-name {
    font-size: 0.9rem;
    color: var(--cream);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ─── 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);
}

/* ─── Delete Confirm ──────────────────────────── */

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

.btn-danger {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: var(--radius);
    color: #E74C3C;
    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-danger:hover {
    background: rgba(231, 76, 60, 0.25);
}

.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);
}

/* ─── 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;
    }

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

    .file-item {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .file-icon {
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
    }

    .file-name {
        font-size: 0.85rem;
    }

    .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;
    }

    .header-nav-link span {
        display: none;
    }

    .header-nav-link {
        padding: 0.45rem;
    }

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

    .file-meta {
        font-size: 0.7rem;
    }

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

    .modal {
        padding: 1.5rem;
    }

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

/* ─── Directory Page ─────────────────────────────── */

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

/* Tier sections */
.org-tier {
    margin-bottom: 2.5rem;
}

.org-tier-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding-bottom: 0.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 168, 75, 0.25);
}

/* Base card */
.org-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.org-card:hover {
    border-color: rgba(212, 168, 75, 0.35);
    box-shadow: 0 2px 16px rgba(212, 168, 75, 0.08);
}

/* Chairman card — centered, prominent */
.org-card--chairman {
    text-align: center;
    border-color: rgba(212, 168, 75, 0.4);
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.org-card--chairman .org-card-header {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.org-card--chairman .org-card-name {
    font-size: 1.15rem;
}

.org-card--chairman .org-role-detail {
    text-align: center;
}

/* VP card — compact */
.org-card--vp {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(212, 168, 75, 0.1);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.6rem;
}

.org-card--vp .org-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.6rem;
}

.org-card--vp .org-card-name {
    font-size: 0.85rem;
}

/* Avatar */
.org-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(212, 168, 75, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 75, 0.08);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.org-card--chairman .org-avatar {
    width: 72px;
    height: 72px;
    font-size: 1rem;
    border-width: 2.5px;
    border-color: var(--gold);
}

/* Post header: badge + title */
.org-post-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

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

.org-card--chairman .org-post-header {
    justify-content: center;
}

.org-card--chairman .org-post-title {
    font-size: 1.2rem;
}

/* Holders row */
.org-holders {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.org-card--chairman .org-holders {
    justify-content: center;
}

.org-holder {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.org-holder-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold-light);
}

.org-card--chairman .org-holder-name {
    font-size: 1rem;
}

/* Card header: avatar + name + badges row */
.org-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.org-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* Role badges row */
.org-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.org-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: rgba(212, 168, 75, 0.12);
    border: 1px solid rgba(212, 168, 75, 0.25);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.org-badge--vp {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

/* Per-role expandable detail */
.org-role-detail {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.org-role-detail + .org-role-detail {
    margin-top: 0.75rem;
}

.org-role-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.org-role-title .org-badge {
    font-size: 0.6rem;
}

.org-role-title-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cream);
}

/* Description text */
.org-desc {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.org-desc--hindi {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
    margin-top: 0;
}

.org-desc--hindi.open {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.35rem;
}

/* Hindi toggle button */
.org-toggle-hindi {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: color var(--transition);
}

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

.org-toggle-hindi .arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 0.65rem;
}

.org-toggle-hindi.open .arrow {
    transform: rotate(90deg);
}

/* VP reports container */
.org-reports {
    margin-top: 1.25rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(212, 168, 75, 0.25);
}

.org-reports-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

/* Nav link in header */
.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

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

.header-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

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

    .org-card {
        padding: 1rem 1.15rem;
    }

    .org-card--chairman {
        padding: 1.5rem 1.15rem;
    }

    .org-reports {
        padding-left: 0.85rem;
    }

    .org-avatar {
        width: 44px;
        height: 44px;
        font-size: 0.7rem;
    }

    .org-card--chairman .org-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .org-card-header {
        gap: 0.75rem;
    }

    .org-card-name {
        font-size: 0.92rem;
    }

    .org-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    .org-desc {
        font-size: 0.78rem;
    }

    .org-reports {
        padding-left: 0.65rem;
    }

    .org-card--vp .org-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.55rem;
    }

    .org-card--vp .org-card-name {
        font-size: 0.8rem;
    }
}

/* ─── User Storage Usage Bar ────────────────────── */

.usage-bar {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.usage-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.usage-bar-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.usage-bar-value {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.usage-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.usage-fill.warning {
    background: linear-gradient(90deg, #E74C3C, #c0392b);
}

.usage-bar-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ─── Admin Divider ─────────────────────────────── */

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

/* ─── Admin Badge ───────────────────────────────── */

.admin-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(212, 168, 75, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.35);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 0.5rem;
}

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

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

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

/* ─── Admin User List ───────────────────────────── */

.admin-users {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.admin-user-row:hover {
    border-color: rgba(212, 168, 75, 0.3);
}

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

.admin-user-name {
    font-size: 0.9rem;
    color: var(--cream);
    font-weight: 500;
}

.admin-user-detail {
    font-size: 0.75rem;
    color: var(--cream);
    margin-top: 0.15rem;
    opacity: 0.85;
}

.admin-user-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.admin-usage-bar {
    width: 120px;
    flex-shrink: 0;
}

.admin-usage-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.admin-usage-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.admin-usage-fill.warning {
    background: #E74C3C;
}

.admin-usage-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    text-align: center;
}

.admin-user-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.admin-action-btn {
    padding: 0.4rem 0.7rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

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

.admin-action-btn--danger:hover {
    color: #E74C3C;
    border-color: rgba(231, 76, 60, 0.4);
    background: rgba(231, 76, 60, 0.08);
}

/* ─── Credential Display ────────────────────────── */

.credential-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1rem 0;
}

.credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.credential-row + .credential-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.credential-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.05em;
    user-select: all;
}

/* ─── Form Hint / Modal Note ────────────────────── */

.form-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.modal-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.5;
    padding: 0.75rem;
    background: rgba(212, 168, 75, 0.06);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}

/* ─── Admin Modal Buttons ───────────────────────── */

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

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

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

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

@media (max-width: 768px) {
    .admin-user-row {
        flex-wrap: wrap;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .admin-usage-bar {
        width: 100%;
        order: 3;
    }

    .admin-user-actions {
        order: 4;
        width: 100%;
        justify-content: flex-start;
    }

    .admin-user-info {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .admin-action-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.62rem;
    }

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

    .usage-bar {
        padding: 0.85rem 1rem;
    }
}

/* ═══════════════════════════════════════════════ */
/* ─── VISITING CARD MODAL ─────────────────────── */
/* ═══════════════════════════════════════════════ */

.card-modal .modal {
    max-width: 720px;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

/* ─── Profile Form ──────────────────────────────── */

.profile-form {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-photo-area {
    flex-shrink: 0;
    text-align: center;
}

.profile-photo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(212, 168, 75, 0.4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 75, 0.08);
    cursor: pointer;
    transition: border-color var(--transition);
    position: relative;
}

.profile-photo-circle:hover {
    border-color: var(--gold);
}

.profile-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-circle .photo-initials {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
}

.profile-photo-circle .photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 50%;
}

.profile-photo-circle:hover .photo-overlay {
    opacity: 1;
}

.profile-photo-circle .photo-overlay svg {
    width: 24px;
    height: 24px;
    color: white;
}

.profile-photo-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.profile-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.profile-fields .form-group {
    margin-bottom: 0;
}

.profile-fields .form-label {
    font-size: 0.68rem;
    margin-bottom: 0.3rem;
}

.profile-fields .form-input {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
}

/* ─── Card Preview Wrapper ──────────────────────── */

.card-preview-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-preview-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-preview-scroll {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

/* ─── Visiting Card Design ──────────────────────── */

.visiting-card {
    width: 800px;
    height: 440px;
    background: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Two-panel layout */
.vc-layout {
    display: flex;
    height: calc(100% - 42px);
}

/* Left panel: Logo badge */
.vc-left {
    width: 260px;
    background: #0A2E2A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    flex-shrink: 0;
}

.vc-logo-badge {
    width: 180px;
    height: 200px;
    background: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 14px;
    position: relative;
}

.vc-logo-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #D4A84B;
    border-radius: 0 0 10px 10px;
}

.vc-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.vc-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #D4A84B;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 3px;
}

.vc-brand-tagline {
    font-size: 8px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

/* Gold vertical divider */
.vc-divider {
    width: 3px;
    background: linear-gradient(180deg, #D4A84B, #E8C068, #D4A84B);
    flex-shrink: 0;
}

/* Right panel */
.vc-right {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vc-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #0A2E2A;
    line-height: 1.2;
    margin-bottom: 4px;
}

.vc-designation {
    font-size: 12px;
    font-weight: 500;
    color: #D4A84B;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.vc-gold-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #D4A84B, transparent);
    margin-bottom: 12px;
}

/* Expertise section */
.vc-expertise {
    margin-bottom: 14px;
}

.vc-expertise-label {
    font-size: 8px;
    font-weight: 700;
    color: #0A2E2A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.vc-expertise-items {
    display: flex;
    gap: 10px;
}

.vc-expertise-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.vc-expertise-item img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0d6c2;
}

.vc-expertise-item span {
    font-size: 7.5px;
    font-weight: 600;
    color: #444;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.vc-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vc-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #333;
}

.vc-contact-row svg {
    width: 14px;
    height: 14px;
    color: #0A2E2A;
    flex-shrink: 0;
}

/* Bottom navy footer */
.vc-footer {
    height: 42px;
    background: #0A2E2A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.vc-footer-website {
    color: #D4A84B;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ─── Card Download Button ──────────────────────── */

.card-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--charcoal);
    border: none;
    border-radius: var(--radius);
    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);
}

.card-download-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.card-download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

/* ─── Visiting Card Responsive ──────────────────── */

@media (max-width: 768px) {
    .card-modal .modal {
        max-width: 100%;
        padding: 1.5rem;
    }

    .profile-form {
        flex-direction: column;
        align-items: center;
    }

    .profile-fields {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .card-preview-scroll {
        justify-content: flex-start;
    }

    .visiting-card {
        transform: scale(0.42);
        transform-origin: top left;
        margin-bottom: -250px;
    }
}

@media (max-width: 480px) {
    .visiting-card {
        transform: scale(0.35);
        margin-bottom: -280px;
    }
}
