/**
 * AgarwoodHub Design System & Frontend CSS
 * Ultra-Modern, Luxury & Premium Botanical Commodity Aesthetics
 */

:root {
    /* Brand Palette: Imperial Agarwood Oud, Forest Emerald & Warm Sand */
    --ag-primary: #1C120C;
    --ag-primary-hover: #120A06;
    --ag-primary-surface: #281A12;
    --ag-primary-soft: #F5EFEB;

    --ag-gold: #C89B2B;
    --ag-gold-hover: #B5881C;
    --ag-gold-gradient: linear-gradient(135deg, #D6A834 0%, #B8851B 100%);
    --ag-gold-soft: #FDF8EC;
    --ag-gold-glow: 0 4px 18px rgba(200, 155, 43, 0.28);

    --ag-emerald: #1C3B2B;
    --ag-emerald-hover: #132A1E;
    --ag-emerald-soft: #EBF5F0;

    --ag-bg-warm: #FAF7F2;
    --ag-card-bg: #FFFFFF;
    --ag-surface-subtle: #F6F1EA;

    --ag-border: #E8E0D5;
    --ag-border-light: #F2ECE3;
    --ag-border-hover: #D0C5B5;

    --ag-text: #1E1815;
    --ag-text-muted: #6B6259;
    --ag-text-subtle: #94897E;

    /* Multi-layered Soft Ambient Shadows */
    --ag-shadow-xs: 0 1px 3px rgba(28, 18, 12, 0.04);
    --ag-shadow-sm: 0 3px 10px -1px rgba(28, 18, 12, 0.06);
    --ag-shadow-md: 0 8px 24px -3px rgba(28, 18, 12, 0.08), 0 2px 6px rgba(28, 18, 12, 0.03);
    --ag-shadow-lg: 0 18px 40px -6px rgba(28, 18, 12, 0.12), 0 6px 16px rgba(28, 18, 12, 0.05);
    --ag-shadow-hover: 0 14px 32px -4px rgba(28, 18, 12, 0.12);

    /* Rounded Corner Tokens */
    --ag-radius-sm: 8px;
    --ag-radius-md: 12px;
    --ag-radius-lg: 16px;
    --ag-radius-pill: 50px;

    /* Micro-animation transitions */
    --ag-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

    /* Specialized Badges */
    --ag-badge-sale-bg: #E8F5EE;
    --ag-badge-sale-text: #1C6538;
    --ag-badge-grade-bg: #FEF7E8;
    --ag-badge-grade-text: #8F5E05;
    --ag-badge-oil-bg: #EBF5F9;
    --ag-badge-oil-text: #0C617E;
    --ag-badge-looking-bg: #FDF1EA;
    --ag-badge-looking-text: #9C3A10;
    --ag-badge-plantation-bg: #F0EDF7;
    --ag-badge-plantation-text: #433276;
}

body {
    background-color: var(--ag-bg-warm);
    color: var(--ag-text);
}

.ag-shell {
    margin-top: 18px;
    margin-bottom: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   1. Unified AgarwoodHub Sub-Navbar (.ag-subnav)
   ========================================================================== */
.ag-subnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    padding: 8px 14px;
    margin-bottom: 24px;
    box-shadow: var(--ag-shadow-sm);
    gap: 12px;
}

.ag-subnav-left {
    display: flex;
    align-items: center;
}

.ag-subnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 14px;
    border-right: 1px solid var(--ag-border-light);
    margin-right: 6px;
}

.ag-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ag-primary);
    color: var(--ag-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: var(--ag-shadow-xs);
}

.ag-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ag-primary);
    letter-spacing: -0.3px;
}

.ag-gold-text {
    color: var(--ag-gold);
}

.ag-subnav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
    flex-grow: 1;
}

.ag-subnav-links::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.ag-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ag-text-muted);
    text-decoration: none !important;
    transition: var(--ag-transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.ag-subnav-link i {
    font-size: 0.9rem;
    opacity: 0.85;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ag-subnav-link:hover {
    color: var(--ag-text);
    background: var(--ag-surface-subtle);
    border-color: var(--ag-border-light);
}

.ag-subnav-link.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, #24160E 0%, #160C07 100%);
    box-shadow: 0 4px 14px rgba(28, 18, 12, 0.22);
    border-color: rgba(200, 155, 43, 0.35);
    font-weight: 700;
}

.ag-subnav-link.active i {
    color: var(--ag-gold);
    opacity: 1;
}

.ag-subnav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ag-btn-create {
    background: var(--ag-gold-gradient);
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 18px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--ag-gold-glow);
    transition: var(--ag-transition);
    white-space: nowrap;
    cursor: pointer;
}

.ag-btn-create:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 155, 43, 0.42);
    color: #FFFFFF !important;
}

.ag-btn-create:active {
    transform: scale(0.98);
}

/* ==========================================================================
   2. Hero Search Banner (Page 1 Overview)
   ========================================================================== */
