/* ═══════════════════════════════════════════════════════════════
   Anos Dourados Web — Design System v2
   Applies to: BlazorWASM_App (web browser only)
   MAUI app never loads this file.
═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --gold: #DAA520;
    --gold-dk: #b8860b;
    --gold-lt: #fdf3d0;
    --gold-2lt: #fef9ec;
    --ad-bg: #f5f0e8;
    --ad-surface: #fffbf2;
    --ad-card: #ffffff;
    --ad-border: #e8dfc8;
    --ad-border2: #e3d8c1;
    --ad-text: #1a1505;
    --ad-text2: #3a2e1a;
    --ad-muted: #8a7040;
    --ad-faint: #b0a080;
    --ad-green: #2d7a3a;
    --ad-green-lt: #d4edda;
    --ad-red: #c0392b;
    --ad-red-lt: #fce4ec;
    --ad-blue: #2a5ab5;
    --ad-blue-lt: #e8f0fd;
    --ad-nav-h: 64px;
    --ad-radius: 16px;
    --ad-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* ── Override MainLayout.razor.css scoped padding on main (hover-device rule) ── */
@media (hover: hover) and (pointer: fine) {
    main {
        padding: 0 !important;
        margin-top: 0 !important;
    }
}

/* ── Text size scaling (web) ── */
html[data-text-size="sm"] main { zoom: 0.88; }
html[data-text-size="lg"] main { zoom: 1.14; }
html[data-text-size="xl"] main { zoom: 1.28; }

/* ── Scroll container — override app.css stale 120px top (old nav height) ── */
#main-scroll-container {
    top: 64px !important;
    height: calc(100dvh - 64px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

    #main-scroll-container > .page {
        padding-bottom: 0 !important;
        min-height: 100%;
        width: 100% !important;
        box-sizing: border-box !important;
        /* stable gutter: always reserve scrollbar space so content width
       never shifts and full-bleed sections align with the fixed topnav */
        scrollbar-gutter: stable !important;
    }

/* Topnav — shrink right by the scrollbar gutter so its background
   edge aligns exactly with page content */
.ad-topnav {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Footer — explicit full-width for the flex container */
footer.adw-footer {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ── Scrollbar ── */
* {
    scrollbar-width: thin;
    scrollbar-color: #e0d0a8 #f5f0e8;
}

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

    *::-webkit-scrollbar-track {
        background: #f5f0e8;
    }

    *::-webkit-scrollbar-thumb {
        background: #e0d0a8;
        border-radius: 3px;
    }

/* ── Global ── */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background: var(--ad-bg) !important;
    color: var(--ad-text) !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ad-text);
}

a {
    color: var(--gold-dk);
}

    a:hover {
        color: var(--gold);
    }

/* ══════════════════════════════════════
   TOP NAVIGATION BAR
══════════════════════════════════════ */
.ad-topnav {
    height: var(--ad-nav-h);
    background: var(--ad-surface);
    border-bottom: 1.5px solid var(--ad-border2);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    gap: 0;
}

/* Logo */
.ad-logo-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none !important;
    color: inherit;
}

.ad-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.ad-logo-text {
    font-size: 17px;
    font-weight: 800;
    color: var(--gold-dk);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* Hamburger — shown on mobile ≤900px */
.ad-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--ad-border2);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin-right: 10px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

    .ad-hamburger:hover {
        background: var(--gold-lt);
        border-color: var(--gold);
    }

    .ad-hamburger span {
        width: 18px;
        height: 2px;
        background: var(--ad-text);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
        display: block;
        pointer-events: none;
    }

    .ad-hamburger.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .ad-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .ad-hamburger.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

/* Desktop nav links */
.ad-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding: 0 20px;
}

.ad-navbtn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ad-muted) !important;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
    position: relative;
}

    .ad-navbtn:hover {
        background: var(--gold-lt);
        color: var(--ad-text) !important;
        text-decoration: none !important;
    }

    .ad-navbtn.active {
        background: var(--gold-lt);
        color: var(--gold-dk) !important;
        font-weight: 700;
    }

.ad-navbtn-rel {
    position: relative;
}

/* Right area */
.ad-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Icon buttons (bell, envelope) */
.ad-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--ad-border2);
    background: var(--ad-surface);
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    transition: background 0.15s;
    color: inherit !important;
    text-decoration: none !important;
    user-select: none;
    flex-shrink: 0;
}

    .ad-icon-btn:hover {
        background: var(--gold-lt);
    }

.ad-icon-btn-rel {
    position: relative;
}

/* Notification badge */
.ad-nbadge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e74c3c;
    border: 2px solid var(--ad-surface);
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.ad-nbadge-inline {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    border: none;
    margin-left: 2px;
}

/* Avatar button */
.ad-ava-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-lt);
    border: 2px solid var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-dk);
    transition: box-shadow 0.15s;
    user-select: none;
    flex-shrink: 0;
}

    .ad-ava-btn:hover {
        box-shadow: 0 0 0 3px rgba(218,165,32,0.3);
    }

/* Nav skeleton loaders */
.ad-nav-skeleton {
    width: 60px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0e8d0 25%, #f8f0e0 50%, #f0e8d0 75%);
    background-size: 200% 100%;
    animation: ad-shimmer 1.5s infinite;
}

@keyframes ad-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ══════════════════════════════════════
   USER DROPDOWN
══════════════════════════════════════ */
.ad-user-menu-wrapper {
    position: relative;
}

/* Transparent backdrop to close dropdown on outside click */
.ad-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 399;
    cursor: default;
}

.ad-user-dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    min-width: 210px;
    z-index: 400;
    animation: ad-dropdown-in 0.15s ease;
}

@keyframes ad-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ad-user-dropdown.closing {
    animation: ad-dropdown-out 0.15s ease forwards;
}

@keyframes ad-dropdown-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
}

.ad-user-dropdown-header {
    padding: 14px 16px;
    background: var(--gold-lt);
    border-bottom: 1.5px solid var(--ad-border2);
}

.ad-user-dropdown-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
}

.ad-user-dropdown-email {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.ad-user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #f5edd8;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ad-text) !important;
    cursor: pointer;
    text-align: left;
    text-decoration: none !important;
    transition: background 0.12s;
}

    .ad-user-dropdown-item:hover {
        background: var(--gold-lt);
    }

    .ad-user-dropdown-item:last-child {
        border-bottom: none;
    }

.ad-user-dropdown-item-danger {
    color: var(--ad-red) !important;
}

/* ══════════════════════════════════════
   NOTIFICATIONS PANEL
══════════════════════════════════════ */
.ad-notif-wrapper {
    position: relative;
}

.ad-notif-panel {
    display: none;
    position: absolute;
    top: 46px;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    min-width: 290px;
    max-width: 330px;
    z-index: 400;
    overflow: hidden;
    animation: ad-dropdown-in 0.15s ease;
}

    .ad-notif-panel.open {
        display: block;
    }

.ad-notif-title {
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ad-text);
    border-bottom: 1.5px solid var(--ad-border2);
    background: var(--gold-lt);
}

.ad-notif-item {
    padding: 11px 16px;
    border-bottom: 1px solid #f5edd8;
    font-size: 13px;
    color: var(--ad-text2);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .ad-notif-item.clickable {
        cursor: pointer;
    }

        .ad-notif-item.clickable:hover {
            background: var(--gold-lt);
        }

    .ad-notif-item small {
        color: var(--ad-faint);
        font-size: 11px;
    }

.ad-notif-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--ad-muted);
}

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.ad-mob-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20,15,5,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .ad-mob-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

.ad-mob-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 8px 0 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .ad-mob-drawer.open {
        transform: translateX(0);
    }

.ad-mob-drawer-head {
    padding: 20px 22px 18px;
    border-bottom: 1.5px solid var(--ad-border2);
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.ad-mob-drawer-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ad-muted);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

    .ad-mob-drawer-close:hover {
        background: var(--gold-lt);
        color: var(--ad-text);
    }

.ad-mob-user-strip {
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--gold-lt), #fef9ec);
    border-bottom: 1.5px solid var(--ad-border2);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ad-mob-user-ava {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.ad-mob-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
}

.ad-mob-user-email {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 1px;
}

.ad-mob-drawer-section {
    padding: 14px 12px;
    flex-shrink: 0;
}

    .ad-mob-drawer-section + .ad-mob-drawer-section {
        border-top: 1.5px solid var(--ad-border2);
    }

.ad-mob-section-bottom {
    margin-top: auto;
    padding: 14px 22px 20px;
    border-top: 1.5px solid var(--ad-border2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.ad-mob-drawer-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ad-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0 12px 8px;
}

.ad-mob-navbtn {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 12px;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ad-text) !important;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    text-decoration: none !important;
}

    .ad-mob-navbtn:hover,
    .ad-mob-navbtn.active {
        background: var(--gold-lt);
    }

    .ad-mob-navbtn.active {
        color: var(--gold-dk) !important;
    }

.ad-mob-navbtn-danger {
    color: var(--ad-red) !important;
}

    .ad-mob-navbtn-danger:hover {
        background: var(--ad-red-lt);
    }

.ad-mob-ic {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.ad-mob-badge {
    margin-left: auto;
    background: var(--ad-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* ══════════════════════════════════════
   BUTTONS  (ad- prefix, not conflicting with Bootstrap)
══════════════════════════════════════ */
.ad-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.1s, background 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    white-space: nowrap;
}

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

.ad-btn-primary {
    background: var(--gold);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(218,165,32,0.25);
}

    .ad-btn-primary:hover {
        background: var(--gold-dk);
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(218,165,32,0.4);
    }

.ad-btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold-dk) !important;
}

    .ad-btn-outline:hover {
        background: var(--gold-lt);
    }

.ad-btn-ghost {
    background: #f5edd8;
    border: 1.5px solid var(--ad-border2);
    color: var(--ad-text2) !important;
}

    .ad-btn-ghost:hover {
        background: var(--gold-lt);
    }

.ad-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.ad-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
}

/* ══════════════════════════════════════
   BOOTSTRAP OVERRIDES — align with AD palette
══════════════════════════════════════ */
/* Primary */
.btn-primary,
.btn-primary:not(:disabled) {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

    .btn-primary:hover {
        background-color: var(--gold-dk) !important;
        border-color: var(--gold-dk) !important;
        box-shadow: 0 4px 14px rgba(218,165,32,0.35) !important;
    }

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

/* Secondary */
.btn-secondary {
    background-color: #f5edd8 !important;
    border-color: var(--ad-border2) !important;
    color: var(--ad-text2) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 10px;
}

    .btn-secondary:hover {
        background-color: var(--gold-lt) !important;
    }

/* Outline primary */
.btn-outline-primary {
    border-color: var(--gold) !important;
    color: var(--gold-dk) !important;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

    .btn-outline-primary:hover {
        background-color: var(--gold-lt) !important;
        color: var(--gold-dk) !important;
    }

/* Light buttons */
.btn-light {
    background-color: #f5edd8 !important;
    border-color: var(--ad-border2) !important;
    color: var(--ad-text2) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 10px;
}

    .btn-light:hover {
        background-color: var(--gold-lt) !important;
    }

/* Input focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(218,165,32,0.18) !important;
}

/* Cards */
.card {
    border: 1.5px solid var(--ad-border2) !important;
    border-radius: var(--ad-radius) !important;
    background: var(--ad-card) !important;
    box-shadow: var(--ad-shadow) !important;
}

.card-body {
    font-family: 'Inter', sans-serif;
}

/* Badges */
.badge.bg-primary {
    background-color: var(--gold) !important;
    color: #fff !important;
}

/* Nav / tabs */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--gold) !important;
    color: #fff !important;
}

.nav-link {
    color: var(--ad-muted) !important;
}

    .nav-link:hover, .nav-link:focus {
        color: var(--gold-dk) !important;
    }

/* ══════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════ */

