/* ==========================================================================
   ADT ART & PHOTO GALLERY - Editorial & Minimalist Dark Theme
   ========================================================================== */

:root {
    /* Obsidian Dark Palette */
    --bg-main: #0b0c10;
    --bg-header: rgba(11, 12, 16, 0.9);
    --bg-card: #14161f;
    --bg-card-hover: #1b1e2a;
    --bg-input: #0f1118;
    
    /* Borders & Lines */
    --border-color: #222533;
    --border-highlight: #353a4f;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    
    /* Accents */
    --accent-art: #e2e8f0;
    --accent-blue: #38bdf8;
    --accent-gold: #fbbf24;
    --accent-red: #f87171;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-subtle: 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

.hidden {
    display: none !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3));
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.brand-sub {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-primary.mini {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-primary.full-width {
    width: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-highlight);
}

.btn-secondary.mini {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 28px;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: var(--text-primary);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 8px;
}

/* ==========================================================================
   Medium Category Filters Bar
   ========================================================================== */
.gallery-category-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.medium-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.medium-filter-btn:hover,
.medium-filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.medium-filter-btn.active {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Directory / Artist Showcase View (#directory)
   ========================================================================== */
.main-content {
    flex-grow: 1;
    padding: 50px 0 90px;
}

.directory-hero {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

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

.search-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 22px;
    border-radius: 30px;
    transition: border-color 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--border-highlight);
}

.search-bar svg {
    color: var(--text-muted);
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.artist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.artist-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    box-shadow: var(--shadow-subtle);
}

.artist-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.artist-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.artist-info-head h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.artist-role {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.artist-location {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.artist-bio-short {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sample Artwork Previews on Artist Card */
.artist-artworks-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.preview-thumb {
    height: 90px;
    width: 100%;
    object-fit: cover;
    background: var(--bg-main);
    transition: transform 0.3s ease, opacity 0.2s ease;
    cursor: pointer;
    border-radius: 4px;
}

.preview-thumb:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.artist-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.artist-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.view-gallery-btn {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.artist-card:hover .view-gallery-btn {
    color: var(--accent-blue);
}

/* ==========================================================================
   Artist Profile & Gallery View (#profile)
   ========================================================================== */
.profile-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.profile-main-info h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-location-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.profile-bio-full {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 800px;
    margin-bottom: 24px;
}

.profile-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

/* Gallery Grid Presentation */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.artwork-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.artwork-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    box-shadow: var(--shadow-subtle);
}

.artwork-image-wrapper {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artwork-card:hover .artwork-img {
    transform: scale(1.08);
}

.artwork-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artwork-card:hover .artwork-overlay {
    opacity: 1;
}

.zoom-hint {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.artwork-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artwork-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.artwork-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.artwork-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.artwork-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Lightbox Modal Fullscreen Image Viewer */
.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 8, 0.97);
    backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

.lightbox-img-wrap {
    flex: 1 1 0%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    cursor: zoom-out;
}

.lightbox-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    cursor: default;
    user-select: none;
}

.lightbox-info {
    width: 380px;
    min-width: 320px;
    max-width: 440px;
    height: 100%;
    background: #0e0f14;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 40px 30px 30px 30px;
    position: relative;
    overflow-y: auto;
    text-align: left;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: var(--border-highlight);
}

.lightbox-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.lightbox-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
}

.lightbox-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 4px 0 2px 0;
    word-break: break-word;
}

.lightbox-artist {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.lightbox-divider {
    height: 1px;
    background: var(--border-color);
    width: 100%;
    margin: 20px 0;
}

.lightbox-desc-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.lightbox-desc-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0;
}

.lightbox-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    word-break: break-word;
    white-space: pre-line;
}

@media (max-width: 850px) {
    .lightbox-content {
        flex-direction: column;
    }
    .lightbox-img-wrap {
        flex: 1;
        min-height: 0;
        padding: 15px;
    }
    .lightbox-info {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 40vh;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 24px 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }
}

/* ==========================================================================
   Dashboard View (#dashboard)
   ========================================================================== */
.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-tab {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.dash-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.dash-tab.active {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dashboard-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px;
}

.dash-panel {
    display: none;
}

.dash-panel.active {
    display: block;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.panel-header-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dash-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--border-highlight);
}

.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-input-hidden {
    display: none !important;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input {
    flex-grow: 1;
}

.skills-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.editable-skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.remove-skill-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.remove-skill-btn:hover {
    color: var(--accent-red);
}

.dash-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.dash-item-info {
    flex-grow: 1;
}

.dash-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.dash-item-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dash-item-actions {
    display: flex;
    gap: 10px;
}

.btn-icon-action {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-icon-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-icon-action.delete:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    padding: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

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

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

.auth-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

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

.login-info-box {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.82rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.demo-accounts-section {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.demo-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.demo-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-demo {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.3s ease;
}

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

/* About Page Boxes */
.about-desc {
    max-width: 650px;
    margin: 12px auto 44px;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.about-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    text-align: left;
}

.sober-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.sober-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* Footer */
.app-footer {
    border-top: 1px solid var(--border-color);
    padding: 28px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-link {
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 850px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .profile-hero-card {
        flex-direction: column;
    }

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

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