.ag-hero-banner {
    background: #9C6644;
    border-radius: 18px;
    padding: 44px 28px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--ag-shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200, 155, 43, 0.18);
}

.ag-hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200, 155, 43, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ag-hero-sub {
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 8px;
    background: rgba(200, 155, 43, 0.12);
    padding: 4px 14px;
    border-radius: 30px;
    border: 1px solid rgba(200, 155, 43, 0.22);
}

.ag-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.6px;
    color: #FFFFFF;
}

.ag-hero-tagline {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.ag-search-box {
    background: #FFFFFF;
    border-radius: var(--ag-radius-pill);
    padding: 6px;
    display: flex;
    max-width: 720px;
    margin: 0 auto 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ag-search-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--ag-text);
    background: transparent !important;
}

.ag-search-input:first-child {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.ag-search-divider {
    width: 1px;
    background: #EAE3D8;
    margin: 8px 0;
}

.ag-btn-search {
    background: var(--ag-gold-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--ag-radius-pill);
    padding: 10px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--ag-gold-glow);
    transition: var(--ag-transition);
}

.ag-btn-search:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 155, 43, 0.45);
    color: #FFFFFF;
}

.ag-quick-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ag-chip {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--ag-transition);
}

.ag-chip:hover {
    background: var(--ag-gold);
    color: #FFFFFF;
    border-color: var(--ag-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 155, 43, 0.3);
}

/* ==========================================================================
   3. Card Design System (.ag-card, .ag-card-listing, etc.)
   ========================================================================== */
.ag-card {
    background: var(--ag-card-bg);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    box-shadow: var(--ag-shadow-sm);
    transition: var(--ag-transition);
    position: relative;
}

.ag-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ag-border-light);
    background: #FAF7F2;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.ag-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ag-text);
    margin: 0;
}

.ag-card-body {
    padding: 16px 20px;
}

/* Marketplace Listing Card (.ag-card-listing) */
.ag-card-listing {
    background: #FFFFFF;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    overflow: hidden;
    box-shadow: var(--ag-shadow-sm);
    transition: var(--ag-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ag-card-listing:hover {
    transform: translateY(-4px);
    box-shadow: var(--ag-shadow-hover);
    border-color: var(--ag-border-hover);
}

.ag-card-img-wrap {
    height: 220px;
    background-color: #EFE9E0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ag-plantation-cover {
    height: 380px;
    min-height: 380px;
    background: linear-gradient(135deg, #2B1B17 0%, #442B21 50%, #1A100D 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: height 0.3s ease;
}

@media (max-width: 991px) {
    .ag-plantation-cover {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .ag-plantation-cover {
        height: 220px;
        min-height: 220px;
    }
}

.ag-storefront-cover {
    height: 360px;
    min-height: 360px;
    background-color: #38343D;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: height 0.3s ease;
}

@media (max-width: 991px) {
    .ag-storefront-cover {
        height: 280px;
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .ag-storefront-cover {
        height: 210px;
        min-height: 210px;
    }
}

.ag-card-listing .ag-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #FFFFFF;
}

.ag-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ag-text);
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 1.35;
}

.ag-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ag-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.ag-card-meta {
    font-size: 0.8rem;
    color: var(--ag-text-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--ag-border-light);
}

/* Talks & Events Luxury Dark Card */
.ag-card-talk {
    background: radial-gradient(circle at 100% 0%, #301E16 0%, #170E0A 100%);
    border: 1px solid rgba(200, 155, 43, 0.25);
    border-radius: var(--ag-radius-lg);
    padding: 26px;
    color: #FFFFFF;
    box-shadow: var(--ag-shadow-md);
    position: relative;
    overflow: hidden;
}

.ag-talk-tag {
    color: var(--ag-gold);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.ag-talk-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
    line-height: 1.3;
}

.ag-talk-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* ==========================================================================
   4. Sidebar Navigation (.ag-sidebar-menu)
   ========================================================================== */
.ag-sidebar-menu {
    background: #FFFFFF;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    padding: 8px;
    box-shadow: var(--ag-shadow-sm);
    margin-bottom: 20px;
}

.ag-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--ag-text);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 10px;
    text-decoration: none !important;
    transition: var(--ag-transition);
    margin-bottom: 2px;
}

.ag-side-item:hover {
    background: #F7F3EC;
    color: var(--ag-primary);
    transform: translateX(3px);
}

.ag-side-item.active {
    background: #F5EFEB;
    color: var(--ag-primary);
    font-weight: 700;
    border-left: 3px solid var(--ag-gold);
}

/* ==========================================================================
   5. Filter Pills & Tabs (.ag-filter-pills, .ag-sub-pills)
   ========================================================================== */
.ag-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.ag-filter-pill {
    padding: 8px 18px;
    background: #FFFFFF;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-pill);
    color: var(--ag-text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    user-select: none;
    transition: var(--ag-transition);
    display: inline-flex;
    align-items: center;
}

.ag-filter-pill:hover {
    background: #F6F1EA;
    color: var(--ag-text);
    border-color: var(--ag-border-hover);
}

.ag-filter-pill.active,
.btn-outline-secondary.ag-filter-pill.active,
.btn.ag-filter-pill.active {
    background-color: var(--ag-primary) !important;
    border-color: var(--ag-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(28, 18, 12, 0.22) !important;
}

.ag-sub-pills {
    display: inline-flex;
    gap: 4px;
    background: #EFEBE4;
    padding: 4px;
    border-radius: 10px;
}

.ag-sub-pill {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ag-text-muted);
    border-radius: 8px;
    text-decoration: none !important;
    transition: var(--ag-transition);
}

.ag-sub-pill:hover {
    color: var(--ag-text);
}

.ag-sub-pill.active {
    background: #FFFFFF;
    color: var(--ag-primary);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   6. Badges & Indicators
   ========================================================================== */
.ag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
    margin-right: 4px;
}

.badge-secondary {
    background-color: rgb(218, 255, 218);
}

.ag-badge-sale {
    background: var(--ag-badge-sale-bg);
    color: var(--ag-badge-sale-text);
    border: 1px solid rgba(28, 101, 56, 0.18);
}

.ag-badge-grade {
    background: var(--ag-badge-grade-bg);
    color: var(--ag-badge-grade-text);
    border: 1px solid rgba(143, 94, 5, 0.18);
}

.ag-badge-oil {
    background: var(--ag-badge-oil-bg);
    color: var(--ag-badge-oil-text);
    border: 1px solid rgba(12, 97, 126, 0.18);
}

.ag-badge-looking {
    background: var(--ag-badge-looking-bg);
    color: var(--ag-badge-looking-text);
    border: 1px solid rgba(156, 58, 16, 0.18);
}

.ag-badge-plantation {
    background: var(--ag-badge-plantation-bg);
    color: var(--ag-badge-plantation-text);
    border: 1px solid rgba(67, 50, 118, 0.18);
}

/* Avatar Circle Token */
.ag-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #24140E 0%, #3E2419 100%);
    color: var(--ag-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--ag-shadow-xs);
    overflow: hidden;
}

.ag-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

/* ==========================================================================
   7. Tables System (.ag-table)
   ========================================================================== */
.ag-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-md);
    overflow: hidden;
    margin-bottom: 0;
}