/* Remove default article padding to let pages control their own spacing */
.page > main > article.content {
    padding: 0 !important;
}

/* Standard page wrapper — pages can use this or Bootstrap containers */
.ad-page {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 28px 28px 48px;
}

/* Sidebar layout */
.ad-sidebar-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ad-main-col {
    flex: 1;
    min-width: 0;
}

.ad-side-col {
    width: 300px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   COMPONENTS
══════════════════════════════════════ */

/* Chips / filter pills */
.ad-chip {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--ad-border2);
    background: #fff;
    color: var(--ad-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

    .ad-chip:hover {
        border-color: var(--gold);
        color: var(--gold-dk);
    }

    .ad-chip.active,
    .ad-chip.on {
        border-color: var(--gold);
        background: var(--gold-lt);
        color: var(--gold-dk);
    }

/* Tag / category badge */
.ad-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: #b45309;
    color: #fff;
}

    .ad-tag.saude, .ad-tag.health {
        background: #15803d;
        color: #fff;
    }

    .ad-tag.cultura {
        background: #1d4ed8;
        color: #fff;
    }

    .ad-tag.arte {
        background: #be185d;
        color: #fff;
    }

    .ad-tag.esporte {
        background: #c2410c;
        color: #fff;
    }

    .ad-tag.lazer {
        background: #6d28d9;
        color: #fff;
    }

    .ad-tag.default {
        background: #b45309;
        color: #fff;
    }

    .ad-tag.memory {
        background: #0369a1;
        color: #fff;
    }

    .ad-tag.share {
        background: #0f766e;
        color: #fff;
    }

    .ad-tag.wellness {
        background: #9d174d;
        color: #fff;
    }

    .ad-tag.nutrition {
        background: #854d0e;
        color: #fff;
    }

    .ad-tag.question {
        background: #c2410c;
        color: #fff;
    }

    .ad-tag.review {
        background: #5b21b6;
        color: #fff;
    }

    .ad-tag.activeliving {
        background: #1d4ed8;
        color: #fff;
    }

/* Input */
.ad-inp {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--ad-text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .ad-inp:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(218,165,32,0.18);
    }

    .ad-inp::placeholder {
        color: var(--ad-faint);
    }

/* Toggle switch */
.ad-toggle {
    width: 46px;
    height: 25px;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ad-toggle-knob {
    position: absolute;
    top: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: left 0.2s;
}

/* Section headings */
.ad-sec-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.ad-sec-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ad-text);
    letter-spacing: -0.3px;
    font-family: 'Inter', sans-serif;
}

.ad-sec-sub {
    font-size: 14px;
    color: var(--ad-muted);
    margin-top: 4px;
}

/* Grids */
.ad-g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ad-g3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.ad-g4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

/* Card hover lift */
.ad-card-hover {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .ad-card-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.09) !important;
    }

/* ══════════════════════════════════════
   FOOTER (web)
══════════════════════════════════════ */
.footer-class {
    background: #111 !important;
    border-top: none !important;
    color: rgba(255,255,255,0.5) !important;
}

    .footer-class .footer-text {
        color: rgba(255,255,255,0.55) !important;
    }

    .footer-class a {
        color: rgba(255,255,255,0.45) !important;
    }

        .footer-class a:hover {
            color: var(--gold) !important;
        }

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════ */
@media (max-width: 960px) {
    .ad-side-col {
        display: none;
    }

    .ad-g4 {
        grid-template-columns: 1fr 1fr;
    }

    .ad-g3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    .ad-nav-links {
        display: none !important;
    }

    .ad-hamburger {
        display: flex !important;
    }

    .ad-nav-right {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .adw-events-page, .adw-acts-page, .adw-posts-page, .adw-profile-page,
    .adw-settings-page, .adw-locations-page, .adw-evtd-page, .adw-postd-page,
    .adw-nearby-page, .adw-form-page, .adw-dash-page, .adw-help-page {
        margin-top: 2.5rem !important;
    }

    .adw-hero {
        margin-top: 3rem !important;
    }
}

@media (max-width: 640px) {

    .ad-topnav {
        padding: 0 14px;
    }

    .ad-logo-text {
        font-size: 15px;
    }

    .ad-g2, .ad-g3, .ad-g4 {
        grid-template-columns: 1fr;
    }

    .ad-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   EXISTING NAV ELEMENTS — HIDE FOR WEB
   (the old Bootstrap nav is replaced by .ad-topnav)
══════════════════════════════════════ */
.web-desk-header,
.web-mob-header,
.web-mob-nav,
.responsive-nav.web-mob-nav {
    display: none !important;
}

/* ══════════════════════════════════════
   AUTH PAGES (Login / Register)
══════════════════════════════════════ */
.adw-auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: var(--ad-bg);
}

.adw-auth-panels {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

/* Left brand column */
.adw-auth-brand {
    flex: 0 0 280px;
    text-align: center;
}

.adw-auth-brand-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: contain;
    display: block;
    margin: 20px auto 20px;
}

.adw-auth-brand-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--ad-text);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.adw-auth-brand-desc {
    font-size: 15px;
    color: var(--ad-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.adw-auth-brand-perks {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .adw-auth-brand-perks li {
        font-size: 14px;
        color: var(--ad-text2);
        font-weight: 500;
    }

/* Right form card */
.adw-auth-card {
    flex: 0 0 420px;
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Login / Register tab switcher */
.adw-auth-tabs {
    display: flex;
    background: #f5edd8;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
}

.adw-auth-tab {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--ad-muted);
    cursor: pointer;
    transition: all 0.15s;
}

    .adw-auth-tab.active,
    .adw-auth-tab:disabled {
        background: #fff;
        font-weight: 700;
        color: var(--gold-dk);
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        cursor: default;
    }

.adw-auth-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 20px;
}

/* Fields */
.adw-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adw-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ad-muted);
}

.adw-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adw-field-inp {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    border: 1.5px solid var(--ad-border2) !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--ad-text) !important;
    background: #fff !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

    .adw-field-inp:focus {
        border-color: var(--gold) !important;
        box-shadow: 0 0 0 3px rgba(218,165,32,0.18) !important;
        outline: none !important;
    }

    .adw-field-inp::placeholder {
        color: var(--ad-faint) !important;
    }

.adw-pw-wrap {
    position: relative;
    width: 100%;
}

.adw-pw-input {
    padding-right: 42px !important;
}

.adw-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ad-muted);
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
}

.adw-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
}

    .adw-forgot-link:hover {
        color: var(--gold-dk);
    }

/* Buttons */
.adw-btn-primary {
    background: var(--gold);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(218,165,32,0.25);
}

    .adw-btn-primary:hover:not(:disabled) {
        background: var(--gold-dk);
        box-shadow: 0 4px 16px rgba(218,165,32,0.4);
    }

    .adw-btn-primary:active:not(:disabled) {
        transform: scale(0.97);
    }

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

.adw-btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold-dk) !important;
    border-radius: 10px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    .adw-btn-outline:hover {
        background: var(--gold-lt);
    }

/* Divider */
.adw-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.adw-divider-line {
    flex: 1;
    height: 1px;
    background: var(--ad-border2);
}

.adw-divider-text {
    font-size: 12px;
    color: var(--ad-faint);
}

/* Social */
.adw-social-row {
    display: flex;
    gap: 10px;
}

.adw-social-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid var(--ad-border2);
    background: #f5edd8;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

    .adw-social-btn:hover:not(:disabled) {
        background: var(--gold-lt);
    }

/* Alerts */
.adw-auth-error {
    background: var(--ad-red-lt);
    border: 1.5px solid var(--ad-red);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ad-red);
    margin-bottom: 4px;
}

.adw-auth-success {
    background: var(--ad-green-lt);
    border: 1.5px solid var(--ad-green);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ad-green);
    margin-bottom: 4px;
}

.adw-info-box {
    background: var(--gold-lt);
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--ad-text);
}

.adw-error-small {
    font-size: 12px;
    color: var(--ad-red);
    margin-top: 4px;
}

.adw-recaptcha-wrap {
    margin: 4px 0;
}

/* Auth switch link */
.adw-auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--ad-muted);
    margin-top: 4px;
}

.adw-auth-link {
    color: var(--gold);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
}

    .adw-auth-link:hover {
        color: var(--gold-dk);
    }

/* Register step bar */
.adw-step-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.adw-step-seg {
    flex: 1;
    height: 4px;
    border-radius: 10px;
    transition: background 0.3s;
}

.adw-step-label {
    font-size: 13px;
    color: var(--ad-muted);
    margin-bottom: 4px;
}

.adw-step-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 16px;
}

/* Checkbox */
.adw-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}

    .adw-checkbox-row:hover {
        border-color: var(--gold);
    }

.adw-checkbox-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 13px;
    color: #fff;
    transition: background 0.15s;
}

/* Auth responsive */
@media (max-width: 640px) {
    .adw-auth-brand {
        display: none;
    }

    .adw-auth-card {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 24px 20px;
    }

    .adw-auth-page {
        padding: 24px 16px;
    }
}

/* ══════════════════════════════════════
   LANDING PAGE (Public Home — web)
══════════════════════════════════════ */
.adw-landing {
    font-family: 'Inter', sans-serif;
    width: 100%;
    margin: 0;
    background: #1c1c1c;
    padding: 0;
}

/* Every full-bleed section must grow edge-to-edge */
.adw-hero,
.adw-stats-bar,
.adw-section,
.adw-cta-section {
    width: 100%;
    box-sizing: border-box;
}

/* Hero */
.adw-hero {
    background: linear-gradient(160deg, #1a1108 0%, #2e2208 55%, #5a3c00 100%);
    padding: 80px 60px;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

    .adw-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 80% 50%, rgba(218,165,32,0.18) 0%, transparent 65%);
        pointer-events: none;
    }

/* Two-column hero row */
.adw-hero-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.adw-hero-inner {
    flex: 1;
    min-width: 0;
}

/* Hero image (right column) */
.adw-hero-img-wrap {
    flex: 0 0 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.45);
    position: relative;
}

.adw-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.adw-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(218,165,32,0.18);
    border: 1px solid rgba(218,165,32,0.35);
    border-radius: 24px;
    padding: 7px 18px;
    margin-bottom: 28px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.adw-hero-h1 {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

    .adw-hero-h1 span {
        color: var(--gold);
    }

.adw-hero-sub {
    font-size: 19px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 520px;
}

.adw-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.adw-hero-cta-primary {
    background: var(--gold);
    color: #fff !important;
    border: none;
    border-radius: 14px;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(218,165,32,0.4);
    transition: background 0.15s, transform 0.1s;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

    .adw-hero-cta-primary:hover {
        background: var(--gold-dk);
        color: #fff !important;
    }

    .adw-hero-cta-primary:active {
        transform: scale(0.97);
    }

.adw-hero-cta-secondary {
    padding: 16px 28px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
}

    .adw-hero-cta-secondary:hover {
        background: rgba(255,255,255,0.18);
        color: #fff !important;
    }

.adw-hero-avatars {
    display: flex;
    align-items: center;
    gap: 14px;
}

.adw-hero-avatar-row {
    display: flex;
}

.adw-hero-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2.5px solid #1a1108;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.adw-hero-member-text {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

    .adw-hero-member-text strong {
        color: #fff;
    }

/* Stats bar */
.adw-stats-bar {
    background: var(--gold);
    display: flex;
    flex-wrap: wrap;
}

.adw-stat-item {
    flex: 1 1 120px;
    padding: 22px 20px;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.25);
}

    .adw-stat-item:first-child {
        border-left: none;
    }

.adw-stat-num {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
}

.adw-stat-lbl {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-top: 2px;
}

/* Content sections */
.adw-section {
    padding: 72px 60px;
}

.adw-section-center {
    text-align: center;
    margin-bottom: 52px;
}

.adw-section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.adw-section-h2 {
    font-size: 38px;
    font-weight: 900;
    color: var(--ad-text);
    letter-spacing: -1px;
}

/* How it works cards */
.adw-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.adw-step-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1.5px solid var(--ad-border2);
    transition: transform 0.15s, box-shadow 0.15s;
}

    .adw-step-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    }

