/* Global Design System & Variables for Neyti */

:root {
    --gold: #b8973a;
    --gold-light: #d4af5a;
    --gold-dim: rgba(184, 151, 58, 0.15);
    --dark: #121620;
    --mid: #1e2530;
    --card-bg: rgba(30, 37, 48, 0.45);
    --border-color: rgba(255, 255, 255, 0.05);
    --text-primary: #e8e4dc;
    --text-secondary: rgba(232, 228, 220, 0.65);
    --text-muted: rgba(232, 228, 220, 0.35);
    
    /* Branding color overrides */
    --color-blue: #2c7be5;
    --color-green: #00d97e;
    --color-orange: #f6c343;
    --color-purple: #a951ed;
    --color-red: #f35474;
    --color-cyan: #00f2fe;
}

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

body {
    background-color: var(--dark);
    color: var(--text-primary);
    font-family: 'Outfit', 'Noto Sans Arabic', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 70px 20px 40px;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Radial background glow */
body::after {
    content: '';
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(184, 151, 58, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* Layout header actions */
.header-actions {
    position: absolute;
    top: -40px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.user-greeting {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.user-greeting span {
    color: var(--gold-light);
    font-weight: 600;
}

.logout-btn {
    background: rgba(243, 84, 116, 0.1);
    border: 1px solid rgba(243, 84, 116, 0.15);
    color: #ffa4b7;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(243, 84, 116, 0.2);
    border-color: rgba(243, 84, 116, 0.3);
    box-shadow: 0 0 15px rgba(243, 84, 116, 0.15);
}

/* Language selector dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropbtn {
    background: rgba(30, 37, 48, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: inherit;
}

.lang-dropbtn:hover {
    border-color: rgba(184, 151, 58, 0.4);
    box-shadow: 0 0 15px rgba(184, 151, 58, 0.1);
}

.lang-dropbtn .chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
    opacity: 0.6;
}

.lang-dropdown.open .chevron {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background: #171d28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.lang-dropdown.open .lang-dropdown-content {
    display: block;
}

.lang-search-wrap {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-search-wrap input {
    width: 100%;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.lang-search-wrap input:focus {
    border-color: var(--gold);
}

.lang-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.lang-option-item {
    padding: 8px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.lang-option-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.lang-option-item.active {
    background: rgba(184, 151, 58, 0.08);
    color: var(--gold-light);
    font-weight: 500;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
    display: inline-block;
}

/* Header & Typography */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    text-decoration: none;
}

.logo-svg {
    width: 50px;
    height: 50px;
}

.logo-ring {
    transform-origin: 50% 50%;
    animation: slowSpin 30s linear infinite;
}

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

.wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3.2rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    line-height: 1;
}

.wordmark span {
    color: var(--gold);
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-top: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--gold-light);
}

/* Database Status */
.db-status {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.db-status.error { color: var(--color-red); }
.db-status.success { color: var(--color-green); }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-inline-end: 6px;
}

.db-status.success .status-dot {
    background-color: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
}
.db-status.error .status-dot {
    background-color: var(--color-red);
    box-shadow: 0 0 8px var(--color-red);
}

/* Grid of Menu Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    animation: slideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.menu-card, .menu-card:visited, .menu-card:active, .menu-card:focus {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.menu-card:hover .card-title,
.menu-card:hover span:not(.badge),
.menu-card:hover p {
    color: var(--text-primary);
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.card-badge {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    margin-top: 15px;
    transition: all 0.3s;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(30, 37, 48, 0.6);
}

.card-users:hover { border-color: rgba(44, 123, 229, 0.4); }
.card-users:hover .card-icon { color: var(--color-blue); background: rgba(44, 123, 229, 0.1); box-shadow: 0 0 20px rgba(44, 123, 229, 0.15); }
.card-users:hover .card-badge { background: rgba(44, 123, 229, 0.1); border-color: rgba(44, 123, 229, 0.2); color: #7cacff; }

.card-clubs:hover { border-color: rgba(0, 217, 126, 0.4); }
.card-clubs:hover .card-icon { color: var(--color-green); background: rgba(0, 217, 126, 0.1); box-shadow: 0 0 20px rgba(0, 217, 126, 0.15); }
.card-clubs:hover .card-badge { background: rgba(0, 217, 126, 0.1); border-color: rgba(0, 217, 126, 0.2); color: #5effb7; }

.card-events:hover { border-color: rgba(246, 195, 67, 0.4); }
.card-events:hover .card-icon { color: var(--color-orange); background: rgba(246, 195, 67, 0.1); box-shadow: 0 0 20px rgba(246, 195, 67, 0.15); }
.card-events:hover .card-badge { background: rgba(246, 195, 67, 0.1); border-color: rgba(246, 195, 67, 0.2); color: #ffe68a; }

/* B75: which association types have upcoming events. Same gold as the events card, so the
   labels read as part of it. The hover rule is more specific than
   `.menu-card:hover span:not(.badge)`, which would otherwise repaint them as body text. */
.event-type-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.event-type-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(246, 195, 67, 0.12);
    border: 1px solid rgba(246, 195, 67, 0.28);
    color: #f6c343;
    white-space: nowrap;
}

.menu-card.card-events:hover .event-type-label {
    background: rgba(246, 195, 67, 0.18);
    border-color: rgba(246, 195, 67, 0.4);
    color: #ffd766;
}

.card-pos:hover { border-color: rgba(169, 81, 237, 0.4); }
.card-pos:hover .card-icon { color: var(--color-purple); background: rgba(169, 81, 237, 0.1); box-shadow: 0 0 20px rgba(169, 81, 237, 0.15); }
.card-pos:hover .card-badge { background: rgba(169, 81, 237, 0.1); border-color: rgba(169, 81, 237, 0.2); color: #d4a3ff; }

.card-finance:hover { border-color: rgba(0, 242, 254, 0.4); }
.card-finance:hover .card-icon { color: var(--color-cyan); background: rgba(0, 242, 254, 0.1); box-shadow: 0 0 20px rgba(0, 242, 254, 0.15); }
.card-finance:hover .card-badge { background: rgba(0, 242, 254, 0.1); border-color: rgba(0, 242, 254, 0.2); color: #8ef7ff; }

.card-settings:hover { border-color: rgba(243, 84, 116, 0.4); }
.card-settings:hover .card-icon { color: var(--color-red); background: rgba(243, 84, 116, 0.1); box-shadow: 0 0 20px rgba(243, 84, 116, 0.15); }
.card-settings:hover .card-badge { background: rgba(243, 84, 116, 0.1); border-color: rgba(243, 84, 116, 0.2); color: #ffa4b7; }

.card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: transform 0.3s;
}

.menu-card:hover .card-icon svg {
    transform: scale(1.1);
}

/* Forms & Cards Styling */
.profile-card, .admin-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.active-admin-card {
    border-color: var(--gold) !important;
    background: rgba(184, 151, 58, 0.12) !important;
    box-shadow: 0 0 25px rgba(184, 151, 58, 0.25) !important;
}

.profile-card::before, .admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 30px 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(184, 151, 58, 0.15);
    background: rgba(0, 0, 0, 0.3);
}

textarea.form-control {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 180px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-save, .btn-submit, .btn-ok {
    width: 100%;
    background: rgba(184, 151, 58, 0.08);
    border: 1px solid rgba(184, 151, 58, 0.3);
    color: var(--gold-light);
    padding: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
}

.btn-save:hover, .btn-submit:hover, .btn-ok:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--dark);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 151, 58, 0.3);
}