.ag-table thead th {
    background: #FAF7F2;
    color: var(--ag-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 13px 18px;
    border-top: none;
    border-bottom: 1px solid var(--ag-border);
}

.ag-table tbody td {
    padding: 14px 18px;
    border-top: none;
    border-bottom: 1px solid var(--ag-border-light);
    color: var(--ag-text);
    font-size: 0.92rem;
    vertical-align: middle;
}

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

.ag-table tbody tr:hover td {
    background: #FCFAF6;
}

/* ==========================================================================
   8. Buttons & Interactive Links
   ========================================================================== */
.ag-btn-gold,
.ag-shell .btn-warning {
    background: var(--ag-gold-gradient);
    border: 1px solid var(--ag-gold);
    color: #FFFFFF !important;
    font-weight: 700;
    border-radius: var(--ag-radius-sm);
    padding: 8px 18px;
    box-shadow: var(--ag-gold-glow);
    transition: var(--ag-transition);
}

.ag-btn-gold:hover,
.ag-shell .btn-warning:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(200, 155, 43, 0.42);
    color: #FFFFFF !important;
}

.ag-shell .btn-primary {
    background-color: var(--ag-primary);
    border-color: var(--ag-primary);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: var(--ag-radius-sm);
    padding: 8px 18px;
    box-shadow: var(--ag-shadow-xs);
    transition: var(--ag-transition);
}

.ag-shell .btn-primary:hover {
    background-color: var(--ag-primary-hover);
    border-color: var(--ag-primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--ag-shadow-sm);
}

.ag-shell .btn-outline-primary {
    color: var(--ag-primary);
    border-color: #D2C6B6;
    background: #FFFFFF;
    font-weight: 600;
    border-radius: var(--ag-radius-sm);
    padding: 8px 18px;
    transition: var(--ag-transition);
}