.adw-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--gold-lt);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(218,165,32,0.25);
}

.adw-step-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 8px;
}

.adw-step-desc {
    font-size: 14px;
    color: var(--ad-muted);
    line-height: 1.6;
}

/* Features grid */
.adw-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.adw-feature-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 24px 20px;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: default;
}

    .adw-feature-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

.adw-feature-icon {
    font-size: 34px;
    margin-bottom: 14px;
}

.adw-feature-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ad-text);
    margin-bottom: 6px;
}

.adw-feature-desc {
    font-size: 13px;
    color: var(--ad-muted);
    line-height: 1.6;
}

/* Testimonials */
.adw-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.adw-testimonial {
    background: var(--gold-lt);
    border: 1.5px solid var(--gold);
    border-radius: 18px;
    padding: 26px 24px;
}

.adw-testimonial-quote {
    font-size: 15px;
    color: var(--ad-text2);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 18px;
}

.adw-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adw-testimonial-ava {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.adw-testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-testimonial-city {
    font-size: 12px;
    color: var(--ad-muted);
}

/* CTA section */
.adw-cta-section {
    padding: 80px 60px;
    background: linear-gradient(135deg, #1a1108, #2e2208);
    text-align: center;
}

.adw-cta-h2 {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.adw-cta-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.adw-cta-login {
    margin-top: 18px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

    .adw-cta-login span {
        color: var(--gold);
        cursor: pointer;
        font-weight: 700;
    }

/* Footer */
.adw-footer {
    background: var(--ad-surface);
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1.5px solid var(--ad-border2);
}

.adw-footer-brand {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
}

.adw-footer-links {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 24px;
}

.adw-footer-link {
    font-size: 13px;
    color: var(--ad-muted);
    cursor: pointer;
    text-decoration: none !important;
}

    .adw-footer-link:hover {
        color: black;
    }

.adw-footer-copy {
    font-size: 12px;
    color: var(--ad-muted);
}

/* Landing responsive */
@media (max-width: 1050px) {
    .adw-hero-img-wrap {
        flex: 0 0 320px;
    }

    .adw-hero-img {
        height: 340px;
    }
}

@media (max-width: 960px) {
    .adw-hero-row {
        flex-direction: column;
        gap: 32px;
    }

    .adw-hero-img-wrap {
        flex: none;
        width: 100%;
        max-width: 480px;
        align-self: center;
    }

    .adw-hero-img {
        height: 280px;
    }

    .adw-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .adw-testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .adw-hero {
        padding: 60px 32px;
    }

    .adw-section {
        padding: 52px 32px;
    }

    .adw-cta-section {
        padding: 60px 32px;
    }

    .adw-footer {
        padding: 24px 32px;
    }
}

@media (max-width: 640px) {
    .adw-hero {
        padding: 48px 24px;
    }

    .adw-hero-h1 {
        font-size: 32px !important;
        letter-spacing: -1px;
    }

    .adw-steps-grid,
    .adw-features-grid,
    .adw-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .adw-section {
        padding: 40px 20px;
    }

    .adw-cta-section {
        padding: 48px 20px;
    }

    .adw-footer {
        padding: 20px 20px;
        flex-direction: column;
        text-align: center;
    }

    .adw-footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .adw-section-h2 {
        font-size: 28px;
    }

    .adw-cta-h2 {
        font-size: 30px;
    }
}

/* ══════════════════════════════════════
   DASHBOARD — Web sidebar layout
══════════════════════════════════════ */
.adw-dash-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

/* Welcome banner */
.adw-dash-banner {
    background: linear-gradient(135deg, var(--gold), var(--gold-dk));
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(218,165,32,0.25);
}

.adw-dash-banner-date {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-bottom: 4px;
}

.adw-dash-banner-name {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.adw-dash-week {
    display: flex;
    gap: 8px;
}

.adw-dash-week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.adw-dash-week-check {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

    .adw-dash-week-check.achieved {
        background: rgba(255,255,255,0.9);
        color: var(--gold-dk);
    }

    .adw-dash-week-check.empty {
        background: rgba(255,255,255,0.2);
        color: rgba(255,255,255,0.4);
    }

.adw-dash-week-label {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* Mood card */
.adw-mood-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.adw-mood-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

.adw-mood-row {
    display: flex;
    gap: 10px;
}

.adw-mood-btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: 12px;
    border: 2px solid var(--ad-border2);
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

    .adw-mood-btn:hover {
        border-color: var(--gold);
        background: var(--gold-lt);
    }

    .adw-mood-btn.selected {
        border-color: var(--gold);
        background: var(--gold-lt);
    }

.adw-mood-emoji {
    font-size: 28px;
    display: block;
}

.adw-mood-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--ad-muted);
    margin-top: 5px;
}

.adw-mood-btn.selected .adw-mood-text {
    color: var(--gold-dk);
}

.adw-mood-thanks {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-dk);
    text-align: center;
}

/* Sidebar layout */
.adw-dash-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.adw-dash-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adw-dash-side {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Section cards */
.adw-dash-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 20px 24px;
}

.adw-dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.adw-card-sec-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.adw-see-all-btn {
    background: #f5edd8;
    border: 1.5px solid var(--ad-border2);
    border-radius: 8px;
    padding: 5px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--ad-text2);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none !important;
}

    .adw-see-all-btn:hover {
        background: var(--gold-lt);
    }

/* Activity card */
.adw-activity-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.adw-activity-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.adw-activity-info {
    flex: 1;
}

.adw-activity-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ad-text);
    margin-bottom: 3px;
}

.adw-activity-meta {
    font-size: 14px;
    color: var(--ad-muted);
    margin-bottom: 10px;
}

.adw-progress-bar-wrap {
    height: 6px;
    background: var(--ad-border2);
    border-radius: 20px;
    overflow: hidden;
}

.adw-progress-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 20px;
    transition: width 0.5s ease;
}

/* Post feed */
.adw-post-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--ad-border2);
}

    .adw-post-item:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

.adw-post-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.adw-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    border: 2px solid var(--gold);
}

.adw-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.adw-post-author {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-post-time {
    font-size: 12px;
    color: var(--ad-faint);
}

.adw-post-body {
    font-size: 15px;
    color: var(--ad-text2);
    line-height: 1.65;
    margin-bottom: 10px;
}

.adw-post-actions {
    display: flex;
    gap: 18px;
}

.adw-post-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    transition: color 0.15s;
    padding: 0;
}

    .adw-post-action-btn:hover {
        color: var(--ad-text);
    }

    .adw-post-action-btn.liked {
        color: #e74c3c;
    }

/* Sidebar cards */
.adw-side-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 20px 24px;
}

.adw-event-banner-dash {
    background: linear-gradient(135deg, var(--gold), var(--gold-dk));
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.15s;
}

    .adw-event-banner-dash:hover {
        opacity: 0.92;
    }

.adw-event-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.adw-event-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.adw-event-banner-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}

.adw-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

    .adw-member-row:last-child {
        margin-bottom: 0;
    }

.adw-member-ava-wrap {
    position: relative;
    flex-shrink: 0;
}

.adw-member-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2d7a3a;
    border: 2px solid #fff;
}

.adw-member-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--ad-text);
}

/* Tags */
.adw-tag-partilha {
    background: var(--gold-lt);
    color: var(--gold-dk);
}

.adw-tag-saude {
    background: var(--ad-green-lt);
    color: #1a5c2a;
}

.adw-tag-memoria {
    background: #ffe5cc;
    color: #7a3a00;
}

.adw-tag-arte {
    background: #f8d7f0;
    color: #6b1460;
}

.adw-tag-default {
    background: var(--gold-lt);
    color: var(--gold-dk);
}

.adw-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

/* Dashboard responsive */
@media (max-width: 960px) {
    .adw-dash-side {
        display: none;
    }
}

@media (max-width: 640px) {
    .adw-dash-page {
        padding: 16px 14px 40px;
    }

    .adw-dash-banner {
        padding: 20px 20px;
    }

    .adw-dash-banner-name {
        font-size: 22px;
    }

    .adw-dash-week {
        gap: 5px;
    }

    .adw-dash-week-check {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .adw-mood-row {
        gap: 6px;
    }
}

/* ══════════════════════════════════════
   EVENTS PAGE
══════════════════════════════════════ */
.adw-events-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.adw-page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--ad-text);
}

.adw-page-sub {
    font-size: 14px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.adw-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.adw-search-wrap {
    flex: 2;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}

    .adw-search-wrap i {
        position: absolute;
        left: 13px;
        color: var(--ad-muted);
        font-size: 15px;
    }

.adw-search-inp {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 10px;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    color: var(--ad-text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

    .adw-search-inp:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(218,165,32,0.15);
    }

    .adw-search-inp::placeholder {
        color: var(--ad-faint);
    }

.adw-select-inp {
    flex: 1;
    min-width: 140px;
    padding: 11px 14px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 10px;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    color: var(--ad-text);
    background: #fff;
    cursor: pointer;
    outline: none;
}

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

.adw-chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* 3-col event card grid */
.adw-event-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.adw-event-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

    .adw-event-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    }

.adw-event-card-header {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    background: linear-gradient(135deg,var(--gold),var(--gold-dk));
}

.adw-event-card-body {
    padding: 16px 18px;
}

.adw-event-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ad-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.adw-event-card-meta {
    font-size: 13px;
    color: var(--ad-muted);
    margin-bottom: 3px;
}

.adw-event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 14px;
}

.adw-event-card-actions {
    display: flex;
    gap: 8px;
}

.adw-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.adw-pagination-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-muted);
}

.adw-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.adw-empty-emoji {
    font-size: 48px;
    margin-bottom: 16px;
}

.adw-empty-text {
    font-size: 16px;
    color: var(--ad-muted);
}

@media(max-width:960px) {
    .adw-event-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:640px) {
    .adw-event-grid {
        grid-template-columns: 1fr;
    }

    .adw-events-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   ACTIVITIES PAGE
══════════════════════════════════════ */
.adw-acts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-acts-progress {
    background: linear-gradient(135deg,var(--gold),var(--gold-dk));
    border-radius: 20px;
    padding: 22px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(218,165,32,0.25);
}

.adw-acts-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.adw-acts-progress-label {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.adw-acts-progress-count {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.adw-acts-progress-bar {
    background: rgba(0,0,0,0.15);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.adw-acts-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #A5D6A7 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

.adw-acts-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.adw-acts-suggestions {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    margin-bottom: 28px;
    padding-bottom: 4px;
    padding: 0.5rem;
}

    .adw-acts-suggestions::-webkit-scrollbar {
        height: 4px;
    }

.adw-suggest-card {
    flex-shrink: 0;
    width: 260px;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

    .adw-suggest-card:hover {
        transform: translateY(-2px);
    }

.adw-suggest-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.adw-suggest-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.adw-suggest-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-suggest-card-dur {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.adw-suggest-card-desc {
    font-size: 13px;
    color: var(--ad-text2);
    line-height: 1.5;
}

.adw-acts-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.adw-acts-divider-line {
    flex: 1;
    height: 1px;
    background: var(--ad-border2);
}

.adw-acts-divider-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--ad-faint);
}

.adw-acts-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.adw-act-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: opacity 0.2s;
}

.adw-act-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

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

.adw-act-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
    margin-bottom: 3px;
}

.adw-act-dur {
    font-size: 13px;
    color: var(--ad-muted);
    margin-bottom: 6px;
}

.adw-act-desc {
    font-size: 13px;
    color: var(--ad-text2);
    line-height: 1.5;
    margin-bottom: 12px;
}

.adw-act-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media(max-width:960px) {
    .adw-acts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:640px) {
    .adw-acts-grid {
        grid-template-columns: 1fr;
    }

    .adw-acts-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   POSTS (ARTIGOS) PAGE
══════════════════════════════════════ */
.adw-posts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-posts-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.adw-posts-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adw-posts-side {
    width: 300px;
    flex-shrink: 0;
}

.adw-source-tabs {
    display: flex;
    background: #e1e1e1;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    max-width: 320px;
}

.adw-source-tab {
    flex: 1;
    padding: 11px;
    border-radius: 9px;
    border: none;
    background: transparent;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ad-muted);
    cursor: pointer;
    transition: all 0.15s;
}

    .adw-source-tab.active {
        background: #fff;
        font-weight: 700;
        color: var(--gold-dk);
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

.adw-post-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

    .adw-post-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    }

.adw-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.adw-post-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--gold);
    background: var(--gold-lt);
    color: var(--gold-dk);
    overflow: hidden;
}

    .adw-post-ava img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.adw-post-author {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-post-time {
    font-size: 12px;
    color: var(--ad-faint);
}

.adw-post-body {
    font-size: 15px;
    color: var(--ad-text2);
    line-height: 1.65;
    margin-bottom: 14px;
}

.adw-post-actions {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1.5px solid var(--ad-border2);
}

.adw-post-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter',sans-serif;
    transition: color 0.12s;
    padding: 0;
}

    .adw-post-action:hover {
        color: var(--ad-text);
    }

