/* ==========================================================================
   VMESTE ZARINSK - Apple Minimalist Dark Design System
   Вдохновлено эстетикой Apple iOS / modern social networks.
   Чистые скругления, стеклянный блюр, уютные акценты, идеальный мобайл.
   ========================================================================== */

:root {
    --bg: #090b10;
    --bg-subtle: #0f121a;
    --surface: #141722;
    --surface-glass: rgba(20, 23, 34, 0.78);
    --surface-hover: #1b202f;
    --surface-header: #181d2a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(255, 122, 69, 0.3);
    
    --text: #f4f6fa;
    --text-secondary: #9aa4b7;
    --text-muted: #647087;

    --accent: #ff7a45;
    --accent-gradient: linear-gradient(135deg, #ff7a45 0%, #fa5719 100%);
    --accent-glow: rgba(255, 122, 69, 0.28);
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
    --bg: #f4f6fa;
    --bg-subtle: #eaedf4;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --surface-hover: #f1f4f9;
    --surface-header: #f8fafc;
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    --border-accent: rgba(255, 122, 69, 0.4);
    
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --accent: #ff6b35;
    --accent-gradient: linear-gradient(135deg, #ff7a45 0%, #fa5719 100%);
    --accent-glow: rgba(255, 122, 69, 0.2);
    --green: #059669;
    --green-glow: rgba(5, 150, 105, 0.2);

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 30px;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   Header (Apple Glass Nav)
   -------------------------------------------------------------------------- */
.fb-top-header {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.2s ease;
}

.fb-header-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    gap: 12px;
}

.fb-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.fb-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.fb-logo-dot {
    width: 9px;
    height: 9px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px var(--accent);
    flex-shrink: 0;
}

.fb-logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.fb-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.fb-nav-links li {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.fb-nav-links a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
    flex-shrink: 0;
}

.fb-nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.fb-nav-links a.active {
    color: var(--accent);
    background: rgba(255, 122, 69, 0.15);
    border: 1px solid rgba(255, 122, 69, 0.3);
}

.fb-sub-header {
    background: var(--bg-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    padding: 6px 18px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.fb-sub-container {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Mobile Bottom Tab Bar (Apple iOS HIG)
   -------------------------------------------------------------------------- */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-tab-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
    flex: 1;
}

.mobile-tab-item svg,
.mobile-tab-item span.tab-icon {
    font-size: 18px;
    line-height: 1;
}

.mobile-tab-item.active {
    color: var(--accent);
}

.mobile-tab-item.active svg {
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.fb-page-container {
    max-width: 1120px;
    width: 100%;
    margin: 20px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
    box-sizing: border-box;
}

.fb-page-container.two-column {
    grid-template-columns: 240px minmax(0, 1fr);
}

.fb-page-container.full-width {
    grid-template-columns: minmax(0, 1fr);
    display: block;
}

.fb-page-container > * {
    min-width: 0;
    max-width: 100%;
}

.fb-main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.fb-sidebar,
.fb-right-sidebar {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--accent);
    display: block;
    box-shadow: 0 0 8px var(--accent-glow);
}

.mobile-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Cards (Apple Squircle Box)
   -------------------------------------------------------------------------- */
.fb-box {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fb-box:hover {
    border-color: var(--border-hover);
}

.fb-box-header {
    background: var(--surface-header);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-box-body {
    padding: 18px;
}

/* --------------------------------------------------------------------------
   Buttons (Apple Pill Shape)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1.2;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent-gradient);
    border: 1px solid rgba(255, 122, 69, 0.5);
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 122, 69, 0.45);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text) !important;
}

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

.btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--green-glow);
}

.btn-green:hover {
    filter: brightness(1.06);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171 !important;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Forms & Inputs (iOS Safari Friendly)
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px; /* 16px предотвращает автоматический зум в Safari на iPhone */
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    background: var(--bg-subtle);
    color: var(--text);
    transition: all 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--surface);
}

textarea.form-control {
    resize: vertical;
}

/* --------------------------------------------------------------------------
   Left Sidebar
   -------------------------------------------------------------------------- */
.fb-sidebar-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
}

.fb-sidebar-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    display: block;
}

.fb-online-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--surface);
    box-shadow: 0 0 8px var(--green);
}