.ag-shell .btn-outline-primary:hover {
    background: var(--ag-primary);
    border-color: var(--ag-primary);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.ag-shell .btn-outline-secondary {
    color: var(--ag-text-muted);
    border-color: #D8D0C4;
    background: #FFFFFF;
    font-weight: 600;
    border-radius: var(--ag-radius-sm);
    padding: 8px 16px;
    transition: var(--ag-transition);
}

.ag-shell .btn-outline-secondary:hover {
    background: #F7F3EC;
    color: var(--ag-text);
    border-color: #C0B4A4;
}

.ag-link-subtle {
    color: var(--ag-gold);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--ag-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ag-link-subtle:hover {
    color: var(--ag-gold-hover);
    transform: translateX(2px);
}

/* ==========================================================================
   9. Form Controls & Inputs
   ========================================================================== */
.ag-shell .form-control,
.ag-shell select {
    border: 1px solid #D8D0C5;
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 0.92rem;
    color: var(--ag-text);
    background-color: #FFFFFF;
    transition: var(--ag-transition);
}

.ag-shell .form-control:focus,
.ag-shell select:focus {
    border-color: var(--ag-gold) !important;
    box-shadow: 0 0 0 3px rgba(200, 155, 43, 0.18) !important;
    outline: none;
}

.ag-shell .input-group-text {
    background: #FAF7F2;
    border-color: #D8D0C5;
    color: var(--ag-text-muted);
    font-weight: 600;
    border-radius: 9px 0 0 9px;
}

/* Breadcrumbs */
.ag-shell .breadcrumb {
    padding: 6px 0;
    margin-bottom: 16px;
    font-size: 0.86rem;
}

.ag-shell .breadcrumb-item a {
    color: var(--ag-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--ag-transition);
}

.ag-shell .breadcrumb-item a:hover {
    color: var(--ag-primary);
}

.ag-shell .breadcrumb-item.active {
    color: var(--ag-text);
    font-weight: 600;
}

/* Settings List Group */
.ag-shell .list-group-item {
    border-color: var(--ag-border-light);
    padding: 13px 18px;
    font-weight: 600;
    color: var(--ag-text);
    transition: var(--ag-transition);
    font-size: 0.92rem;
}

.ag-shell .list-group-item:hover {
    background: #FAF7F2;
    color: var(--ag-primary);
}

.ag-shell .list-group-item.active {
    background: var(--ag-primary) !important;
    border-color: var(--ag-primary) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   10. Voting Widget (Page 7 Forum)
   ========================================================================== */
.ag-vote-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #FAF7F2;
    border: 1px solid var(--ag-border);
    border-radius: 12px;
    padding: 6px 8px;
    min-width: 44px;
    margin-right: 16px;
    user-select: none;
    height: fit-content;
}

.ag-vote-btn {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 3px 6px;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
}

.ag-vote-btn:hover {
    transform: scale(1.2);
}

.ag-vote-btn.active-up,
.ag-vote-btn:hover:first-child {
    color: #16A34A;
}

.ag-vote-btn.active-down,
.ag-vote-btn:hover:last-child {
    color: #DC2626;
}

.ag-vote-score {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--ag-text);
    margin: 3px 0;
}

/* ==========================================================================
   11. Post Creation Wizard (Page 8)
   ========================================================================== */
.ag-wizard-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.ag-wizard-step {
    padding: 8px 18px;
    background: #FFFFFF;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ag-text-muted);
    white-space: nowrap;
    transition: var(--ag-transition);
    display: inline-flex;
    align-items: center;
}

.ag-wizard-step.active {
    background: var(--ag-primary);
    color: #FFFFFF;
    border-color: var(--ag-primary);
    box-shadow: 0 4px 14px rgba(28, 18, 12, 0.22);
}

.ag-live-preview-card {
    background: #FFFFFF;
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius-lg);
    padding: 18px;
    position: sticky;
    top: 20px;
    box-shadow: var(--ag-shadow-sm);
}

.ag-dropzone {
    border-color: #D1D5DB !important;
    border-radius: 12px;
    transition: var(--ag-transition);
}

.ag-dropzone:hover {
    border-color: var(--ag-gold) !important;
    background-color: #FFFDF9 !important;
}

/* Photo Gallery on Detail Page */
.ag-gallery-card {
    position: relative;
}

.ag-detail-main-img {
    border-radius: var(--ag-radius-lg);
    box-shadow: var(--ag-shadow-sm);
    border: 1px solid var(--ag-border);
    overflow: hidden;
    position: relative;
    user-select: none;
    transition: background-image 0.25s ease-in-out, box-shadow 0.2s ease;
}

.ag-detail-main-img.ag-zoomable {
    cursor: zoom-in;
}

.ag-detail-main-img:hover .ag-gallery-arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Slider Navigation Arrows */
.ag-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.94);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ag-forest, #1A3026);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    opacity: 0.88;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none !important;
    padding: 0;
}