/* Article card (Discover tab) */
.adw-article-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

    .adw-article-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    }

.adw-article-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--gold-lt);
    border: 1.5px solid var(--ad-border2);
}

.adw-article-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ad-text);
    line-height: 1.3;
    margin-bottom: 6px;
}

.adw-article-meta {
    font-size: 12px;
    color: var(--ad-muted);
    margin-bottom: 8px;
}

.adw-article-footer {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Compose box */
.adw-compose-box {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.adw-compose-placeholder {
    flex: 1;
    background: var(--gold-2lt);
    border-radius: 24px;
    padding: 13px 18px;
    font-size: 15px;
    color: var(--ad-faint);
    cursor: text;
}

@media(max-width:960px) {
    .adw-posts-side {
        display: none;
    }
}

@media(max-width:640px) {
    .adw-posts-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════ */
.adw-profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-profile-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.adw-profile-left {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adw-profile-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adw-profile-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}

.adw-profile-ava {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 14px;
    border: 3px solid var(--gold);
    background: var(--gold-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--gold-dk);
    overflow: hidden;
}

    .adw-profile-ava img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.adw-profile-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 3px;
}

.adw-profile-email {
    font-size: 13px;
    color: var(--ad-muted);
    margin-bottom: 4px;
}

.adw-profile-meta {
    font-size: 13px;
    color: var(--ad-muted);
    margin-bottom: 20px;
}

.adw-profile-stats {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 20px 24px;
}

.adw-profile-stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .adw-profile-stat-row:last-child {
        margin-bottom: 0;
    }

.adw-profile-stat-icon {
    font-size: 20px;
}

.adw-profile-stat-label {
    flex: 1;
    font-size: 14px;
    color: var(--ad-text);
}

.adw-profile-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

.adw-profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.adw-profile-info-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--ad-bg);
    border-radius: 12px;
}

.adw-profile-info-icon {
    font-size: 22px;
}

.adw-profile-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ad-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adw-profile-info-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-text);
    margin-top: 2px;
}

.adw-profile-event-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1.5px solid var(--ad-border2);
}

    .adw-profile-event-row:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

.adw-profile-event-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.adw-profile-event-name {
    flex: 1;
    font-size: 14px;
    color: var(--ad-text);
}

.adw-profile-event-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--ad-green);
    background: var(--ad-green-lt);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Edit tabs inside profile */
.adw-edit-tabs {
    display: flex;
    background: #f0ebe0;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    max-width: 320px;
}

.adw-edit-tab {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ad-muted);
    cursor: pointer;
    transition: all 0.15s;
}

    .adw-edit-tab.active {
        background: #fff;
        font-weight: 700;
        color: var(--gold-dk);
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

@media(max-width:900px) {
    .adw-profile-left {
        width: 100%;
    }
}

@media(max-width:640px) {
    .adw-profile-info-grid {
        grid-template-columns: 1fr;
    }

    .adw-profile-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   SETTINGS PAGE
══════════════════════════════════════ */
.adw-settings-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-settings-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.adw-settings-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

.adw-settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1.5px solid var(--ad-border2);
}

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

.adw-settings-row-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.adw-settings-row-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ad-text);
}

.adw-settings-row-sub {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.adw-settings-row-right {
    margin-left: auto;
    flex-shrink: 0;
}

/* Inline toggle (reuse theme-toggle class from app.css) */
.adw-toggle-label {
    margin: 0;
    cursor: pointer;
}

@media(max-width:640px) {
    .adw-settings-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   LOCATIONS PAGE
══════════════════════════════════════ */
.adw-locations-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-locations-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.adw-location-cat-card {
    border: 1.5px solid;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .adw-location-cat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    }

    .adw-location-cat-card.disabled {
        opacity: 0.5;
        cursor: default;
    }

        .adw-location-cat-card.disabled:hover {
            transform: none;
            box-shadow: none;
        }

.adw-location-cat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.adw-location-cat-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ad-text);
    margin-bottom: 5px;
}

.adw-location-cat-sub {
    font-size: 13px;
    color: var(--ad-muted);
}

.adw-location-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gold-lt);
    border: 1.5px solid var(--gold);
    border-radius: 14px;
    padding: 18px 24px;
    color: var(--gold-dk);
    font-size: 14px;
    font-weight: 600;
}

@media(max-width:960px) {
    .adw-locations-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:640px) {
    .adw-locations-grid {
        grid-template-columns: 1fr;
    }

    .adw-locations-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   HELP / FAQ PAGE
══════════════════════════════════════ */
.adw-help-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-help-hero {
    text-align: center;
    margin-bottom: 36px;
}

.adw-help-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--gold-lt);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
}

.adw-help-hero-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--ad-text);
    margin-bottom: 8px;
}

.adw-help-hero-sub {
    font-size: 16px;
    color: var(--ad-muted);
}

.adw-help-search-wrap {
    max-width: 580px;
    margin: 0 auto 36px;
    position: relative;
    display: flex;
    align-items: center;
}

    .adw-help-search-wrap i {
        position: absolute;
        left: 14px;
        font-size: 18px;
        color: var(--ad-muted);
    }

.adw-help-search-inp {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 12px;
    font-family: 'Inter',sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}

    .adw-help-search-inp:focus {
        border-color: var(--gold);
    }

.adw-faq-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.adw-faq-group-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.adw-faq-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adw-faq-item {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s;
}

    .adw-faq-item:hover {
        border-color: var(--gold);
    }

.adw-faq-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    font-family: 'Inter',sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--ad-text);
    text-align: left;
    cursor: pointer;
}

.adw-faq-chevron {
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 0.2s;
}

    .adw-faq-chevron.open {
        transform: rotate(180deg);
    }

.adw-faq-answer {
    padding: 0 20px 18px;
    border-top: 1.5px solid var(--ad-border2);
    font-size: 15px;
    color: var(--ad-text2);
    line-height: 1.75;
    padding-top: 14px;
}

.adw-help-contact-bar {
    max-width: 780px;
    margin: 36px auto 0;
    background: linear-gradient(135deg,var(--gold),var(--gold-dk));
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.adw-help-contact-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.adw-help-contact-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

@media(max-width:640px) {
    .adw-help-page {
        padding: 16px 14px 40px;
    }

    .adw-help-contact-bar {
        padding: 22px 20px;
        flex-direction: column;
    }
}

/* ══════════════════════════════════════
   EVENT DETAIL PAGE
══════════════════════════════════════ */
.adw-evtd-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-evtd-hero {
    background: linear-gradient(135deg,var(--gold),var(--gold-dk));
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.adw-evtd-emoji {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.adw-evtd-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 8px 0;
    line-height: 1.2;
}

.adw-evtd-source {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 6px;
}

.adw-evtd-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.adw-evtd-stat-card {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.adw-evtd-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ad-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adw-evtd-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--ad-text);
    margin-top: 4px;
}

.adw-evtd-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.adw-evtd-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dk);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.adw-evtd-desc {
    font-size: 15px;
    color: var(--ad-text2);
    line-height: 1.75;
}

.adw-evtd-organizer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adw-evtd-org-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-lt);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--gold-dk);
    flex-shrink: 0;
}

.adw-evtd-attendees {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.adw-evtd-att-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-lt);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dk);
}

.adw-evtd-register-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-family: 'Inter',sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .adw-evtd-register-btn:active:not(:disabled) {
        transform: scale(0.97);
    }

    .adw-evtd-register-btn.join {
        background: var(--gold);
        color: #fff;
        box-shadow: 0 4px 16px rgba(218,165,32,0.35);
    }

        .adw-evtd-register-btn.join:hover:not(:disabled) {
            background: var(--gold-dk);
        }

    .adw-evtd-register-btn.cancel {
        background: var(--ad-red-lt);
        border: 1.5px solid var(--ad-red);
        color: var(--ad-red);
    }

    .adw-evtd-register-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }

@media(max-width:640px) {
    .adw-evtd-page {
        padding: 16px 14px 40px;
    }

    .adw-evtd-hero {
        padding: 22px 20px;
        flex-direction: column;
    }
}

/* ══════════════════════════════════════
   POST DETAIL PAGE
══════════════════════════════════════ */
.adw-postd-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 28px 48px;
}

.adw-postd-hero {
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    background: linear-gradient(135deg,var(--gold),var(--gold-dk));
}

.adw-postd-hero-tag {
    display: inline-block;
    margin-bottom: 10px;
}

.adw-postd-hero-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
}

.adw-postd-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.adw-postd-image-col {
    flex: 0 0 320px;
}

    .adw-postd-image-col img {
        width: 100%;
        border-radius: 16px;
        object-fit: cover;
        aspect-ratio: 4/3;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

.adw-postd-meta-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.adw-postd-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adw-postd-author-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-lt);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--gold-dk);
    flex-shrink: 0;
    overflow: hidden;
}

    .adw-postd-author-ava img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.adw-postd-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-postd-author-date {
    font-size: 12px;
    color: var(--ad-faint);
}

.adw-postd-like-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1.5px solid var(--ad-border2);
}

.adw-postd-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--ad-border2);
    background: #fff;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-muted);
    cursor: pointer;
    transition: all 0.15s;
}

    .adw-postd-like-btn:hover {
        border-color: var(--ad-red);
        color: var(--ad-red);
    }

    .adw-postd-like-btn.liked {
        border-color: var(--ad-red);
        background: var(--ad-red-lt);
        color: var(--ad-red);
    }

.adw-postd-like-avatars {
    display: flex;
}

.adw-postd-liker-ava {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    object-fit: cover;
    background: var(--gold-lt);
}

    .adw-postd-liker-ava:first-child {
        margin-left: 0;
    }

.adw-postd-body {
    font-size: 16px;
    color: var(--ad-text2);
    line-height: 1.85;
    white-space: pre-line;
}

/* Comments */
.adw-postd-comment {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid var(--ad-border2);
}

    .adw-postd-comment:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

.adw-postd-comment-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-lt);
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dk);
    flex-shrink: 0;
}

.adw-postd-comment-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-postd-comment-date {
    font-size: 11px;
    color: var(--ad-faint);
    margin-left: 8px;
}

.adw-postd-comment-body {
    font-size: 14px;
    color: var(--ad-text2);
    line-height: 1.6;
    margin-top: 4px;
}

.adw-postd-compose {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: 20px;
}