.fb-sidebar-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.fb-sidebar-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.fb-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fb-sidebar-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fb-sidebar-menu li:first-child {
    border-top: none;
}

.fb-sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.15s ease;
    border-radius: var(--radius-sm);
    margin: 2px 0;
    text-decoration: none !important;
}

.fb-sidebar-menu a:hover,
.fb-sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.fb-sidebar-menu a.active {
    color: var(--accent);
    background: rgba(255, 122, 69, 0.12);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Feed Posts (Apple Card Style)
   -------------------------------------------------------------------------- */
.fb-post {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
    text-align: left !important;
}

.fb-post:hover {
    border-color: var(--border-hover);
}

.fb-post-header {
    display: flex;
    padding: 14px 18px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left !important;
}

.fb-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.fb-post-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left !important;
}

.fb-post-author {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none !important;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: left !important;
}

.fb-post-info {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    text-align: left !important;
}

.fb-tag-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 122, 69, 0.12);
    border: 1px solid rgba(255, 122, 69, 0.25);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0;
}

.fb-post-content {
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
    color: var(--text);
    text-align: left !important;
}

.fb-post-img {
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
    margin-top: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.fb-post-actions {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-align: left !important;
}

.fb-action-btn {
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: all 0.15s ease;
}

.fb-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.fb-comments-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 14px 18px;
}

.fb-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.fb-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.fb-comment-body {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.fb-comment-author {
    font-weight: 700;
    color: var(--text);
}

.fb-comment-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Dating Grid
   -------------------------------------------------------------------------- */
.dating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.dating-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.dating-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.dating-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.dating-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dating-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none !important;
}