.ag-gallery-arrow i {
    font-size: 15px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.ag-gallery-prev {
    left: 14px;
}

.ag-gallery-next {
    right: 14px;
}

.ag-gallery-arrow:hover {
    background: var(--ag-gold, #D4AF37);
    color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.ag-gallery-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.ag-gallery-arrow:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

/* Zoom Hint Badge */
.ag-gallery-zoom-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(26, 48, 38, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 9;
}

.ag-gallery-zoom-badge:hover {
    background: var(--ag-gold, #D4AF37);
    color: #ffffff;
    border-color: var(--ag-gold, #D4AF37);
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* Forum Photo Display Box */
.ag-forum-photo-box {
    width: 100%;
    height: 380px;
    max-height: 420px;
    background-color: #F1EFEA;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--ag-border, #EBE4D6);
    border-radius: var(--ag-radius-lg, 12px);
    cursor: zoom-in;
    overflow: hidden;
    position: relative;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ag-forum-photo-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    .ag-forum-photo-box {
        height: 250px;
    }
}

/* Slide Counter Badge */
.ag-gallery-counter-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(26, 48, 38, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Thumbnails */
.ag-thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.ag-thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.ag-thumbnail-strip::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}

.ag-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0.72;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.ag-thumb:hover {
    opacity: 1;
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.ag-thumb.ag-thumb-active {
    opacity: 1;
    border-color: var(--ag-gold, #D4AF37) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35), 0 4px 12px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px) scale(1.02);
}

/* PhotoSwipe Theme Enhancements */
.pswp {
    --pswp-bg: rgba(14, 20, 17, 0.96);
    --pswp-root-z-index: 999999;
}

.pswp__img {
    object-fit: contain !important;
}

.pswp__button--zoom,
.pswp__button--close,
.pswp__button--arrow {
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.pswp__button:hover {
    background-color: rgba(212, 175, 55, 0.25) !important;
}

.pswp__counter {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: inherit;
}

/* ==========================================================================
   12. Ultra-Luxury Agarwood Mobile Floating Island Dock
   ========================================================================== */
.footer-bottom-bar,
div.footer-bottom-bar,
body .footer-bottom-bar,
html body .footer-bottom-bar,
body.sm-is-preview .footer-bottom-bar,
.footer-bottom-bar.sm-mobile--dock,
.footer-bottom-bar.sm-mobile--island,
.footer-bottom-bar.sm-mobile--pill,
.footer-bottom-bar.sm-mobile--wave {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    z-index: -99999 !important;
    transform: translateY(200%) scale(0) !important;
}

.ag-mobile-dock {
    display: none;
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    max-width: 440px;
    margin: 0 auto;
    height: 64px;
    background: rgba(22, 14, 9, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(200, 155, 43, 0.38);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48), 0 2px 10px rgba(200, 155, 43, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 99999 !important;
    padding: 0 6px;
    align-items: center;
}

.ag-dock-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    position: relative;
}

.ag-dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none !important;
    padding: 6px 0;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.ag-dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    font-size: 1.18rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ag-dock-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    margin-top: 1px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.ag-dock-dot {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #F0C04A;
    box-shadow: 0 0 8px rgba(240, 192, 74, 0.9);
}

.ag-dock-item:hover,
.ag-dock-item:focus {
    color: #FFFFFF;
}

.ag-dock-item.active {
    color: #F0C04A;
}

.ag-dock-item.active .ag-dock-icon {
    color: #F0C04A;
    transform: translateY(-2px);
}

.ag-dock-item.active .ag-dock-label {
    color: #FFFFFF;
    font-weight: 700;
}

.ag-dock-item:active {
    transform: scale(0.92);
}

/* Center Elevated FAB */
.ag-dock-fab-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ag-dock-fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F3C958 0%, #C89B2B 50%, #9A7214 100%);
    color: #160E09 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    /* box-shadow: 0 8px 24px rgba(200, 155, 43, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3); */
    border: 3px solid #160E09;
    text-decoration: none !important;
    transform: translateY(-12px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.ag-dock-fab:hover {
    transform: translateY(-14px) scale(1.05);
    box-shadow: 0 12px 28px rgba(200, 155, 43, 0.7);
    color: #160E09 !important;
}

.ag-dock-fab:active {
    transform: translateY(-10px) scale(0.94);
}

.ag-dock-fab.active {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5ECDB 100%);
    color: #1C120C !important;
    border-color: #C89B2B;
}

/* ==========================================================================
   13. Responsive Breakpoints & Mobile Enhancements
   ========================================================================== */
@media (max-width: 991px) {
    .ag-mobile-dock {
        display: flex !important;
    }
    .ag-shell {
        margin-top: 10px;
        padding-bottom: calc(95px + env(safe-area-inset-bottom, 0px));
        padding-left: 12px;
        padding-right: 12px;
    }
    .ag-subnav {
        padding: 6px;
        border-radius: 14px;
        margin-bottom: 18px;
        background: #FFFFFF;
        border: 1px solid rgba(200, 155, 43, 0.22);
        box-shadow: 0 4px 16px rgba(28, 18, 12, 0.06);
        overflow: hidden;
    }
    .ag-subnav-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 2px !important;
    }
    .ag-subnav-links::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .ag-subnav-link {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 7px 14px !important;
        height: 36px !important;
        border-radius: 999px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        background: #F8F5F0;
        color: #4A4036 !important;
        border: 1px solid #EBE4D8;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    .ag-subnav-link i {
        font-size: 0.85rem !important;
        color: #8C7E72;
        margin: 0 !important;
    }
    .ag-subnav-link.active {
        background: #1C120C !important;
        color: #FFFFFF !important;
        border-color: #C89B2B !important;
        box-shadow: 0 3px 10px rgba(28, 18, 12, 0.25) !important;
    }
    .ag-subnav-link.active i {
        color: #C89B2B !important;
    }
    .ag-subnav-link.ag-subnav-post-pill {
        background: linear-gradient(135deg, #FDF8EC 0%, #F5ECDB 100%);
        border-color: #C89B2B;
        color: #9A7214 !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 768px) {
    .ag-hero-banner {
        padding: 24px 16px 20px;
        border-radius: 16px;
        margin-bottom: 18px;
    }
    .ag-hero-sub {
        font-size: 0.72rem;
        letter-spacing: 2px;
        margin-bottom: 6px;
        display: inline-block;
    }
    .ag-hero-title {
        font-size: 1.65rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .ag-hero-tagline {
        font-size: 0.88rem;
        line-height: 1.45;
        margin-bottom: 16px;
    }
    .ag-search-box {
        flex-direction: column;
        border-radius: 14px;
        padding: 6px;
        gap: 0;
    }
    .ag-search-input {
        padding: 9px 12px;
        font-size: 0.88rem;
    }
    .ag-search-divider {
        display: none;
    }
    .ag-btn-search {
        border-radius: 10px;
        margin-top: 4px;
        width: 100%;
        padding: 10px;
        font-size: 0.92rem;
        font-weight: 700;
    }
    .ag-quick-chips {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        margin-top: 12px;
    }
    .ag-quick-chips::-webkit-scrollbar {
        display: none;
    }
    .ag-chip {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.75rem;
        padding: 5px 11px;
    }
    .ag-live-preview-card {
        position: static;
        margin-top: 20px;
    }
    .ag-filter-pills {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .ag-filter-pills::-webkit-scrollbar {
        display: none;
    }
    .ag-filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* Modal and Alert Utilities */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1060 !important;
    pointer-events: auto !important;
    position: relative;
}

.modal-content {
    pointer-events: auto !important;
    position: relative;
    z-index: 1065 !important;
}

.modal.show {
    display: block !important;
}

.ag-custom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050 !important;
}

.ag-alert-close {
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}
.badge-success {
    background: green;
}
.badge-danger {
    background: red;
}
.badge-light{
    background: #c5a017;
}
.badge-secondary{
    background: gray;
}
.badge-primary{
    background: #c5a017;
}
.badge-warning{
    background: #b06d26;
}
.ag-alert-close:hover {
    opacity: 1;
}

/* Custom Switch Toggles */
.switch {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D8D0C5;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: var(--ag-gold);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--ag-gold);
}

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

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pill Tabs for Role Selection */
.ag-pill-tab,
.ag-role-pill-tab,
.ag-role-pill-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: 1px solid #D1D5DB;
    background-color: #FFFFFF;
    color: #374151;
}

.ag-pill-tab:hover,
.ag-role-pill-tab:hover,
.ag-role-pill-btn:hover {
    border-color: #9CA3AF;
    background-color: #F9FAFB;
    color: #111827;
}

.ag-pill-tab.active,
.ag-role-pill-tab.active,
.ag-role-pill-btn.active {
    background-color: var(--ag-primary) !important;
    border-color: var(--ag-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(28, 18, 12, 0.2);
}

/* Stat Counters Box Token */
.ag-stat-box {
    padding: 12px 8px;
    background: #FAF7F2;
    border: 1px solid var(--ag-border-light);
    border-radius: 12px;
    transition: var(--ag-transition);
}

.ag-stat-box:hover {
    background: #F5EFEB;
    border-color: var(--ag-border);
    transform: translateY(-2px);
}

.ag-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ag-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

.ag-stat-lbl {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ag-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ag-stat-box.ag-stat-box-sub {
    background: #FFFFFF;
    border: 1px solid #EBDDC8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ag-stat-box.ag-stat-box-sub:hover {
    background: #FAF7F2;
    border-color: var(--ag-border);
}

.ag-stat-box.ag-stat-box-sub .ag-stat-val {
    font-size: 1.25rem;
    color: #6D4C13;
}

/* Settings 11-Item Menu & Form Styles (Pages 14 & 15) */
.ag-settings-menu .list-group-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ag-text-main);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    transition: var(--ag-transition);
}

.ag-settings-menu .list-group-item:hover {
    background-color: rgba(200, 155, 43, 0.06);
    color: var(--ag-primary);
}

.ag-settings-menu .list-group-item.active {
    background: linear-gradient(90deg, #1C120C 0%, #2E1F16 100%) !important;
    color: var(--ag-gold) !important;
    border-color: transparent !important;
    font-weight: 600;
}

.ag-settings-menu .list-group-item.active i {
    color: var(--ag-gold) !important;
}

.ag-upload-logo-box, .ag-upload-cover-box {
    transition: var(--ag-transition);
}

.ag-upload-logo-box:hover, .ag-upload-cover-box:hover {
    border-color: var(--ag-gold) !important;
    box-shadow: 0 4px 14px rgba(200, 155, 43, 0.15);
}

#ag-store-tabs .nav-link, #ag-farm-tabs .nav-link {
    color: var(--ag-text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: var(--ag-transition);
}

#ag-store-tabs .nav-link:hover, #ag-farm-tabs .nav-link:hover {
    color: var(--ag-primary);
    border-bottom-color: rgba(200, 155, 43, 0.4);
}

#ag-store-tabs .nav-link.active, #ag-farm-tabs .nav-link.active {
    color: var(--ag-primary) !important;
    background: transparent !important;
    border-bottom: 3px solid var(--ag-gold) !important;
}

/* ==========================================================================
   Stores Directory & Featured Store Cards
   ========================================================================== */
.ag-store-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E8E1D5;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ag-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(28, 18, 12, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.ag-store-cover {
    position: relative;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #2E1F16;
}

.ag-store-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(28, 18, 12, 0.65) 100%);
}

.ag-store-verified-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(13, 110, 253, 0.9);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ag-store-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.ag-store-avatar-wrap {
    margin-top: -38px;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
}

.ag-store-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    background: #FFFFFF;
}

.ag-store-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ag-text-main);
    margin-bottom: 4px;
}

.ag-store-name a:hover {
    color: var(--ag-gold) !important;
}

.ag-store-rating {
    font-size: 0.88rem;
}

/* Get verified — full-width badge page */
.ag-badge-page {
    max-width: 980px;
    margin: 0 auto 48px;
}

.ag-badge-crumbs a {
    color: #8a7564;
}

.ag-badge-crumbs .active {
    color: #3d2c22;
}

.ag-badge-stepper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ag-badge-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8d7b6c;
    font-weight: 600;
    white-space: nowrap;
}

.ag-badge-step--done,
.ag-badge-step--active {
    color: #2b211b;
}

.ag-badge-step__num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d9cfc4;
    background: #fff;
    color: #6b5648;
    font-size: 0.9rem;
    font-weight: 700;
}

.ag-badge-step--done .ag-badge-step__num {
    background: #c4a15a;
    border-color: #c4a15a;
    color: #fff;
}

.ag-badge-step--active .ag-badge-step__num {
    background: #fff;
    border-color: #c4a15a;
    color: #8a6a2f;
}

.ag-badge-step__line {
    flex: 1;
    height: 2px;
    background: #e4d9cc;
    min-width: 48px;
}

.ag-badge-summary,
.ag-badge-preview,
.ag-badge-panel,
.ag-badge-next-step,
.ag-badge-paybar {
    background: #fff;
    border: 1px solid #efe6db;
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(46, 31, 22, 0.03);
}

.ag-badge-summary,
.ag-badge-preview,
.ag-badge-panel {
    padding: 22px 24px;
}

.ag-badge-summary__label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a8878;
    font-weight: 700;
    margin-bottom: 4px;
}

.ag-badge-summary__value {
    font-weight: 700;
    color: #2b211b;
}

.ag-badge-summary__link {
    font-size: 0.82rem;
    color: #8a6a2f;
}

.ag-badge-section-title {
    font-weight: 700;
    color: #2b211b;
    margin: 0 0 14px;
}

.ag-badge-pick-card {
    border: 1.5px solid #efe6db;
    border-radius: 16px;
    padding: 20px 18px 16px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.ag-badge-pick-card--selectable {
    cursor: pointer;
}

.ag-badge-pick-card--selectable:hover {
    border-color: #e2c98a;
}

.ag-badge-pick-card--selected {
    border-color: #d4af37;
    box-shadow: 0 0 0 1px #d4af37;
}

.ag-badge-pick-card__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.ag-badge-pick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: #e8f5ec;
    color: #2f7d46;
}

.ag-badge-pick-card--nursery .ag-badge-pick-icon { background: #e7f6f3; color: #1c7a68; }
.ag-badge-pick-card--distillery .ag-badge-pick-icon { background: #f8efe4; color: #b56a2b; }
.ag-badge-pick-card--store .ag-badge-pick-icon { background: #eef3f8; color: #3d5f86; }

.ag-badge-pick-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: #2b211b;
    line-height: 1.2;
}

.ag-badge-pick-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #a6843d;
    background: #fbf6ea;
    border-radius: 20px;
    padding: 3px 8px;
}

.ag-badge-pick-price {
    font-weight: 800;
    font-size: 1.35rem;
    color: #2b211b;
    margin-bottom: 12px;
}

.ag-badge-pick-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #8d7b6c;
}

.ag-badge-pick-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex-grow: 1;
}