.adw-postd-compose-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 12px;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    color: var(--ad-text);
    background: #fff;
    resize: vertical;
    min-height: 48px;
    outline: none;
    transition: border-color 0.15s;
}

    .adw-postd-compose-input:focus {
        border-color: var(--gold);
    }

@media(max-width:760px) {
    .adw-postd-layout {
        flex-direction: column;
    }

    .adw-postd-image-col {
        flex: none;
        width: 100%;
    }

    .adw-postd-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   NEARBY SOS LOCATIONS PAGE
══════════════════════════════════════ */
.adw-nearby-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-nearby-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--ad-muted);
}

.adw-radius-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.adw-radius-btn {
    padding: 9px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--ad-border2);
    background: #fff;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--ad-muted);
    cursor: pointer;
    transition: all 0.15s;
}

    .adw-radius-btn:hover {
        border-color: var(--gold);
        color: var(--gold-dk);
    }

    .adw-radius-btn.active {
        border-color: var(--gold);
        background: var(--gold-lt);
        color: var(--gold-dk);
    }

.adw-nearby-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adw-nearby-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    gap: 0;
    transition: box-shadow 0.15s;
}

    .adw-nearby-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    }

.adw-nearby-card-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--ad-border2);
}

.adw-nearby-card-body {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
}

.adw-nearby-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ad-text);
    margin-bottom: 6px;
}

.adw-nearby-card-row {
    font-size: 13px;
    color: var(--ad-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.adw-nearby-card-stars {
    color: #f59e0b;
    font-size: 14px;
}

.adw-nearby-card-actions {
    padding: 12px 20px;
    border-left: 1.5px solid var(--ad-border2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    justify-content: center;
    min-width: 130px;
}

.adw-nearby-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}

.adw-nearby-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid var(--ad-border2);
    border-top-color: var(--gold);
    animation: adw-spin 0.8s linear infinite;
}

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

@media(max-width:640px) {
    .adw-nearby-card {
        flex-direction: column;
    }

    .adw-nearby-card-img {
        width: 100%;
        height: 160px;
    }

    .adw-nearby-card-actions {
        border-left: none;
        border-top: 1.5px solid var(--ad-border2);
        flex-direction: row;
        min-width: 0;
    }

    .adw-nearby-page {
        padding: 16px 14px 40px;
    }
}

/* ══════════════════════════════════════
   CREATE FORMS (EventForm / PostForm)
══════════════════════════════════════ */
.adw-form-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    margin-top: 4rem;
}

.adw-form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.adw-form-card {
    background: #fff;
    border: 1.5px solid var(--ad-border2);
    border-radius: 18px;
    padding: 32px 28px;
}

.adw-form-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.adw-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adw-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ad-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.adw-form-input,
.adw-form-select,
.adw-form-textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 10px;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    color: var(--ad-text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

    .adw-form-input:focus,
    .adw-form-select:focus,
    .adw-form-textarea:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(218,165,32,0.15);
    }

    .adw-form-input::placeholder,
    .adw-form-textarea::placeholder {
        color: var(--ad-faint);
    }

.adw-form-select {
    cursor: pointer;
}

.adw-form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.adw-form-char-count {
    font-size: 12px;
    color: var(--ad-faint);
    text-align: right;
    margin-top: 3px;
}