.dating-details {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */
.event-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.event-item:last-child {
    border-bottom: none;
}

.event-date-badge {
    background: rgba(255, 122, 69, 0.12);
    border: 1px solid rgba(255, 122, 69, 0.28);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    text-align: center;
    min-width: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-date-month {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-date-day {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Modern Apple Chat / Messages UI
   -------------------------------------------------------------------------- */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 480px;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.chat-header-bar {
    padding: 12px 18px;
    background: var(--surface-header);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-stream {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.chat-bubble-wrap {
    display: flex;
    width: 100%;
}

.chat-bubble-wrap.me {
    justify-content: flex-end;
}

.chat-bubble-wrap.other {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 78%;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.me {
    background: var(--accent-gradient);
    color: #ffffff;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 3px 12px var(--accent-glow);
}

.chat-bubble.other {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 18px 18px 18px 4px;
}

.chat-bubble-meta {
    font-size: 10.5px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-bubble.me .chat-bubble-meta {
    color: rgba(255, 255, 255, 0.75);
    justify-content: flex-end;
}

.chat-bubble.other .chat-bubble-meta {
    color: var(--text-muted);
}

.chat-input-bar {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.chat-input-bar .form-control {
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    background: var(--bg);
}

.dialog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dialog-row {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.dialog-row:last-child {
    border-bottom: none;
}

.dialog-row a {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    align-items: center;
    color: inherit;
    text-decoration: none !important;
}

.dialog-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dialog-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   District Carousel for Mobile & Desktop
   -------------------------------------------------------------------------- */
.district-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 10px 2px;
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
}

.district-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.district-chip {
    white-space: nowrap;
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: all 0.15s ease;
    flex-shrink: 0;
    line-height: 1.2;
    user-select: none;
}

.district-chip:hover,
.district-chip.active {
    background: rgba(255, 122, 69, 0.15);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   Telegram-style Spoiler / Profanity Blur
   -------------------------------------------------------------------------- */
.tg-spoiler {
    display: inline;
    position: relative;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: transparent !important;
    text-shadow: 0 0 10px rgba(232, 236, 244, 0.85);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 1px 5px;
    margin: 0 1px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.tg-spoiler:hover {
    background: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
}

.tg-spoiler.revealed {
    background: rgba(255, 122, 69, 0.14);
    color: inherit !important;
    text-shadow: none !important;
    user-select: text;
    -webkit-user-select: text;
    border-radius: 4px;
    padding: 0 3px;
    outline: 1px dashed rgba(255, 122, 69, 0.4);
}

/* --------------------------------------------------------------------------
   Apple-style Toggle Switch
   -------------------------------------------------------------------------- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.16);
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    border: 1px solid var(--border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-gradient);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #f87171;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #93c5fd;
}

/* --------------------------------------------------------------------------
   Admin Dashboard Redesign (Apple Pro Minimalist)
   -------------------------------------------------------------------------- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.admin-stat-val {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.admin-stat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    background: var(--surface);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.admin-table th {
    background: var(--surface-header);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text);
    vertical-align: middle;
}

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

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

.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
}

.role-badge.admin {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.role-badge.user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.fb-footer {
    max-width: 1060px;
    margin: 40px auto 20px;
    padding: 20px 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fb-footer-links a {
    color: var(--text-muted);
    margin-right: 16px;
    text-decoration: none !important;
}

.fb-footer-links a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Tablet & Intermediate Breakpoint (891px - 1040px)
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) and (min-width: 891px) {
    .fb-page-container {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 16px;
        padding: 0 16px;
    }
    .fb-right-sidebar {
        display: none !important;
    }
    .fb-header-container {
        padding: 8px 14px;
        gap: 8px;
    }
    .fb-logo-area {
        gap: 6px;
    }
    .fb-logo {
        font-size: 18px;
    }
    .fb-logo-sub {
        font-size: 10.5px;
        padding: 2px 7px;
    }
    .fb-nav-links {
        gap: 3px;
    }
    .fb-nav-links a {
        font-size: 12px;
        padding: 5px 9px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Responsive Rules (Perfect Mobile UX - Samsung Galaxy A55 / iOS)
   -------------------------------------------------------------------------- */
@media (max-width: 890px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 16px)) !important;
    }

    .fb-top-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--surface-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
    }

    .fb-header-container {
        padding: 10px 14px;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .fb-logo {
        font-size: 18px;
    }

    .fb-logo-sub {
        font-size: 10.5px;
        padding: 2px 7px;
    }

    .fb-sub-header {
        display: none !important;
    }

    .fb-nav-links {
        display: none !important;
    }

    .mobile-header-actions {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .mobile-tab-bar {
        display: block !important;
    }

    /* Полный переход на одноколоночную мобильную вёрстку */
    .fb-page-container,
    .fb-page-container.two-column,
    .fb-page-container.full-width {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
    }

    .fb-sidebar {
        display: none !important;
    }

    .fb-right-sidebar {
        display: none !important;
    }

    .fb-main-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .fb-box {
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .fb-box-header {
        padding: 10px 14px;
        font-size: 13px;
    }

    .fb-box-body {
        padding: 12px 14px;
    }

    .post-form-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .fb-post {
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left !important;
    }

    .fb-post-header {
        padding: 10px 14px;
        gap: 10px;
        text-align: left !important;
    }

    .fb-post-avatar {
        width: 38px;
        height: 38px;
    }

    .fb-post-author {
        font-size: 13.5px;
        text-align: left !important;
    }

    .fb-tag-pill {
        font-size: 10px;
        padding: 2px 7px;
    }

    .fb-post-content {
        padding: 12px 14px;
        font-size: 14.5px;
        line-height: 1.55;
        overflow-wrap: anywhere;
        word-break: normal;
        text-align: left !important;
        white-space: pre-wrap;
    }

    .fb-post-actions {
        padding: 10px 14px;
        font-size: 12px;
        gap: 10px;
        text-align: left !important;
    }

    .fb-comments-section {
        padding: 10px 14px;
    }

    .fb-comment-avatar {
        width: 28px;
        height: 28px;
    }

    .fb-comment-body {
        font-size: 12.5px;
        padding: 6px 10px;
    }

    /* Анкеты знакомств в 2 колонки на телефоне */
    .dating-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .dating-card {
        border-radius: var(--radius-md);
    }

    .dating-info {
        padding: 8px 10px;
    }

    .dating-name {
        font-size: 13px;
        line-height: 1.25;
    }

    .dating-details {
        font-size: 11px;
    }

    /* Админка на телефоне */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .admin-stat-card {
        padding: 12px;
    }

    .admin-stat-val {
        font-size: 20px;
    }

    /* Футер */
    .fb-footer {
        padding: 16px 14px 20px;
        margin: 24px auto 10px;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .fb-footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .fb-footer-links a {
        margin: 0;
        font-size: 11.5px;
    }
}

/* ==========================================================================
   Settings Page & Theme Picker (Apple Style)
   ========================================================================== */
.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.theme-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    user-select: none;
}

.theme-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.theme-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--surface-hover);
}

.theme-preview {
    width: 100%;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.theme-preview.dark-preview {
    background: #090b10;
}
.theme-preview.dark-preview .preview-header {
    height: 16px;
    background: #141722;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-preview.dark-preview .preview-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.theme-preview.dark-preview .preview-line {
    height: 7px;
    background: #1b202f;
    border-radius: 4px;
    width: 100%;
}
.theme-preview.dark-preview .preview-line.short {
    width: 60%;
    background: rgba(255, 122, 69, 0.4);
}

.theme-preview.light-preview {
    background: #f4f6fa;
}
.theme-preview.light-preview .preview-header {
    height: 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.theme-preview.light-preview .preview-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.theme-preview.light-preview .preview-line {
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    width: 100%;
}
.theme-preview.light-preview .preview-line.short {
    width: 60%;
    background: rgba(255, 122, 69, 0.5);
}

.theme-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-check {
    display: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
}

.theme-card.active .theme-check {
    display: inline-flex;
}

.theme-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.settings-card {
    background: var(--surface-header);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.15s ease;
}

.settings-card.locked {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   Comprehensive Light Theme Design System (Apple Clean Aesthetic)
   ========================================================================== */
[data-theme="light"] body {
    background-color: var(--bg);
    color: var(--text);
}

[data-theme="light"] ::selection {
    background: rgba(255, 122, 69, 0.25);
    color: #0f172a;
}

[data-theme="light"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f4f9;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Header & Top Navigation */
[data-theme="light"] .fb-top-header {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .fb-logo {
    color: #0f172a !important;
}

[data-theme="light"] .fb-logo-sub {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

[data-theme="light"] .fb-nav-links a {
    color: #475569 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

[data-theme="light"] .fb-nav-links a:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .fb-nav-links a.active {
    color: var(--accent) !important;
    background: rgba(255, 122, 69, 0.12) !important;
    border: 1px solid rgba(255, 122, 69, 0.32) !important;
}

[data-theme="light"] .fb-sub-header {
    background: #f8fafc !important;
    border-top: 1px solid rgba(15, 23, 42, 0.04) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
    color: #64748b !important;
}

[data-theme="light"] .fb-sub-header strong {
    color: #1e293b !important;
}

[data-theme="light"] .mobile-header-actions a.mobile-header-avatar img {
    border-color: rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .mobile-tab-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .mobile-tab-item {
    color: #64748b !important;
}

[data-theme="light"] .mobile-tab-item.active {
    color: var(--accent) !important;
}

/* Cards & Boxes */
[data-theme="light"] .fb-box {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .fb-box:hover {
    border-color: rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .fb-box-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

/* Forms & Inputs */
[data-theme="light"] .form-label {
    color: #475569;
}

[data-theme="light"] .form-control {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .form-control:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.2);
}

/* Buttons */
[data-theme="light"] .btn-secondary {
    background: #f1f4f9;
    border-color: rgba(15, 23, 42, 0.12);
    color: #1e293b !important;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0;
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a !important;
}

/* Posts & Feed */
[data-theme="light"] .fb-post {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .fb-post:hover {
    border-color: rgba(15, 23, 42, 0.16);
}

[data-theme="light"] .fb-post-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .fb-post-author {
    color: #0f172a;
}

[data-theme="light"] .fb-post-content {
    color: #0f172a;
}

[data-theme="light"] .fb-post-actions {
    background: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .fb-action-btn {
    color: #475569;
}

[data-theme="light"] .fb-action-btn:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

[data-theme="light"] .fb-tag-pill {
    background: rgba(255, 122, 69, 0.1);
    border-color: rgba(255, 122, 69, 0.25);
    color: #ea580c;
}

/* Comments */
[data-theme="light"] .fb-comments-section {
    background: #f1f4f9;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .fb-comment-body {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .fb-comment-author {
    color: #0f172a;
}

/* Left Sidebar */
[data-theme="light"] .fb-sidebar-name {
    color: #0f172a;
}

[data-theme="light"] .fb-sidebar-menu a:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

[data-theme="light"] .fb-sidebar-menu a.active {
    background: rgba(255, 122, 69, 0.12);
    color: var(--accent);
}

[data-theme="light"] .fb-sidebar-menu li {
    border-top-color: rgba(15, 23, 42, 0.06);
}

/* District Carousel */
[data-theme="light"] .district-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
}

[data-theme="light"] .district-chip:hover,
[data-theme="light"] .district-chip.active {
    background: rgba(255, 122, 69, 0.12);
    border-color: var(--accent);
    color: #fa5719;
}

/* Chat & Messages */
[data-theme="light"] .chat-window {
    background: #f1f4f9;
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .chat-header-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .chat-bubble.other {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .chat-input-bar {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .chat-input-bar .form-control {
    background: #f1f4f9;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .chat-input-bar .form-control:focus {
    background: #ffffff;
    border-color: var(--accent);
}

[data-theme="light"] .dialog-row {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .dialog-row:hover {
    background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .dialog-row a {
    color: #0f172a;
}

/* Dating */
[data-theme="light"] .dating-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .dating-name {
    color: #0f172a;
}

/* Events */
[data-theme="light"] .event-item {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .event-date-day {
    color: #0f172a;
}

/* Spoilers */
[data-theme="light"] .tg-spoiler {
    background: rgba(15, 23, 42, 0.16);
    color: transparent;
    text-shadow: 0 0 10px rgba(15, 23, 42, 0.65);
}

[data-theme="light"] .tg-spoiler:hover {
    background: rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .tg-spoiler.revealed {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    text-shadow: none;
    outline: 1px dashed rgba(255, 122, 69, 0.5);
}

/* Settings & Toggles */
[data-theme="light"] .toggle-slider {
    background-color: rgba(15, 23, 42, 0.16);
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .theme-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .theme-card:hover {
    border-color: rgba(15, 23, 42, 0.22);
    background: #f8fafc;
}

[data-theme="light"] .theme-card.active {
    border-color: var(--accent);
    background: #fff8f5;
    box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.2);
}

[data-theme="light"] .settings-card {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .settings-card.locked {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.16);
}

/* Alerts */
[data-theme="light"] .alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
}

[data-theme="light"] .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

[data-theme="light"] .alert-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
}

/* Admin */
[data-theme="light"] .admin-stat-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .admin-stat-val {
    color: #0f172a;
}

[data-theme="light"] .admin-stat-label {
    color: #64748b;
}

[data-theme="light"] .admin-table-container {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .admin-table th {
    background: #f8fafc;
    color: #475569;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .admin-table td {
    color: #0f172a;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .admin-table tr:hover td {
    background: rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .role-badge.admin {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #b45309;
}

[data-theme="light"] .role-badge.user {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
}

/* Footer */
[data-theme="light"] .fb-footer {
    border-top-color: rgba(15, 23, 42, 0.08);
    color: #64748b;
}

[data-theme="light"] .fb-footer strong {
    color: #0f172a;
}