.ag-badge-pick-benefits li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.86rem;
    color: #5c4e43;
    margin-bottom: 8px;
}

.ag-badge-pick-benefits i {
    color: #c4a15a;
    margin-top: 3px;
    font-size: 0.75rem;
}

.ag-badge-pick-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid #e6dccf;
    color: #3d2c22;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: auto;
}

.ag-badge-pick-card--selected .ag-badge-pick-btn {
    background: #c4a15a;
    border-color: #c4a15a;
    color: #fff;
}

.ag-badge-pick-btn--owned {
    background: #e8f5ec;
    border-color: #cfe6d6;
    color: #1f6b38;
}

.ag-badge-pick-btn--pending {
    background: #fff8e8;
    border-color: #f0e0b8;
    color: #8a6a2f;
}

.ag-badge-footnote {
    color: #8d7b6c;
    font-size: 0.84rem;
}

.ag-badge-upload-zone {
    background: #fff;
    border: 1.5px dashed #ddd2c4;
    border-radius: 14px;
    text-align: center;
    padding: 28px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ag-badge-upload-zone:hover {
    border-color: #c4a15a;
    background: #fffcf7;
}

.ag-badge-upload-zone--selected {
    border-color: #1f7a3a;
    border-style: solid;
    background: #f3fbf5;
    box-shadow: 0 0 0 1px rgba(31, 122, 58, 0.15);
}

.ag-badge-doc-selected-label {
    font-weight: 700;
    color: #1f7a3a;
    font-size: 0.95rem;
}

.ag-badge-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #cfe6d6;
    border-radius: 10px;
    padding: 10px 14px;
}