/* Date trigger button */
.adw-form-date-btn {
    padding: 11px 14px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 10px;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    background: #fff;
    color: var(--ad-text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .adw-form-date-btn:hover {
        border-color: var(--gold);
    }

    .adw-form-date-btn.has-value {
        color: var(--ad-text);
        font-weight: 500;
    }

    .adw-form-date-btn.empty {
        color: var(--ad-faint);
    }

.adw-form-submit {
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 24px;
    font-family: 'Inter',sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 3px 12px rgba(218,165,32,0.3);
    margin-top: 6px;
}

    .adw-form-submit:hover:not(:disabled) {
        background: var(--gold-dk);
    }

    .adw-form-submit:active:not(:disabled) {
        transform: scale(0.98);
    }

    .adw-form-submit:disabled {
        opacity: 0.5;
        cursor: default;
    }

@media(max-width:640px) {
    .adw-form-page {
        padding: 16px 14px 40px;
    }

    .adw-form-card {
        padding: 20px 16px;
    }
}

/* ══════════════════════════════════════
   DARK MODE ADJUSTMENTS
══════════════════════════════════════ */
html.dark .ad-topnav,
html.dark nav.ad-topnav {
    background: #1e1a10 !important;
    border-color: #3a3020 !important;
}

html.dark .ad-mob-drawer {
    background: #1e1a10 !important;
}

html.dark .ad-logo-text {
    color: var(--gold) !important;
}

html.dark .ad-navbtn {
    color: var(--ad-faint) !important;
}

    html.dark .ad-navbtn:hover,
    html.dark .ad-navbtn.active {
        background: rgba(218,165,32,0.15) !important;
        color: var(--gold) !important;
    }

html.dark .ad-ava-btn {
    background: rgba(218,165,32,0.15) !important;
}

html.dark .ad-icon-btn {
    background: #1e1a10 !important;
    border-color: #3a3020 !important;
}

    html.dark .ad-icon-btn:hover {
        background: rgba(218,165,32,0.15) !important;
    }

html.dark .ad-user-dropdown {
    background: #1e1a10 !important;
    border-color: #3a3020 !important;
}

html.dark .ad-user-dropdown-header {
    background: rgba(218,165,32,0.1) !important;
}

html.dark .ad-user-dropdown-item {
    border-color: #2a2010 !important;
    color: rgba(255,255,255,0.8) !important;
}

    html.dark .ad-user-dropdown-item:hover {
        background: rgba(218,165,32,0.1) !important;
    }

html.dark .ad-notif-panel {
    background: #1e1a10 !important;
    border-color: #3a3020 !important;
}

html.dark .ad-notif-title {
    background: rgba(218,165,32,0.1) !important;
    color: var(--gold) !important;
}

html.dark body {
    background: #141008 !important;
}

/* ── Dark mode CSS variable overrides ── */
html.dark {
    --ad-bg: #141008;
    --ad-surface: #1e1a10;
    --ad-card: #252015;
    --ad-border: #3a3020;
    --ad-border2: #3a3020;
    --ad-text: #f0e8d0;
    --ad-text2: #c8b080;
    --ad-muted: #8a7040;
    --ad-faint: #6a5830;
    --gold-lt: rgba(218,165,32,0.12);
    --gold-2lt: rgba(218,165,32,0.06);
    --ad-blue-lt: rgba(42,90,181,0.15);
    --ad-green-lt: rgba(45,122,58,0.18);
    --ad-red-lt: rgba(192,57,43,0.18);
}

    /* ── Footer ── */
    html.dark .adw-footer {
        background: #0e0c06 !important;
    }

    html.dark .adw-footer-brand {
        color: var(--gold) !important;
    }

    html.dark .adw-footer-link {
        color: var(--ad-muted) !important;
    }

    html.dark .adw-footer-copy {
        color: var(--ad-faint) !important;
    }

    /* ── Page containers ── */
    html.dark .adw-events-page,
    html.dark .adw-acts-page,
    html.dark .adw-posts-page,
    html.dark .adw-profile-page,
    html.dark .adw-settings-page,
    html.dark .adw-locations-page,
    html.dark .adw-evtd-page,
    html.dark .adw-postd-page,
    html.dark .adw-nearby-page,
    html.dark .adw-form-page,
    html.dark .adw-dash-page,
    html.dark .adw-help-page {
        background: var(--ad-bg);
        color: var(--ad-text);
    }

    /* ── Page header ── */
    html.dark .adw-page-title {
        color: var(--ad-text) !important;
    }

    html.dark .adw-page-sub {
        color: var(--ad-muted) !important;
    }

    /* ── Cards (universal) ── */
    html.dark .adw-event-card,
    html.dark .adw-act-card,
    html.dark .adw-post-card,
    html.dark .adw-article-card,
    html.dark .adw-side-card,
    html.dark .adw-dash-card,
    html.dark .adw-settings-card,
    html.dark .adw-profile-card,
    html.dark .adw-form-card,
    html.dark .adw-evtd-card,
    html.dark .adw-postd-body,
    html.dark .adw-help-faq-item,
    html.dark .adw-profile-stats {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text) !important;
    }

    /* ── Chips ── */
    html.dark .ad-chip {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text2) !important;
    }

        html.dark .ad-chip.on,
        html.dark .ad-chip.active {
            background: rgba(218,165,32,0.18) !important;
            border-color: var(--gold) !important;
            color: var(--gold) !important;
        }

    /* ── Search / select inputs ── */
    html.dark .adw-search-inp,
    html.dark .adw-select-inp,
    html.dark .adw-field-inp,
    html.dark .adw-form-input,
    html.dark .adw-form-select,
    html.dark .adw-form-textarea {
        background: #1a1508 !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text) !important;
    }

        html.dark .adw-search-inp::placeholder,
        html.dark .adw-field-inp::placeholder,
        html.dark .adw-form-input::placeholder,
        html.dark .adw-form-textarea::placeholder {
            color: var(--ad-faint) !important;
        }

    html.dark .adw-search-wrap {
        background: #1a1508 !important;
        border-color: var(--ad-border) !important;
    }

        html.dark .adw-search-wrap i {
            color: var(--ad-muted) !important;
        }

    /* ── Landing page cards ── */
    html.dark .adw-feature-card,
    html.dark .adw-step-card {
        background: #1e1a10 !important;
        border-color: var(--ad-border) !important;
    }

    /* ── Sections / source tabs ── */
    html.dark .adw-section {
        background: #0c0c0c !important;
    }

    html.dark .adw-source-tabs {
        background: #0c0c0c !important;
        border-color: var(--ad-border) !important;
    }

    /* ── Buttons ── */
    html.dark .ad-btn-ghost,
    html.dark .ad-btn-sm,
    html.dark .adw-see-all-btn {
        background: #0c0c0c !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text2) !important;
    }

    html.dark .ad-btn-outline {
        border-color: var(--gold) !important;
        color: var(--gold) !important;
    }

    /* ── Auth pages ── */
    html.dark .adw-auth-page {
        background: var(--ad-bg) !important;
    }

    html.dark .adw-auth-brand {
        background: linear-gradient(160deg,#1a1108,#2e2208) !important;
    }

    html.dark .adw-auth-card {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-auth-tabs {
        border-color: var(--ad-border) !important;
        background: var(--ad-surface) !important;
    }

    html.dark .adw-auth-tab {
        color: var(--ad-muted) !important;
    }

        html.dark .adw-auth-tab.active {
            background: var(--ad-card) !important;
            color: var(--gold) !important;
        }

    html.dark .adw-auth-heading {
        color: var(--ad-text) !important;
    }

    html.dark .adw-field-label {
        color: var(--ad-text2) !important;
    }

    html.dark .adw-auth-switch {
        color: var(--ad-muted) !important;
    }

    html.dark .adw-forgot-link {
        color: var(--gold) !important;
    }

    /* ── Step bar (register) ── */
    html.dark .adw-step-seg {
        background: var(--ad-border) !important;
    }

        html.dark .adw-step-seg.active {
            background: var(--gold) !important;
        }

    /* ── Dashboard ── */
    html.dark .adw-dash-banner {
        background: linear-gradient(135deg,#1a1108,#2e2208) !important;
    }

    html.dark .adw-mood-card {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-mood-btn {
        background: var(--ad-surface) !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text2) !important;
    }

        html.dark .adw-mood-btn.selected {
            background: rgba(218,165,32,0.18) !important;
            border-color: var(--gold) !important;
        }

    html.dark .adw-event-banner-dash {
        background: linear-gradient(135deg,#1a1108,#2e2208) !important;
        border-color: var(--ad-border) !important;
    }

    /* ── Events ── */
    html.dark .adw-event-card-img-wrap {
        background: #1a1508 !important;
    }

    html.dark .adw-event-meta,
    html.dark .adw-event-location {
        color: var(--ad-muted) !important;
    }

    html.dark .adw-event-type-chip {
        background: rgba(218,165,32,0.12) !important;
        color: var(--gold) !important;
    }

    /* ── Activities ── */
    html.dark .adw-acts-progress {
        background: linear-gradient(135deg,#2a1f00,#3d2e00) !important;
    }

    html.dark .adw-suggest-card {
        background: #1a1508 !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-act-card {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-act-name {
        color: var(--ad-text) !important;
    }

    html.dark .adw-act-dur {
        color: var(--ad-muted) !important;
    }

    html.dark .adw-act-desc {
        color: var(--ad-muted) !important;
    }

    /* ── Posts ── */
    html.dark .adw-post-card {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-post-author {
        color: var(--ad-text) !important;
    }

    html.dark .adw-post-time {
        color: var(--ad-muted) !important;
    }

    html.dark .adw-post-body {
        color: var(--ad-text2) !important;
    }

    html.dark .adw-post-action {
        /*background: var(--ad-surface) !important;*/
        border-color: var(--ad-border) !important;
        color: var(--ad-text2) !important;
    }

    html.dark .adw-article-card {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-article-title {
        color: var(--ad-text) !important;
    }

    html.dark .adw-article-meta {
        color: var(--ad-muted) !important;
    }

    html.dark .adw-compose-box {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-source-tab {
        color: var(--ad-muted) !important;
    }

        html.dark .adw-source-tab.active, html.dark .adw-edit-tab.active {
            color: var(--gold) !important;
            border-color: var(--gold) !important;
            background: #171717;
        }

    /* ── Profile ── */
    html.dark .adw-profile-ava {
        border-color: var(--gold) !important;
        background: rgba(218,165,32,0.15) !important;
    }

    html.dark .adw-profile-stat-row {
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-profile-info-grid {
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-edit-tabs {
        border-color: var(--ad-border) !important;
        background: var(--ad-surface) !important;
    }

    /* ── Settings ── */
    html.dark .adw-settings-section-label {
        color: var(--gold) !important;
    }

    html.dark .adw-settings-row {
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-settings-row-label {
        color: var(--ad-text) !important;
    }

    html.dark .adw-settings-row-sub {
        color: var(--ad-muted) !important;
    }

    /* ── Event detail ── */
    html.dark .adw-evtd-stat-card {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-evtd-organizer,
    html.dark .adw-evtd-attendees {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    /* ── Post detail ── */
    html.dark .adw-postd-hero {
        background: #1a1508 !important;
    }

    html.dark .adw-postd-comment {
        /*background: var(--ad-surface) !important;*/
        border-color: var(--ad-border) !important;
    }

    /* ── Nearby locations ── */
    html.dark .adw-nearby-card {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-radius-btn {
        background: var(--ad-surface) !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text2) !important;
    }

        html.dark .adw-radius-btn.active {
            background: rgba(218,165,32,0.18) !important;
            border-color: var(--gold) !important;
            color: var(--gold) !important;
        }

    /* ── Locations grid ── */
    html.dark .adw-location-cat-card {
        opacity: 0.85;
    }

    /* ── Help / FAQ ── */
    html.dark .adw-help-hero {
        background: linear-gradient(160deg,#1a1108,#2e2208) !important;
    }

    html.dark .adw-faq-item {
        background: var(--ad-card) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-faq-item-btn {
        color: var(--ad-text) !important;
        background: transparent !important;
    }

    html.dark .adw-faq-answer {
        color: var(--ad-text2) !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .adw-help-contact-bar {
        background: rgba(218,165,32,0.08) !important;
        border-color: rgba(218,165,32,0.2) !important;
    }

    /* ── Forms ── */
    html.dark .adw-form-label {
        color: var(--ad-text2) !important;
    }

    html.dark .adw-form-date-btn {
        background: var(--ad-surface) !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text2) !important;
    }

    html.dark .evt-type-trigger {
        background: var(--ad-surface) !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text2) !important;
    }

    html.dark .evt-type-trigger--selected {
        border-color: var(--gold) !important;
        color: var(--gold) !important;
    }

    /* ── Pagination ── */
    html.dark .adw-pagination-label {
        color: var(--ad-muted) !important;
    }

    /* ── Empty state ── */
    html.dark .adw-empty-text {
        color: var(--ad-muted) !important;
    }

    /* ── Mobile drawer (already covered above, extra items) ── */
    html.dark .ad-mob-drawer-head {
        border-color: var(--ad-border) !important;
    }

    html.dark .ad-mob-section-label {
        color: var(--ad-faint) !important;
    }

    html.dark .ad-mob-navbtn {
        color: var(--ad-text2) !important;
    }

        html.dark .ad-mob-navbtn:hover,
        html.dark .ad-mob-navbtn.active {
            background: rgba(218,165,32,0.12) !important;
            color: var(--gold) !important;
        }

    html.dark .ad-hamburger {
        background: #1e1a10 !important;
        border-color: #3a3020 !important;
    }

        html.dark .ad-hamburger span {
            background: var(--ad-text2) !important;
        }

    /* ── Report modals ── */
    html.dark .modal-content,
    html.dark .modal-reason {
        background: #0c0c0c !important;
        border-color: var(--ad-border) !important;
        color: var(--ad-text) !important;
    }

    html.dark .modal-header {
        background: #0c0c0c !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .modal-header .modal-title,
    html.dark .modal-header h5 {
        color: #ffffff !important;
    }

    html.dark .modal-footer {
        background: #0c0c0c !important;
        border-color: var(--ad-border) !important;
    }

    html.dark .modal-body {
        background: #0c0c0c !important;
    }

    html.dark .btn-close {
        filter: invert(1) !important;
    }

/* ══════════════════════════════════════
   EXTRACTED INLINE STYLES — Web Browser Sections
══════════════════════════════════════ */

/* ── DashboardHome ── */
.adw-dash-week-label-today {
    font-weight: 700;
    color: #fff;
}

.adw-dash-act-skeleton {
    height: 60px;
    background: var(--ad-border2);
    border-radius: 12px;
    animation: ad-shimmer 1.5s infinite;
    margin-top: 10px;
}

.adw-dash-act-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.adw-dash-act-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--gold-lt);
    border: 1.5px solid var(--gold);
    border-radius: 12px;
}

.adw-dash-act-emoji {
    font-size: 22px;
    flex-shrink: 0;
}

.adw-dash-act-body {
    flex: 1;
    min-width: 0;
}

.adw-dash-act-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ad-text);
}

.adw-dash-act-dur {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.adw-dash-act-desc {
    font-size: 12px;
    color: var(--ad-text2);
    margin-top: 4px;
    line-height: 1.4;
}

.adw-dash-act-btn {
    flex-shrink: 0;
    border-radius: 8px;
}

.adw-dash-act-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.adw-dash-act-empty-emoji {
    font-size: 22px;
}

.adw-dash-act-empty-count {
    font-weight: 600;
    font-size: 14px;
}

.adw-dash-act-empty-sub {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.adw-dash-act-empty-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.adw-dash-post-skel-item {
    opacity: 0.4;
}

.adw-dash-post-skel-inner {
    height: 80px;
    background: var(--ad-border2);
    border-radius: 12px;
    animation: ad-shimmer 1.5s infinite;
}

.adw-dash-post-ava {
    background: var(--gold-lt);
    object-fit: cover;
}

.adw-dash-post-flex1 {
    flex: 1;
}

.adw-dash-post-empty {
    font-size: 14px;
    color: var(--ad-muted);
    text-align: center;
    padding: 20px 0;
}

.adw-dash-post-empty-btn {
    margin-top: 10px;
}

.adw-dash-side-label-mb {
    margin-bottom: 14px;
}

.adw-dash-evt-skel {
    height: 80px;
    background: var(--ad-border2);
    border-radius: 14px;
    animation: ad-shimmer 1.5s infinite;
}

.adw-dash-evt-all-btn {
    width: 100%;
    border-radius: 10px;
}

.adw-dash-feat-post-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    cursor: pointer;
}

.adw-dash-feat-post-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ad-blue-lt);
    border: 1.5px solid var(--ad-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.adw-dash-feat-post-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ad-text);
    line-height: 1.3;
    margin-bottom: 6px;
}

.adw-dash-feat-post-footer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.adw-dash-feat-post-likes {
    font-size: 12px;
    color: var(--ad-muted);
}

.adw-dash-feat-post-link-btn {
    width: 100%;
    text-align: center;
}

.adw-dash-sec-label-mb {
    margin-bottom: 14px;
}

/* ── Activities ── */
.adw-chips-row-acts {
    margin-bottom: 20px;
}

.adw-acts-completed-section {
    margin-top: 24px;
}

.adw-act-completed-card {
    opacity: 0.7;
    background: #f0fdf4;
    border-color: #86efac;
}

.adw-act-completed-icon {
    background: #dcfce7;
    border: 2px solid #86efac;
}

.adw-act-completed-name {
    text-decoration: line-through;
    color: var(--ad-muted);
}

.adw-act-undo-btn {
    border-radius: 8px;
    background: var(--ad-green-lt);
    border: 1.5px solid #4caf50;
    color: var(--ad-green);
}

.adw-act-goal-banner {
    border: 1.5px solid #86efac;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.adw-act-goal-emoji {
    font-size: 32px;
}

.adw-act-goal-title {
    font-weight: 700;
    color: #15803d;
    font-size: 15px;
}

.adw-act-goal-sub {
    font-size: 13px;
    color: #4ade80;
}

.adw-act-show-more {
    text-align: center;
    margin: 20px 0;
}

.adw-act-show-more-btn {
    border-radius: 10px;
    padding: 10px 28px;
}

.adw-act-card-primary-icon {
    background: var(--gold-lt);
    border: 2px solid var(--gold);
}

.adw-act-do-btn {
    border-radius: 8px;
}

.adw-act-done-btn {
    border-radius: 8px;
    background: #f5edd8;
    border: 1.5px solid var(--ad-border2);
    color: var(--ad-text2);
}

.adw-act-suggest-done {
    font-size: 13px;
    font-weight: 700;
    color: var(--ad-green);
}

.adw-act-suggest-start-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
}

/* ── Posts ── */
.adw-posts-chips-row {
    margin-bottom: 20px;
}

.adw-posts-compose-btn {
    border-radius: 10px;
}

.adw-posts-post-flex1 {
    flex: 1;
}

.adw-posts-post-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.adw-posts-article-thumb-color {
    color: var(--ad-muted);
}

.adw-posts-article-flex1 {
    flex: 1;
}

.adw-posts-article-likes {
    font-size: 12px;
    color: var(--ad-muted);
}

.adw-posts-article-read-btn {
    border-radius: 8px;
    margin-top: 10px;
}

.adw-posts-side-label-mb {
    margin-bottom: 14px;
}

.adw-posts-trending-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--ad-border2);
    cursor: pointer;
}

.adw-posts-trending-emoji {
    font-size: 22px;
    flex-shrink: 0;
}

.adw-posts-trending-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ad-text);
    line-height: 1.3;
}

.adw-posts-trending-likes {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 3px;
}

/* ── Events ── */
.adw-events-search-btn {
    border-radius: 10px;
    padding: 11px 16px;
}

.adw-events-attendees-count {
    font-size: 13px;
    color: var(--ad-muted);
}

.adw-events-card-btn {
    flex: 1;
    justify-content: center;
    border-radius: 8px;
}

.adw-events-clear-btn {
    border-radius: 8px;
}

/* ── Profile ── */
.adw-profile-edit-btn-primary {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 8px;
}

.adw-profile-logout-btn {
    width: 100%;
    border-radius: 10px;
    color: var(--ad-red);
}

.adw-profile-sec-label-mb {
    margin-bottom: 14px;
}

.adw-profile-sec-label-mb2 {
    margin-bottom: 16px;
}

.adw-profile-recent-evt-date {
    font-size: 12px;
    color: var(--ad-muted);
    margin-top: 2px;
}

.adw-profile-edit-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.adw-profile-edit-back-btn {
    border-radius: 8px;
}

.adw-profile-edit-card {
    max-width: 620px;
}

.adw-profile-ava-edit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.adw-profile-ava-relative {
    position: relative;
}

.adw-profile-ava-lg {
    width: 90px;
    height: 90px;
    font-size: 36px;
}

.adw-profile-photo-input {
    display: none;
}

.adw-profile-photo-btn {
    border-radius: 20px;
}

.adw-profile-name-row {
    display: flex;
    gap: 12px;
}

.adw-profile-name-field {
    flex: 1;
}

/* ── Settings ── */
.adw-settings-edit-profile-btn {
    border-radius: 8px;
}

.adw-settings-notif-flex1 {
    flex: 1;
}

.adw-settings-biometric-flex1 {
    flex: 1;
}

.adw-settings-text-size-flex1 {
    flex: 1;
}

.adw-settings-text-size-row {
    display: flex;
    gap: 6px;
}

.adw-settings-help-flex1 {
    flex: 1;
}

.adw-settings-help-btn {
    border-radius: 8px;
}

.adw-settings-logout-label {
    color: var(--ad-red);
}

.adw-settings-about-cursor {
    cursor: pointer;
}

/* ── Locations ── */
.adw-locations-header-mb {
    margin-bottom: 24px;
}

.adw-locations-pharmacy-card {
    background: #d4edda;
    border-color: #3a9a4a;
}

.adw-locations-clinic-card {
    background: #d0e8fd;
    border-color: #4a7fd4;
}

.adw-locations-daycare-card {
    background: var(--gold-lt);
    border-color: var(--gold);
}

.adw-locations-soon-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ad-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adw-locations-teaser-pin {
    font-size: 20px;
}

/* ── Help ── */
.adw-help-chips-center {
    justify-content: center;
    margin-bottom: 32px;
}

.adw-help-contact-link-btn {
    background: #fff;
    color: var(--gold-dk);
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    flex-shrink: 0;
}

/* ── EventDetails ── */
.adw-evtd-back-btn {
    border-radius: 8px;
    margin-bottom: 20px;
}

.adw-evtd-stat-date {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

.adw-evtd-stat-location {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

.adw-evtd-login-card {
    text-align: center;
}

.adw-evtd-login-hint {
    font-size: 14px;
    color: var(--ad-muted);
    margin-bottom: 12px;
}

.adw-evtd-external-link {
    margin-top: 14px;
    border-radius: 8px;
}

.adw-evtd-att-overflow {
    background: var(--ad-border2);
    color: var(--ad-muted);
    font-size: 11px;
}

.adw-evtd-org-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-evtd-org-role {
    font-size: 12px;
    color: var(--ad-muted);
}

.adw-evtd-org-msg-btn {
    border-radius: 8px;
}

.adw-evtd-org-flex1 {
    flex: 1;
}

.adw-evtd-not-found {
    padding: 80px 20px;
}

.adw-evtd-not-found-back-btn {
    border-radius: 8px;
}

/* ── PostDetails ── */
.adw-postd-back-btn {
    border-radius: 8px;
    margin-bottom: 20px;
}

.adw-postd-msg-author-btn {
    margin-left: auto;
    border-radius: 8px;
}

.adw-postd-likes-muted {
    font-size: 13px;
    color: var(--ad-muted);
}

.adw-postd-no-likes {
    font-size: 13px;
    color: var(--ad-muted);
}

.adw-postd-reported-btn {
    border-radius: 8px;
    opacity: 0.5;
    color: var(--ad-muted);
}

.adw-postd-report-btn {
    border-radius: 8px;
    color: var(--ad-muted);
}

.adw-postd-ext-link {
    border-radius: 8px;
}

.adw-postd-body-card {
    margin-bottom: 24px;
}

.adw-postd-body-label {
    margin-bottom: 12px;
}

.adw-postd-comment-flag-btn {
    float: right;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--ad-muted);
}

.adw-postd-load-more {
    text-align: center;
    margin-top: 12px;
}

.adw-postd-load-more-btn {
    border-radius: 8px;
}

.adw-postd-no-comments {
    text-align: center;
    padding: 24px 0;
    color: var(--ad-muted);
    font-size: 14px;
}

.adw-postd-compose-ava {
    align-self: flex-end;
    margin-bottom: 2px;
}

.adw-postd-submit-btn {
    border-radius: 10px;
    flex-shrink: 0;
}

.adw-postd-login-link {
    font-size: 14px;
    color: var(--ad-muted);
    text-align: center;
    margin-top: 16px;
}

/* ── NearbySOSLocations ── */
.adw-nearby-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.adw-nearby-info-sep {
    color: var(--ad-border2);
}

.adw-nearby-radius-strong {
    color: var(--gold-dk);
}

.adw-nearby-back-btn {
    border-radius: 8px;
}

.adw-nearby-err-mb {
    margin-bottom: 20px;
}

.adw-nearby-err-hint {
    font-size: 13px;
    color: var(--ad-red);
}

.adw-nearby-geo-icon {
    color: var(--gold);
}

.adw-nearby-dist-icon {
    color: var(--ad-blue);
}

.adw-nearby-rating-muted {
    font-size: 12px;
    color: var(--ad-muted);
}

.adw-nearby-website-btn {
    border-radius: 8px;
    text-align: center;
}

.adw-nearby-call-btn {
    border-radius: 8px;
    text-align: center;
}

.adw-nearby-empty-hint {
    font-size: 13px;
    color: var(--ad-muted);
    margin-top: 8px;
}

/* ── EventForm ── */
.adw-evtf-back-btn {
    border-radius: 8px;
}

/* ── PostForm ── */
.adw-postf-back-btn {
    border-radius: 8px;
}

/* ── PublicHome ── */
.adw-landing-how-section {
    background: #fff;
}

.adw-landing-features-section {
    background: var(--ad-bg);
}

.adw-landing-cta-primary-lg {
    font-size: 18px;
    padding: 17px 52px;
}

/* ── Login ── */
.adw-login-btn-opacity-partial {
    opacity: 0.5;
}

.adw-login-social-btn-disabled {
    opacity: 0.45;
}

/* ── Register ── */
.adw-reg-success-center {
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.adw-reg-success-emoji {
    font-size: 60px;
    margin-bottom: 20px;
}

.adw-reg-success-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--ad-text);
    margin-bottom: 12px;
}

.adw-reg-success-sub {
    font-size: 16px;
    color: var(--ad-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.adw-reg-step-bar-mb {
    margin-bottom: 8px;
}

.adw-reg-heading-mt {
    margin-top: 8px;
}

.adw-reg-recaptcha-show {
    margin-top: 8px;
}

.adw-reg-recaptcha-hide {
    display: none;
}

.adw-reg-name-row {
    display: flex;
    gap: 12px;
}

.adw-reg-name-field {
    flex: 1;
}

.adw-reg-terms-font {
    font-size: 13px;
    color: var(--ad-text2);
    line-height: 1.5;
}

.adw-reg-terms-link {
    color: var(--gold);
    font-weight: 700;
    cursor: pointer;
}

.adw-reg-back-btn {
    background: none;
    border: none;
    color: var(--ad-muted);
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    padding: 0;
}

/* ── AgeVerification ── */
.adw-agev-subtitle {
    font-size: 14px;
    color: var(--ad-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.adw-agev-info-font {
    font-size: 13px;
}

/* ── ForgotPassword ── */
.adw-fp-success-center {
    text-align: center;
    padding: 20px 0;
}

.adw-fp-success-emoji {
    font-size: 52px;
    margin-bottom: 16px;
}

.adw-fp-success-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 8px;
}

.adw-fp-success-email-wrap {
    font-size: 14px;
    color: var(--ad-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.adw-fp-success-email-val {
    color: var(--gold-dk);
}

.adw-fp-back-btn {
    border-radius: 10px;
}

/* ── ResetPassword ── */
.adw-rp-card-maxw {
    max-width: 460px;
    width: 100%;
}

.adw-rp-success-center {
    text-align: center;
    padding: 20px 0;
}

.adw-rp-success-emoji {
    font-size: 52px;
    margin-bottom: 16px;
}

.adw-rp-success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 8px;
}

.adw-rp-success-msg {
    font-size: 14px;
    color: var(--ad-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.adw-rp-error-center {
    text-align: center;
    padding: 20px 0;
}

.adw-rp-error-emoji {
    font-size: 52px;
    margin-bottom: 16px;
}

.adw-rp-error-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 8px;
}

.adw-rp-form-hint {
    font-size: 14px;
    color: var(--ad-muted);
    margin-bottom: 20px;
}

/* ── ConfirmEmail ── */
.adw-ce-loading-center {
    padding: 20px 0;
}

.adw-ce-loading-emoji {
    font-size: 52px;
    margin-bottom: 20px;
    animation: ad-shimmer 1.5s infinite;
}

.adw-ce-loading-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ad-text);
    margin-bottom: 8px;
}

.adw-ce-loading-hint {
    font-size: 14px;
    color: var(--ad-muted);
    margin-top: 8px;
}

.adw-ce-loading-bar {
    margin-top: 20px;
    border-radius: 20px;
}

.adw-ce-success-center {
    padding: 20px 0;
}

.adw-ce-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ad-green-lt);
    border: 2px solid var(--ad-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.adw-ce-success-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--ad-text);
    margin-bottom: 10px;
}

.adw-ce-success-msg {
    font-size: 15px;
    color: var(--ad-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.adw-ce-error-center {
    padding: 20px 0;
}

.adw-ce-error-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ad-red-lt);
    border: 2px solid var(--ad-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.adw-ce-error-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--ad-text);
    margin-bottom: 10px;
}

.adw-ce-error-back-btn {
    border-radius: 10px;
}

.adw-ce-auth-link-center {
    margin-top: 16px;
    text-align: center;
}

.adw-ce-card-text-center {
    text-align: center;
}

/* ── NavMenu (web browser else block) ── */
.adw-nav-admin-btn {
    font-size: 11px;
    padding: 5px 10px;
}

.adw-nav-notif-clear-btn {
    width: 100%;
}

.adw-nav-notif-padding {
    padding: 8px 16px;
}

.adw-nav-login-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-size: 15px;
}

.adw-nav-register-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-size: 15px;
}

/* ── Footer ── */
.adw-footer-toggles-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.adw-footer-theme-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adw-footer-moon-icon {
    color: #c8a84b;
    font-size: 13px;
}

.adw-footer-sun-icon {
    color: #e8b84b;
    font-size: 13px;
}

.adw-footer-theme-toggle {
    margin: 0;
}

.adw-footer-lang-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adw-footer-brand-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.adw-footer-flag {
    width: 18px;
    height: 13px;
    opacity: 0.6;
    border-radius: 2px;
}

.adw-footer-lang-toggle {
    margin: 0;
}

/* ── NearbyMapWeb ── */
.nmap-location-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nmap-location-input-wrap {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 6px;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
}

.nmap-location-pin {
    font-size: 13px;
}

.nmap-location-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

.nmap-search-btn {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #DAA520;
    background: #fff8e1;
    color: #b8860b;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}

.nmap-gps-btn {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.nmap-geocode-error {
    font-size: 12px;
    color: #c0392b;
    margin-bottom: 8px;
}

.nmap-coords {
    font-size: 11px;
    color: #999;
    font-family: monospace;
    margin-bottom: 4px;
}

.nmap-low-accuracy-warn {
    font-size: 12px;
    color: #b8860b;
    background: #fff8e1;
    border: 1px solid #f0d060;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.nmap-map-wrap {
    position: relative;
}

/* ── Location card actions ── */
.nmap-clickable-card {
    transition: box-shadow 0.15s, transform 0.15s;
    cursor: default;
}

    .nmap-clickable-card:hover {
        box-shadow: 0 4px 18px rgba(0,0,0,0.1);
        transform: translateY(-1px);
    }

.nmap-card-address {
    font-size: 0.82rem;
    color: var(--ad-muted);
    margin-bottom: 10px;
}

.nmap-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.nmap-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nmap-action-call {
    background: var(--ad-blue-lt);
    color: var(--ad-blue);
    border: 1px solid #c5d8fc;
}

    .nmap-action-call:hover {
        background: var(--ad-blue);
        color: #fff;
    }

.nmap-action-map {
    background: var(--gold-lt);
    color: var(--gold-dk);
    border: 1px solid #e8d898;
}

    .nmap-action-map:hover {
        background: var(--gold);
        color: #fff;
    }

.nmap-action-dir {
    background: var(--ad-green-lt);
    color: var(--ad-green);
    border: 1px solid #b2d8b8;
}

    .nmap-action-dir:hover {
        background: var(--ad-green);
        color: #fff;
    }

/* ═══════════════════════════════════════════════════════════════
   Extracted inline styles — browser sections
   Added by refactor pass: remove static style="" attributes
═══════════════════════════════════════════════════════════════ */

/* ── Posts.razor (browser) ── */
/* Article icon inside adw-article-thumb */
.adw-posts-article-icon {
    font-size: 28px;
}

/* ── ConfirmEmail.razor (browser) ── */
/* Outer container constraining the auth card width */
.adw-ce-container {
    max-width: 480px;
    width: 100%;
}

/* ── NearbySOSLocations.razor (browser loading state) ── */
/* Loading text below spinner */
.adw-nearby-loading-text {
    font-size: 15px;
    color: var(--ad-muted);
}

/* ── PostDetails.razor (browser) ── */
/* Flex wrapper for comment body (fills remaining width) */
.adw-postd-comment-flex {
    flex: 1;
    min-width: 0;
}

/* Login-to-comment inline button (no chrome, gold text) */
.adw-auth-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    padding: 0;
}

/* ── EventDetails.razor (browser) ── */
/* Attendee avatar photo fills its circular container */
.adw-evtd-att-ava-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ══════════════════════════════════════
   MESSAGES — Web two-column layout
══════════════════════════════════════ */

/* Override outer scroll for messages page so the inner chat scrolls */
.adw-msg-layout ~ * { display: none; }
.adw-msg-layout,
#main-scroll-container:has(.adw-msg-layout) {
    overflow: hidden !important;
}
#main-scroll-container:has(.adw-msg-layout) > .page {
    overflow-y: hidden !important;
    padding-bottom: 0 !important;
}

.adw-msg-layout {
    display: flex;
    height: calc(100dvh - 64px);
    background: var(--ad-bg);
    overflow: hidden;
    margin-top: 0 !important;
}

/* ── Sidebar ── */
.adw-msg-sidebar {
    width: 320px;
    min-width: 280px;
    max-width: 360px;
    border-right: 1.5px solid var(--ad-border2);
    background: var(--ad-surface);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
}

.adw-msg-sidebar-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--ad-border);
    flex-shrink: 0;
}

.adw-msg-sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ad-text);
    margin: 0;
}