/* General Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
    color: var(--dark) !important;
    border-color: var(--gold-light) !important;
    box-shadow: 0 4px 15px rgba(184, 151, 58, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(184, 151, 58, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(30, 37, 48, 0.8) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.btn-secondary:hover {
    background: rgba(45, 55, 72, 0.9) !important;
    border-color: rgba(184, 151, 58, 0.4) !important;
    color: var(--gold-light) !important;
}


.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.4;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(243, 84, 116, 0.1);
    border-color: rgba(243, 84, 116, 0.15);
    color: #ffa4b7;
}

.alert-success {
    background: rgba(0, 217, 126, 0.1);
    border-color: rgba(0, 217, 126, 0.15);
    color: #bbfde2;
}

/* Profile Interests Specifics */
.interests-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.interest-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 580px) {
    .interest-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.interest-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.interest-card:hover {
    border-color: rgba(184, 151, 58, 0.2);
    background: rgba(184, 151, 58, 0.03);
}

.interest-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.interest-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.interest-club-input {
    flex: 1.5;
}

/* System Admin tabs group */
.tab-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 30px;
    gap: 6px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 18px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.tab-btn.active {
    background: var(--mid);
    color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Admin Tables styling */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 0px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
}

.admin-table th {
    padding: 16px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table td {
    padding: 18px 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

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

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Badges and actions buttons */
.slug-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 4px 8px;
    font-family: monospace;
    font-size: 0.82rem;
    border-radius: 6px;
}

.type-badge {
    background: rgba(184, 151, 58, 0.08);
    border: 1px solid rgba(184, 151, 58, 0.15);
    color: var(--gold-light);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-action {
    display: inline-block;
    background: rgba(184, 151, 58, 0.08);
    border: 1px solid rgba(184, 151, 58, 0.2);
    color: var(--gold-light);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(184, 151, 58, 0.2);
}

/* Settings List Editor specifics */
.setting-edit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 12px;
}

@media (max-width: 580px) {
    .setting-edit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.setting-key-label {
    flex: 1.2;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
    word-break: break-all;
}

.setting-edit-row .form-control {
    flex: 2;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn-delete-setting {
    background: rgba(243, 84, 116, 0.1);
    border: 1px solid rgba(243, 84, 116, 0.2);
    color: #ffa4b7;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-delete-setting:hover {
    background: var(--color-red);
    color: var(--dark);
    border-color: transparent;
}

.add-setting-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 18px;
    background: rgba(184, 151, 58, 0.02);
    border: 1px dashed rgba(184, 151, 58, 0.2);
    border-radius: 14px;
}

@media (max-width: 580px) {
    .add-setting-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.add-setting-box input, .add-setting-box select {
    flex: 1.5;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.btn-add-setting {
    background: rgba(184, 151, 58, 0.1);
    border: 1px solid rgba(184, 151, 58, 0.3);
    color: var(--gold-light);
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-add-setting:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: transparent;
}

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

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

/* Mobile Admin Warning Banner */
.mobile-admin-warning {
    display: none;
    background: rgba(246, 195, 67, 0.1);
    border: 1px solid rgba(246, 195, 67, 0.2);
    color: #ffe89e;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    animation: fadeIn 0.4s ease-out;
}

.mobile-admin-warning svg {
    flex-shrink: 0;
    color: #f6c343;
}

@media (max-width: 1200px) {
    .mobile-admin-warning {
        display: flex;
    }
}

.container.container-wide {
    max-width: 1200px;
}

/* RTL Support Overrides */
[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .chevron {
    transform: scaleX(-1);
}

[dir="rtl"] .lang-dropdown-content {
    right: auto;
    left: 0;
}

/* Modal til at skifte bruger paa koekkendisplayet. Ligger her og ikke i kitchen.php,
   fordi baade skaermen og dens indstillingsside bruger modalen
   (src/templates/modals/modal_kitchen_login.php). */
.kitchen-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 13, 18, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.kitchen-modal-content {
    background: rgba(22, 28, 38, 0.98);
    border: 1px solid rgba(184, 151, 58, 0.4);
    border-radius: 20px;
    padding: 30px;
    width: 420px;
    max-width: 95vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: cardSlideIn 0.3s ease;
}

/* Animationer som modal og ordrekort deler. */
@keyframes cardSlideOut {
    0% { opacity: 1; transform: scale(1) translateY(0); max-height: 250px; margin-bottom: 16px; }
    100% { opacity: 0; transform: scale(0.88) translateY(-15px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border: none; }
}
@keyframes cardSlideIn {
    0% { opacity: 0; transform: scale(0.95) translateY(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Fold-out rows: one line per account per day, opening to the vouchers behind it.
   Used by the simple cash book (view_economy.php). */
.fold-head, .fold-group summary {
    display: flex;
    gap: 10px;
    align-items: center;
}
.fold-head {
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fold-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fold-group summary {
    padding: 10px 0;
    cursor: pointer;
    list-style: none;
}
.fold-group summary::-webkit-details-marker {
    display: none;
}
.fold-group summary:hover {
    background: rgba(255, 255, 255, 0.02);
}
.fold-chevron {
    display: inline-block;
    width: 14px;
    flex: 0 0 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.fold-group[open] .fold-chevron {
    transform: rotate(90deg);
}
.fold-date {
    flex: 0 0 100px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.fold-text {
    flex: 1 1 auto;
    min-width: 0;
}
.fold-amount {
    flex: 0 0 130px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.fold-body {
    padding: 4px 0 12px 24px;
}
.fold-body .admin-table {
    margin: 0;
}
.fold-group summary:hover, .fold-group[open] summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}
/* The columns keep their widths on a narrow screen, and the card scrolls instead */
.fold-wrap {
    overflow-x: auto;
}
.fold-wrap > .fold-inner {
    min-width: 720px;
}

/* Cookiepolitik og den juridiske footer (public/cookies.php + render_footer) */
.legal-footer {
    position: relative;
    z-index: 1;
    /* margin-top: auto skubber footeren til bunden af skaermen, naar siden er kort -
       ellers ville den ligge som en loes linje under kortene. */
    margin-top: auto;
    padding-top: 28px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-footer-copy {
    color: var(--text-secondary);
}

.legal-footer-dot {
    color: rgba(232, 228, 220, 0.25);
}

.legal-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1px;
    transition: color 0.3s, border-color 0.3s;
}

.legal-footer a:hover {
    color: var(--gold-light);
    border-color: rgba(184, 151, 58, 0.6);
}

.legal-page p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.legal-page .form-title {
    margin-bottom: 10px;
}

.legal-page .form-section-title {
    margin-top: 26px;
}

.legal-table td {
    line-height: 1.5;
}

.legal-table code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.82rem;
    color: var(--gold-light);
    background: rgba(184, 151, 58, 0.1);
    border: 1px solid rgba(184, 151, 58, 0.18);
    border-radius: 6px;
    padding: 2px 6px;
    white-space: nowrap;
}

.legal-links a {
    color: var(--gold-light);
    font-size: 0.88rem;
}

.legal-page .legal-updated {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: end;
}
/* Den juridiske footer hoerer ikke med paa en udskrift (fx deltagerlister). */
@media print {
    .legal-footer { display: none; }
}

/* Cookiepolitik paa smal skaerm: tabellen bliver fire smaa blokke i stedet for en
   vandret rullet tabel. Etiketterne kommer fra cellens data-label. */
@media (max-width: 700px) {
    .legal-table thead { display: none; }
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table td { display: block; width: 100%; }
    .legal-table tr {
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
        padding: 4px 0;
        margin-bottom: 12px;
    }
    .legal-table td {
        border-bottom: none;
        padding: 7px 14px;
    }
    .legal-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        margin-bottom: 3px;
    }
    .legal-table code { font-size: 0.78rem; }
}

/* Kontaktsiden og dens kort på forsiden (public/contact.php, B73) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-page .contact-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.contact-page textarea.form-control {
    min-height: 170px;
    line-height: 1.5;
    resize: vertical;
}

.contact-page .contact-privacy {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.contact-page .contact-direct {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.contact-page .contact-direct a {
    color: var(--gold-light);
}

.card-contact:hover {
    border-color: rgba(184, 151, 58, 0.45);
}

.card-contact:hover .card-icon {
    color: var(--gold-light);
    background: var(--gold-dim);
    box-shadow: 0 0 20px rgba(184, 151, 58, 0.16);
}

.card-contact:hover .card-badge {
    background: rgba(184, 151, 58, 0.1);
    border-color: rgba(184, 151, 58, 0.3);
    color: var(--gold-light);
}

/* Om Neyti-siden (public/about.php, B74) - historien i appens tema, UDEN fake skaermbilleder */
.about-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.about-eyebrow {
    display: block;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.about-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 18px;
}

.about-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 14px;
}

.about-page p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-lead {
    font-size: 1rem;
}

.about-slogan {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--gold-light);
    margin-top: 22px;
}

.about-section {
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid var(--border-color);
}

.about-mini-title {
    margin-top: 22px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.about-list li {
    position: relative;
    padding-left: 18px;
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.about-problem-grid,
.about-benefit-grid,
.about-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.about-problem {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
}

.about-problem strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-problem span {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.about-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
}

.about-panel.is-featured {
    border-color: rgba(184, 151, 58, 0.35);
    background: rgba(184, 151, 58, 0.06);
}

.about-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-panel.is-featured .about-label {
    color: var(--gold-light);
}

.about-panel h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.about-line-list {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.about-line-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-line-list li:last-child {
    border-bottom: none;
}

.about-bottom {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.about-benefit {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-benefit h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin: 0 0 6px;
}

.about-benefit p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.about-flow {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 26px 0 14px;
}

.about-flow-box {
    flex: 1 1 200px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.about-flow-box.is-primary {
    border-color: rgba(184, 151, 58, 0.35);
    background: rgba(184, 151, 58, 0.08);
    color: var(--gold-light);
}

.about-flow-box small {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.78rem;
    margin-top: 4px;
}

.about-flow-arrow {
    color: var(--gold);
    font-size: 1.4rem;
}

.about-note {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.about-hairline {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 151, 58, 0.5), transparent);
    margin-bottom: 28px;
}

.about-cta {
    margin-top: 56px;
    padding: 32px;
    border: 1px solid rgba(184, 151, 58, 0.3);
    border-radius: 20px;
    background: rgba(184, 151, 58, 0.06);
    text-align: center;
}

.about-cta-button {
    display: inline-block;
    width: auto;
    padding: 14px 34px;
    margin-top: 18px;
    text-decoration: none;
}

@media (max-width: 700px) {
    .about-section {
        margin-top: 40px;
        padding-top: 32px;
    }
    .about-problem-grid,
    .about-benefit-grid,
    .about-panel-grid {
        grid-template-columns: 1fr;
    }
    .about-cta {
        padding: 24px 20px;
    }
}

.card-about:hover {
    border-color: rgba(184, 151, 58, 0.45);
}

.card-about:hover .card-icon {
    color: var(--gold-light);
    background: var(--gold-dim);
    box-shadow: 0 0 20px rgba(184, 151, 58, 0.16);
}

.card-about:hover .card-badge {
    background: rgba(184, 151, 58, 0.1);
    border-color: rgba(184, 151, 58, 0.3);
    color: var(--gold-light);
}