.ag-badge-doc-chip__icon {
    font-size: 1.35rem;
    color: #6b4e3d;
    flex-shrink: 0;
}

.ag-badge-doc-chip__text {
    min-width: 0;
}

.ag-badge-doc-chip__name {
    display: block;
    font-weight: 700;
    color: #2b211b;
    word-break: break-all;
    line-height: 1.3;
}

.ag-badge-doc-chip__meta {
    display: block;
    font-size: 0.78rem;
    color: #8d7b6c;
    margin-top: 2px;
}

.ag-badge-preview-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #6b4e3d;
    color: #f5e6c8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.ag-badge-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ag-badge-preview-name {
    font-weight: 700;
    color: #2b211b;
}

.ag-badge-preview-meta {
    color: #8d7b6c;
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.ag-badge-preview-pill {
    display: inline-flex;
    align-items: center;
    background: #e7f6ec;
    color: #1f7a3a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.ag-badge-next-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ag-badge-next-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    height: 100%;
    min-width: 0;
}

.ag-badge-next-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fbf6ea;
    color: #a6843d;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ag-badge-next-step strong {
    display: block;
    color: #2b211b;
    margin-bottom: 2px;
}

.ag-badge-next-step p {
    margin: 0;
    color: #8d7b6c;
    font-size: 0.84rem;
}