.adw-msg-new-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--gold-lt);
    color: var(--gold-dk);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.15s;
}

    .adw-msg-new-btn:hover {
        background: var(--gold);
        color: #fff;
    }

/* Search */
.adw-msg-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ad-border);
    flex-shrink: 0;
}

.adw-msg-search-icon {
    color: var(--ad-muted);
    font-size: 0.85rem;
}

.adw-msg-search-inp {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--ad-text);
}

    .adw-msg-search-inp::placeholder {
        color: var(--ad-faint);
    }

/* Conversation list */
.adw-msg-conv-list {
    flex: 1;
    overflow-y: auto;
}

.adw-msg-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--ad-border);
    position: relative;
    transition: background 0.12s;
}

    .adw-msg-conv-item:hover {
        background: var(--gold-lt);
    }

    .adw-msg-conv-item.active {
        background: var(--gold-lt);
        border-left: 3px solid var(--gold);
    }

    .adw-msg-conv-item.unread .adw-msg-conv-name {
        font-weight: 700;
    }

    .adw-msg-conv-item.unread .adw-msg-conv-preview {
        font-weight: 600;
        color: var(--ad-text);
    }

.adw-msg-avatar {
    background: var(--gold-lt);
    color: var(--gold-dk);
    font-weight: 700;
}

.adw-msg-conv-info {
    flex: 1;
    min-width: 0;
}

.adw-msg-conv-row1 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 3px;
}

.adw-msg-conv-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ad-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adw-msg-conv-time {
    font-size: 0.72rem;
    color: var(--ad-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.adw-msg-conv-row2 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adw-msg-conv-preview {
    font-size: 0.8rem;
    color: var(--ad-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

    .adw-msg-conv-preview.unread {
        color: var(--ad-text2);
        font-weight: 600;
    }

.adw-msg-conv-del {
    opacity: 0;
    background: none;
    border: none;
    color: var(--ad-red);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

    .adw-msg-conv-item:hover .adw-msg-conv-del {
        opacity: 1;
    }

    .adw-msg-conv-del:hover {
        background: var(--ad-red-lt);
    }

/* ── Chat panel ── */
.adw-msg-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ad-bg);
    min-width: 0;
}

/* Empty / no-conversation-selected state */
.adw-msg-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ad-muted);
}

.adw-msg-no-chat-icon {
    font-size: 3rem;
    opacity: 0.4;
}

.adw-msg-no-chat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ad-text2);
}

.adw-msg-no-chat-sub {
    font-size: 0.85rem;
    color: var(--ad-muted);
}

/* Chat header */
.adw-msg-chat-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--ad-surface);
    border-bottom: 1.5px solid var(--ad-border2);
    flex-shrink: 0;
}

.adw-msg-back {
    background: none;
    border: none;
    color: var(--ad-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none; /* hidden on desktop */
    transition: background 0.12s;
}

    .adw-msg-back:hover {
        background: var(--ad-border);
        color: var(--ad-text);
    }

.adw-msg-chat-hdr-info {
    flex: 1;
    min-width: 0;
}

.adw-msg-chat-hdr-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-msg-chat-hdr-status {
    font-size: 0.78rem;
    color: var(--ad-muted);
    margin-top: 1px;
}

.adw-msg-hdr-del {
    background: none;
    border: none;
    color: var(--ad-muted);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: color 0.12s, background 0.12s;
}

    .adw-msg-hdr-del:hover {
        color: var(--ad-red);
        background: var(--ad-red-lt);
    }

/* Messages area */
.adw-msg-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Input bar ── */
.adw-msg-input-bar {
    flex-shrink: 0;
    background: var(--ad-surface);
    border-top: 1.5px solid var(--ad-border2);
    padding: 10px 16px;
}

    .adw-msg-input-bar.edit-mode {
        padding-top: 6px;
    }

.adw-msg-input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.adw-msg-textarea {
    flex: 1;
    min-height: 38px;
    max-height: 120px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--ad-card);
    color: var(--ad-text);
    resize: none;
    outline: none;
    line-height: 1.45;
    transition: border-color 0.15s;
}

    .adw-msg-textarea:focus {
        border-color: var(--gold);
    }

    .adw-msg-textarea::placeholder {
        color: var(--ad-faint);
    }

.adw-msg-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.15s, opacity 0.15s;
}

    .adw-msg-send-btn:hover:not(:disabled) {
        background: var(--gold-dk);
    }

    .adw-msg-send-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

    .adw-msg-send-btn.edit {
        background: var(--ad-green);
    }

/* ── Empty state ── */
.adw-msg-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--ad-muted);
    text-align: center;
}

.adw-msg-empty-icon {
    font-size: 2.2rem;
    opacity: 0.45;
}

.adw-msg-empty-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ad-text2);
}

.adw-msg-empty-sub {
    font-size: 0.82rem;
    color: var(--ad-muted);
}

/* ── Modals ── */
.adw-msg-modal {
    background: var(--ad-surface);
    border-radius: 16px;
    width: 480px;
    max-width: calc(100vw - 32px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.adw-msg-modal-sm {
    width: 380px;
}

.adw-msg-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--ad-border);
    flex-shrink: 0;
}

.adw-msg-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ad-text);
}

.adw-msg-modal-close {
    background: none;
    border: none;
    color: var(--ad-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 1rem;
}

    .adw-msg-modal-close:hover {
        background: var(--ad-border);
        color: var(--ad-text);
    }

.adw-msg-modal-body {
    padding: 20px;
    text-align: center;
}

.adw-msg-del-icon {
    font-size: 2rem;
    color: var(--ad-red);
    margin-bottom: 12px;
}

.adw-msg-del-text {
    font-size: 0.9rem;
    color: var(--ad-text);
    margin-bottom: 6px;
}

.adw-msg-del-warn {
    font-size: 0.8rem;
    color: var(--ad-muted);
}

.adw-msg-modal-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ad-border);
}

.adw-msg-modal-search {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--ad-text);
}

.adw-msg-user-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--ad-border);
    transition: background 0.12s;
}

    .adw-msg-user-result:hover {
        background: var(--gold-lt);
    }

.adw-msg-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--ad-muted);
    font-size: 0.85rem;
}

.adw-msg-selected-user {
    background: var(--gold-lt);
    border-radius: 10px;
    margin: 12px 16px 0;
}

.adw-msg-compose-textarea {
    width: 100%;
    min-height: 90px;
    border: 1.5px solid var(--ad-border2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--ad-bg);
    color: var(--ad-text);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    margin: 12px 16px 0;
    width: calc(100% - 32px);
}

    .adw-msg-compose-textarea:focus {
        border-color: var(--gold);
    }

.adw-msg-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--ad-border);
    flex-shrink: 0;
}

.adw-msg-btn-danger {
    background: var(--ad-red) !important;
}

    .adw-msg-btn-danger:hover {
        background: #a02020 !important;
    }

/* ── Mobile: single panel, slide ── */
@media (max-width: 768px) {
    .adw-msg-sidebar {
        width: 100%;
        max-width: 100%;
        border-right: none;
        position: absolute;
        inset: 0;
        z-index: 2;
        transition: transform 0.22s ease;
    }

    .adw-msg-chat-panel {
        position: absolute;
        inset: 0;
        z-index: 1;
        transform: translateX(100%);
        transition: transform 0.22s ease;
    }

    .adw-msg-layout.conv-open .adw-msg-sidebar {
        transform: translateX(-100%);
    }

    .adw-msg-layout.conv-open .adw-msg-chat-panel {
        transform: translateX(0);
        z-index: 2;
    }

    .adw-msg-back {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .adw-msg-layout {
        position: relative;
        overflow: hidden;
    }
}

/* ── Dark mode ── */
html.dark .adw-msg-sidebar {
    background: var(--ad-surface);
    border-right-color: var(--ad-border2);
}

html.dark .adw-msg-sidebar-hdr,
html.dark .adw-msg-chat-hdr {
    background: var(--ad-surface);
}

html.dark .adw-msg-conv-item:hover,
html.dark .adw-msg-conv-item.active {
    background: #1e1a10;
}

html.dark .adw-msg-new-btn {
    background: #2a2010;
    color: var(--gold);
}

html.dark .adw-msg-textarea,
html.dark .adw-msg-compose-textarea {
    background: #1a1505;
    border-color: var(--ad-border2);
    color: var(--ad-text);
}

html.dark .adw-msg-modal {
    background: #1a1505;
}

html.dark .adw-msg-modal-hdr {
    border-bottom-color: var(--ad-border2);
}

html.dark .adw-msg-input-bar {
    background: var(--ad-surface);
    border-top-color: var(--ad-border2);
}

html.dark .adw-msg-chat-panel {
    background: #0f0d07;
}

html.dark .adw-msg-user-result:hover {
    background: #1e1a10;
}