.ag-badge-paybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    flex-wrap: wrap;
}

.ag-badge-paybar__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9a8878;
    font-weight: 700;
}

.ag-badge-paybar__total {
    font-size: 1.45rem;
    font-weight: 800;
    color: #2b211b;
    line-height: 1.1;
}

.ag-badge-paybar__balance {
    font-size: 0.82rem;
    color: #8d7b6c;
}

.ag-badge-pay-btn {
    background: #c4a15a;
    border: 0;
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    padding: 12px 22px;
    min-width: 240px;
}

.ag-badge-pay-btn:disabled {
    opacity: 0.55;
}

.ag-badge-recharge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

.ag-badge-recharge-btn:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .ag-badge-stepper {
        gap: 8px;
    }
    .ag-badge-step__label {
        font-size: 0.78rem;
    }
    .ag-badge-next-steps {
        grid-template-columns: 1fr;
    }
    .ag-badge-pay-btn {
        width: 100%;
    }
}

/* Forum Nested Discussion Replies */
.ag-nested-replies {
    border-left: 2px solid #E2D7C7;
    padding-left: 16px;
    margin-top: 14px;
}
.ag-child-reply {
    background: #FDFBF8;
    border: 1px solid #EDE5D8;
    border-radius: 10px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ag-child-reply:hover {
    background: #F8F4EC;
    border-color: #DFD5C5;
}

/* Forum rich text (TinyMCE) */
textarea.ag-rich-editor:not(.ag-rich-editor--defer) {
    min-height: 300px;
}

textarea.ag-rich-editor.ag-rich-editor--defer {
    min-height: 200px;
}

.tox-tinymce {
    border-radius: 10px !important;
    border-color: #e6dccf !important;
}

.ag-forum-content ul,
.ag-forum-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.ag-forum-content p {
    margin-bottom: 0.65rem;
}

.ag-forum-content p:last-child {
    margin-bottom: 0;
}

.ag-forum-content blockquote {
    border-left: 3px solid #c4a15a;
    padding-left: 12px;
    margin: 0.5rem 0;
    color: #5c534a;
}
