/* ============================================
   ShareHub - Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ---- Full-width page containers ---- */
.max-w-7xl {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .max-w-7xl {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Prevent horizontal overflow globally on mobile */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    /* Ensure the main page containers never exceed viewport */
    .max-w-7xl,
    .max-w-5xl,
    .max-w-4xl,
    .max-w-3xl {
        max-width: 100% !important;
        overflow-x: hidden;
    }
}

/* ========== HEADER ========== */
.sh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, background 0.3s;
}
.dark .sh-header {
    background: rgba(17, 24, 39, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.sh-header.scrolled {
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}
.dark .sh-header.scrolled {
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.sh-header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo */
.sh-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}
.sh-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sh-logo:hover .sh-logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.sh-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Center Nav */
.sh-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}
@media (min-width: 768px) {
    .sh-nav { display: flex; }
}
.sh-nav-item {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.sh-nav-item:hover {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.06);
}
.sh-nav-item.active {
    color: #7c3aed;
    font-weight: 600;
}
.sh-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.25rem;
    height: 2px;
    border-radius: 1px;
    background: #7c3aed;
}
.dark .sh-nav-item { color: #9ca3af; }
.dark .sh-nav-item:hover { color: #a78bfa; background: rgba(124, 58, 237, 0.1); }
.dark .sh-nav-item.active { color: #a78bfa; }
.dark .sh-nav-item.active::after { background: #a78bfa; }

/* Right Actions */
.sh-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sh-btn-create {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 0.5rem;
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(124, 58, 237, 0.3);
    transition: box-shadow 0.2s, transform 0.2s;
}
.sh-btn-create:hover {
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}
@media (min-width: 768px) {
    .sh-btn-create { display: inline-flex; }
}

.sh-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.15s, background 0.15s;
}
.sh-icon-btn:hover {
    background: rgba(124, 58, 237, 0.06);
    color: #7c3aed;
}
.dark .sh-icon-btn { color: #9ca3af; }
.dark .sh-icon-btn:hover { background: rgba(124, 58, 237, 0.1); color: #a78bfa; }

/* Language Dropdown */
#lang-dropdown-menu::-webkit-scrollbar { width: 4px; }
#lang-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
#lang-dropdown-menu::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.2); border-radius: 10px; }
#lang-dropdown-menu::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.4); }
#lang-dropdown-menu .sh-dd-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; }
#lang-dropdown-menu .sh-dd-link:hover { background: rgba(124, 58, 237, 0.06); }
.dark #lang-dropdown-menu .sh-dd-link:hover { background: rgba(124, 58, 237, 0.1); }

/* Profile Trigger */
.sh-profile-trigger {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem;
    padding-right: 0.5rem;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.sh-profile-trigger:hover,
.sh-profile-trigger[aria-expanded="true"] {
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.04);
}
@media (min-width: 768px) {
    .sh-profile-trigger { display: flex; }
}
.sh-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
    object-fit: cover;
}
img.sh-avatar {
    background: none;
}
.sh-avatar-lg {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    border-radius: 0.625rem;
}
.sh-chevron {
    width: 0.875rem;
    height: 0.875rem;
    color: #9ca3af;
    transition: transform 0.2s;
}
.sh-profile-trigger[aria-expanded="true"] .sh-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.sh-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: shDropdownIn 0.18s ease-out;
    z-index: 200;
}
.dark .sh-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
@keyframes shDropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sh-dd-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
}
.sh-dd-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .sh-dd-name { color: #fff; }
.sh-dd-email {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Plan Card inside dropdown */
.sh-dd-plan {
    margin: 0.25rem 0.75rem 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
}
.dark .sh-dd-plan {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.15);
}
.sh-dd-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dark .sh-dd-plan-badge { color: #a78bfa; }
.sh-dd-plan-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #7c3aed;
}
.dark .sh-dd-plan-count { color: #a78bfa; }
.sh-dd-progress {
    width: 100%;
    height: 4px;
    background: #e0d5fc;
    border-radius: 2px;
    overflow: hidden;
}
.dark .sh-dd-progress { background: rgba(124, 58, 237, 0.2); }
.sh-dd-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    transition: width 0.4s ease;
}

/* Stats inside dropdown */
.sh-dd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
}
.sh-dd-stat {
    text-align: center;
    padding: 0.375rem 0;
    border-radius: 0.5rem;
    background: #f9fafb;
}
.dark .sh-dd-stat { background: rgba(255, 255, 255, 0.04); }
.sh-dd-stat-num {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.dark .sh-dd-stat-num { color: #fff; }
.sh-dd-stat-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sh-dd-sep {
    height: 1px;
    background: #f3f4f6;
    margin: 0.25rem 0;
}
.dark .sh-dd-sep { background: #374151; }

/* Section title inside dropdowns */
.sh-dd-section-title {
    padding: 0.5rem 0.875rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}
.dark .sh-dd-section-title { color: #6b7280; }

/* Rich link (icon + title + description) for Create dropdown */
.sh-dd-rich-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin: 0 0.375rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.sh-dd-rich-link:hover {
    background: rgba(124, 58, 237, 0.06);
}
.dark .sh-dd-rich-link:hover {
    background: rgba(124, 58, 237, 0.1);
}
.sh-dd-rich-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sh-dd-rich-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.dark .sh-dd-rich-title { color: #f3f4f6; }
.sh-dd-rich-desc {
    display: block;
    font-size: 0.6875rem;
    color: #9ca3af;
    line-height: 1.3;
}

/* Create dropdown specific sizing */
.sh-dropdown-create {
    width: 280px;
    right: 0;
    padding-bottom: 0.375rem;
}

/* Language dropdown specific sizing & positioning */
.sh-dropdown-lang {
    width: 220px;
    max-height: 360px;
    overflow-y: auto;
    right: 0;
}
@media (max-width: 767px) {
    .sh-dropdown-lang {
        position: fixed;
        top: 4rem;
        right: 1rem;
        left: auto;
        width: 220px;
    }
}

/* Chevron small (for Create button) */
.sh-chevron-sm {
    width: 0.75rem;
    height: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s;
    display: none;
}
@media (min-width: 1024px) {
    .sh-chevron-sm { display: block; }
}
#create-dropdown-btn[aria-expanded="true"] .sh-chevron-sm {
    transform: rotate(180deg);
}

/* Mobile section title */
.sh-mob-section-title {
    padding: 0.75rem 0.75rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}
.dark .sh-mob-section-title { color: #6b7280; }

/* Dropdown menu links */
.sh-dd-menu {
    padding: 0.25rem 0.375rem;
}
.sh-dd-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.sh-dd-link:hover {
    background: rgba(124, 58, 237, 0.06);
    color: #7c3aed;
}
.sh-dd-link svg { flex-shrink: 0; opacity: 0.55; }
.sh-dd-link:hover svg { opacity: 1; }
.dark .sh-dd-link { color: #d1d5db; }
.dark .sh-dd-link:hover { background: rgba(124, 58, 237, 0.1); color: #a78bfa; }
.sh-dd-link-danger { color: #ef4444 !important; }
.sh-dd-link-danger:hover { background: rgba(239, 68, 68, 0.06) !important; color: #dc2626 !important; }
.sh-dd-link-danger svg { opacity: 0.8; }

/* Sign In / Get Started buttons */
.sh-btn-signin {
    display: none;
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.sh-btn-signin:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}
.dark .sh-btn-signin { color: #d1d5db; border-color: #4b5563; }
.dark .sh-btn-signin:hover { color: #a78bfa; border-color: #a78bfa; }
@media (min-width: 768px) {
    .sh-btn-signin { display: inline-flex; align-items: center; }
}

.sh-btn-getstarted {
    display: none;
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 0.5rem;
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(124, 58, 237, 0.3);
    transition: box-shadow 0.2s, transform 0.2s;
}
.sh-btn-getstarted:hover {
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}
@media (min-width: 768px) {
    .sh-btn-getstarted { display: inline-flex; align-items: center; }
}

/* Hamburger */
.sh-hamburger {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s;
}
.sh-hamburger:hover {
    background: rgba(124, 58, 237, 0.06);
}
.sh-hamburger span {
    display: block;
    width: 5px;
    height: 5px;
    background: #6b7280;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.dark .sh-hamburger span { background: #9ca3af; }
.sh-hamburger.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    width: 18px;
    height: 2px;
    border-radius: 1px;
}
.sh-hamburger.open span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
    width: 18px;
    height: 2px;
    border-radius: 1px;
}
@media (min-width: 768px) {
    .sh-hamburger { display: none; }
}

/* ========== MOBILE MENU ========== */
.sh-mobile-menu {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    animation: shMobIn 0.22s ease-out;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}
.dark .sh-mobile-menu {
    background: #111827;
    border-top-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
@keyframes shMobIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
    .sh-mobile-menu { display: none !important; }
}

.sh-mob-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.dark .sh-mob-user { border-bottom-color: #1f2937; }
.sh-mob-plan-badge {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}
.dark .sh-mob-plan-badge { color: #a78bfa; background: rgba(124, 58, 237, 0.1); }

/* ---- Mobile Sidebar Header ---- */
.sh-mob-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 40%, #4f46e5 100%);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
.sh-mob-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.sh-mob-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.sh-mob-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}
.sh-mob-header-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}
.sh-mob-avatar-lg {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.25);
    object-fit: cover;
}
img.sh-mob-avatar-lg {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.sh-mob-header-plan {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
}
.sh-mob-header-plan.free {
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}
.sh-mob-header-plan.premium {
    color: #fef3c7;
    background: rgba(251,191,36,0.2);
    border: 1px solid rgba(251,191,36,0.35);
}

/* Stats Row */
.sh-mob-header-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 0.6rem 0.25rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.sh-mob-header-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.sh-mob-header-stat-num {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.sh-mob-header-stat-label {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
}
.sh-mob-header-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* Usage Progress */
.sh-mob-header-progress {
    position: relative;
    z-index: 1;
}
.sh-mob-header-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.35rem;
}
.sh-mob-header-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 9999px;
    overflow: hidden;
}
.sh-mob-header-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Header Plan Badge (Desktop) */
.sh-header-plan-badge {
    display: none;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .sh-header-plan-badge { display: inline-flex; }
}
.sh-header-plan-free {
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.sh-header-plan-free:hover {
    color: #7c3aed;
    background: #f5f3ff;
    border-color: #ddd6fe;
}
.sh-header-plan-premium {
    color: #d97706;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.2);
}
.sh-header-plan-premium:hover {
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
    transform: translateY(-1px);
}
.dark .sh-header-plan-free {
    color: #9ca3af;
    background: rgba(55, 65, 81, 0.5);
    border-color: #374151;
}
.dark .sh-header-plan-free:hover {
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}
.dark .sh-header-plan-premium {
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.2));
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.15);
}
.dark .sh-header-plan-premium:hover {
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.3);
}

.sh-mob-nav {
    padding: 0.5rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.sh-mob-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.sh-mob-link svg { flex-shrink: 0; opacity: 0.55; }
.sh-mob-link:hover { background: rgba(124, 58, 237, 0.06); color: #7c3aed; }
.sh-mob-link:hover svg { opacity: 1; }
.sh-mob-link.active { color: #7c3aed; font-weight: 600; background: rgba(124, 58, 237, 0.06); }
.sh-mob-link.active svg { opacity: 1; }
.dark .sh-mob-link { color: #d1d5db; }
.dark .sh-mob-link:hover { color: #a78bfa; background: rgba(124, 58, 237, 0.1); }
.dark .sh-mob-link.active { color: #a78bfa; background: rgba(124, 58, 237, 0.1); }
.sh-mob-link-danger { color: #ef4444 !important; }
.sh-mob-link-danger:hover { background: rgba(239, 68, 68, 0.06) !important; }

/* Mobile Stats - legacy (now in sidebar header) */
.sh-mob-stats {
    display: none;
}
.sh-mob-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    background: #f9fafb;
}
.dark .sh-mob-stat { background: rgba(255, 255, 255, 0.04); }
.sh-mob-stat-num {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}
.dark .sh-mob-stat-num { color: #fff; }
.sh-mob-stat-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sh-mob-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
}
.sh-mob-auth .sh-btn-signin,
.sh-mob-auth .sh-btn-getstarted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #6d28d9, #4338ca);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}
.dark .btn-secondary {
    color: #d1d5db;
    border-color: #4b5563;
}
.dark .btn-secondary:hover {
    border-color: #a78bfa;
    color: #a78bfa;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

/* ---- Glass Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}
.glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.dark .glass-card {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(75, 85, 99, 0.3);
}

/* ---- Form Inputs ---- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: #111827;
    transition: all 0.3s;
    outline: none;
}
.form-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-input::placeholder {
    color: #9ca3af;
}
.dark .form-input {
    background: #1f2937;
    border-color: #4b5563;
    color: #f3f4f6;
}
.dark .form-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.dark .form-label {
    color: #d1d5db;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: #111827;
    transition: all 0.3s;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}
.form-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.dark .form-select {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #f3f4f6;
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #2563eb, #7c3aed);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ========== NEW HOME PAGE STYLES ========== */

/* --- Hero Section --- */
.sh-hero {
    position: relative;
    overflow: hidden;
    padding-top: 3.5rem; /* header height */
    display: flex;
    align-items: center;
}

/* Hero Split Layout */
.sh-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .sh-hero-split {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Left Side */
.sh-hero-left {
    text-align: center;
}
@media (min-width: 1024px) {
    .sh-hero-left { text-align: left; }
}

/* Right Side */
.sh-hero-right {
    display: none;
}
@media (min-width: 768px) {
    .sh-hero-right {
        display: block;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .sh-hero-right {
        max-width: 480px;
        margin: 0 auto;
    }
}

.sh-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sh-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}
.sh-hero-orb--1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
    top: -15%; left: -10%;
}
.sh-hero-orb--2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
    bottom: -10%; right: -10%;
    animation-delay: -7s;
}
.sh-hero-orb--3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -13s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.02); }
}
.sh-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* Hero Badge */
.sh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}
.dark .sh-hero-badge {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
}
.sh-hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Title */
.sh-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #111827;
}
.dark .sh-hero-title { color: #fff; }
.sh-hero-title-gradient {
    display: block;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* Hero Subtitle */
.sh-hero-subtitle {
    font-size: clamp(0.8rem, 1.2vw, 0.88rem);
    line-height: 1.6;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto 1rem;
}
@media (min-width: 1024px) {
    .sh-hero-subtitle { margin-left: 0; }
}
.dark .sh-hero-subtitle { color: #9ca3af; }

/* Hero Form */
.sh-hero-form-wrap {
    max-width: 560px;
    margin: 0 auto 1rem;
}
@media (min-width: 1024px) {
    .sh-hero-form-wrap { margin-left: 0; }
}
.sh-hero-form {
    display: flex;
    gap: 0;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.35rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.sh-hero-form:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1), 0 8px 30px rgba(124, 58, 237, 0.08);
}
.dark .sh-hero-form {
    background: #1f2937;
    border-color: #374151;
}
.dark .sh-hero-form:focus-within {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1), 0 8px 30px rgba(167, 139, 250, 0.06);
}
.sh-hero-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
.sh-hero-input-icon {
    width: 1.25rem; height: 1.25rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
    color: #9ca3af;
}
.sh-hero-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.6rem 0.65rem;
    font-size: 0.85rem;
    background: transparent;
    color: #111827;
    min-width: 0;
}
.sh-hero-input::placeholder { color: #9ca3af; }
.dark .sh-hero-input { color: #f3f4f6; }
.sh-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border-radius: 0.7rem;
    font-weight: 700;
    font-size: 0.82rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}
.sh-hero-btn:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .sh-hero-btn { padding: 0.7rem 1rem; }
}

/* Hero Result */
.sh-hero-result {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    animation: fadeIn 0.3s ease-out;
}
.dark .sh-hero-result {
    background: #1f2937;
    border-color: #374151;
}
.sh-hero-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.sh-hero-copy-btn:hover { box-shadow: 0 4px 12px rgba(124,58,237,0.35); }

/* Trust Row */
.sh-hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
}
@media (min-width: 1024px) {
    .sh-hero-trust { justify-content: flex-start; }
}
.sh-hero-trust-avatars {
    display: flex;
}
.sh-trust-avatar {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    border: 2px solid #fff;
    margin-left: -0.5rem;
}
.dark .sh-trust-avatar { border-color: #111827; }
.sh-trust-avatar:first-child { margin-left: 0; }
.sh-trust-avatar--more {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    font-size: 0.55rem;
}
.dark .sh-trust-avatar--more { background: #374151 !important; color: #d1d5db !important; }
.sh-hero-trust-text {
    text-align: left;
}

/* ===== Dashboard Mockup Visual (Right Side) ===== */
.sh-hero-visual {
    position: relative;
    padding: 1rem;
}

.sh-mock-dashboard {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.03);
    animation: mockFloat 6s ease-in-out infinite;
}
.dark .sh-mock-dashboard {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.04);
}
@keyframes mockFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Top bar */
.sh-mock-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: rgba(249,250,251,0.7);
}
.dark .sh-mock-topbar {
    border-bottom-color: rgba(255,255,255,0.06);
    background: rgba(31,41,55,0.5);
}
.sh-mock-url-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0,0,0,0.04);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
}
.dark .sh-mock-url-bar { background: rgba(255,255,255,0.06); }

/* Stats Row */
.sh-mock-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
}
.sh-mock-stat {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 0.625rem;
    background: rgba(0,0,0,0.02);
}
.dark .sh-mock-stat { background: rgba(255,255,255,0.03); }

/* Link Cards */
.sh-mock-links {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0 0.875rem;
}
.sh-mock-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.625rem;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.dark .sh-mock-link-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.04);
}
.sh-mock-link-card--1 { animation: mockCardIn 0.5s 0.3s ease-out both; }
.sh-mock-link-card--2 { animation: mockCardIn 0.5s 0.5s ease-out both; }
.sh-mock-link-card--3 { animation: mockCardIn 0.5s 0.7s ease-out both; }
@keyframes mockCardIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Mini Chart */
.sh-mock-chart {
    margin: 0.75rem 0.875rem 0.875rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
}
.dark .sh-mock-chart {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.04);
}
.sh-mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 3rem;
}
.sh-mock-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(124,58,237,0.15), rgba(124,58,237,0.3));
    border-radius: 0.25rem 0.25rem 0 0;
    transition: all 0.3s;
}
.sh-mock-bar--active {
    background: linear-gradient(to top, #7c3aed, #4f46e5);
    box-shadow: 0 0 8px rgba(124,58,237,0.3);
}

/* Floating badges */
.sh-mock-float {
    position: absolute;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.75rem;
    padding: 0.5rem 0.625rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 2;
}
.dark .sh-mock-float {
    background: rgba(31,41,55,0.92);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.sh-mock-float--qr {
    bottom: 15%;
    left: -1rem;
    animation: floatBadge 5s ease-in-out infinite;
}
.sh-mock-float--analytics {
    top: 20%;
    right: -0.75rem;
    animation: floatBadge 5s 1.5s ease-in-out infinite;
}
.sh-mock-float--countries {
    bottom: 35%;
    right: -1rem;
    animation: floatBadge 5s 3s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* QR mini grid */
.sh-mock-qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto;
}
.sh-mock-qr-grid div {
    border-radius: 1px;
    background: rgba(0,0,0,0.06);
}
.dark .sh-mock-qr-grid div {
    background: rgba(255,255,255,0.08);
}

/* --- Brands / Social Proof --- */
.sh-brands {
    padding: 1rem 0 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.dark .sh-brands { border-color: rgba(255,255,255,0.04); }
.sh-brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}
.sh-brand-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.2s;
}
.sh-brand-item:hover { color: #6b7280; }
.dark .sh-brand-item { color: #4b5563; }
.dark .sh-brand-item:hover { color: #9ca3af; }

/* --- Section Tags & Titles --- */
.sh-section-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}
.dark .sh-section-tag {
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.2);
}
.sh-section-title {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 0.4rem;
}
.sh-section-desc {
    font-size: clamp(0.78rem, 1.2vw, 0.85rem);
    color: #6b7280;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.55;
}
.dark .sh-section-desc { color: #9ca3af; }

/* --- Feature Cards --- */
.sh-feature-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.875rem;
    padding: 1.15rem;
    transition: all 0.3s;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.sh-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(37,99,235,0.02));
    opacity: 0;
    transition: opacity 0.3s;
}
.sh-feature-card:hover::before { opacity: 1; }
.sh-feature-card:hover {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 8px 30px rgba(124,58,237,0.07);
    transform: translateY(-3px);
}
.dark .sh-feature-card {
    background: rgba(17, 24, 39, 0.6);
    border-color: rgba(75, 85, 99, 0.3);
}
.dark .sh-feature-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.sh-feature-icon-wrap {
    width: 2.25rem; height: 2.25rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}
.sh-feature-arrow {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s;
}
.sh-feature-card:hover .sh-feature-arrow {
    opacity: 1;
    transform: translateX(0);
}
.dark .sh-feature-arrow { background: #374151; color: #9ca3af; }

/* --- Steps (How It Works) --- */
.sh-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .sh-steps {
        flex-direction: row;
        max-width: none;
        gap: 2rem;
    }
}
.sh-step {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    padding: 1.25rem 0;
}
@media (min-width: 768px) {
    .sh-step {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }
}
.sh-step-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.sh-step-number span {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}
.sh-step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, #7c3aed, transparent);
    opacity: 0.2;
    margin-top: 0.5rem;
}
@media (min-width: 768px) {
    .sh-step-line { display: none; }
}
.sh-step-content { flex: 1; }
.sh-step-icon {
    width: 2.75rem; height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}
@media (min-width: 768px) {
    .sh-step-icon { margin: 0 auto 0.65rem; }
}

/* --- Pricing Cards v2 --- */
.sh-pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1.25rem 1.15rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.sh-pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.dark .sh-pricing-card {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(75, 85, 99, 0.3);
}
.sh-pricing-card--popular {
    border-color: #7c3aed;
    border-width: 2px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
}
.dark .sh-pricing-card--popular {
    border-color: #a78bfa;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}
.sh-pricing-popular-tag {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.sh-pricing-header { margin-bottom: 0.65rem; }
.sh-pricing-price { margin-bottom: 0.85rem; }
.sh-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    flex: 1;
}
.sh-pricing-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sh-pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.55rem 1rem;
    border-radius: 0.6rem;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.25s;
    text-decoration: none;
}
.sh-pricing-btn--primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.sh-pricing-btn--primary:hover {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}
.sh-pricing-btn--outline {
    background: transparent;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}
.sh-pricing-btn--outline:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.04);
}
.dark .sh-pricing-btn--outline { color: #d1d5db; border-color: #4b5563; }
.dark .sh-pricing-btn--outline:hover { border-color: #a78bfa; color: #a78bfa; }

/* --- Testimonials --- */
.sh-testimonial {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.875rem;
    padding: 1.15rem;
    transition: all 0.3s;
}
.sh-testimonial:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.dark .sh-testimonial {
    background: rgba(17, 24, 39, 0.6);
    border-color: rgba(75, 85, 99, 0.3);
}

/* --- CTA Section --- */
.sh-cta {
    position: relative;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
    border-radius: 1.25rem;
    padding: 2rem 1.25rem;
    overflow: hidden;
}
@media (min-width: 640px) {
    .sh-cta { padding: 2.5rem 1.5rem; }
}
.sh-cta-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.sh-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #7c3aed;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.35rem;
    border-radius: 0.65rem;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.sh-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.sh-cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1.35rem;
    border-radius: 0.65rem;
    border: 1.5px solid rgba(255,255,255,0.25);
    text-decoration: none;
    transition: all 0.25s;
}
.sh-cta-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

/* Older hero-bg kept for backward compat */
.hero-bg {
    position: relative;
    overflow: hidden;
}

/* ---- Animations ---- */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ---- Toast Notifications ---- */
.toast {
    min-width: 300px;
    max-width: 420px;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlideIn 0.4s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
}
.toast-success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}
.toast-error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}
.toast-info {
    background: rgba(59, 130, 246, 0.95);
    color: white;
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ---- Share Buttons ---- */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.share-whatsapp { background: #25D366; color: white; }
.share-telegram { background: #0088cc; color: white; }
.share-facebook { background: #1877F2; color: white; }
.share-twitter { background: #1DA1F2; color: white; }
.share-linkedin { background: #0A66C2; color: white; }
.share-email { background: #EA4335; color: white; }

/* ---- Stat Cards ---- */
.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.dark .stat-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(31, 41, 55, 0.6));
    border-color: rgba(75, 85, 99, 0.3);
}

/* ============================================
   Dashboard — Two Column Layout
   ============================================ */

/* Stat Cards (compact) */
.dash-stat-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.25s ease;
}
.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.dark .dash-stat-card {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(75, 85, 99, 0.3);
}
.dash-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Panels (cards) */
.dash-panel {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}
.dash-panel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}
.dark .dash-panel {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(75, 85, 99, 0.3);
}
.dash-panel-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.dark .dash-panel-header {
    border-color: rgba(75, 85, 99, 0.3);
}

/* Links list */
.dash-links-list {
    max-height: calc(100vh - 16rem);
    overflow-y: auto;
}
.dash-links-list::-webkit-scrollbar {
    width: 4px;
}
.dash-links-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}
.dark .dash-links-list::-webkit-scrollbar-thumb {
    background: #374151;
}

/* Individual link item */
.dash-link-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f9fafb;
    transition: background 0.15s ease;
}
.dash-link-item:last-child {
    border-bottom: none;
}
.dash-link-item:hover {
    background: #faf5ff;
}
.dark .dash-link-item {
    border-color: rgba(55, 65, 81, 0.3);
}
.dark .dash-link-item:hover {
    background: rgba(124, 58, 237, 0.05);
}

/* Badges */
.dash-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.dash-badge--active {
    background: #d1fae5;
    color: #059669;
}
.dash-badge--expired {
    background: #fee2e2;
    color: #dc2626;
}
.dash-badge--disabled {
    background: #f3f4f6;
    color: #6b7280;
}
.dash-badge--lock {
    font-size: 0.65rem;
    padding: 0;
}
.dark .dash-badge--active {
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
}
.dark .dash-badge--expired {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}
.dark .dash-badge--disabled {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* Action buttons */
.dash-action-btn {
    padding: 0.375rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.15s ease;
    cursor: pointer;
    background: none;
    border: none;
}
.dash-action-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}
.dash-action-btn--danger:hover {
    background: #fef2f2;
    color: #ef4444;
}
.dark .dash-action-btn:hover {
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
}
.dark .dash-action-btn--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Left column sticky on large screens — handled via inline Tailwind classes */

/* ---- Loading Spinner ---- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-dark {
    border-color: rgba(124, 58, 237, 0.2);
    border-top-color: #7c3aed;
}

/* ---- Loading Overlay ---- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}
.dark .loading-overlay {
    background: rgba(17, 24, 39, 0.8);
}

/* ---- QR Code Modal ---- */
.qr-modal-wrap {
    position: relative;
    text-align: center;
}
.qr-modal-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.qr-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: scale(1.1);
}
.dark .qr-modal-close {
    background: #374151;
    color: #9ca3af;
}
.dark .qr-modal-close:hover {
    background: #4b5563;
    color: #f9fafb;
}
.qr-modal-header {
    margin-bottom: 1.5rem;
}
.qr-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.qr-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
    color: #111827;
}
.dark .qr-modal-title {
    color: #f9fafb;
}
.qr-modal-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    max-width: 260px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* QR Code Card */
.qr-modal-card {
    margin: 0 auto 1.25rem;
    max-width: 280px;
}
.qr-modal-card-inner {
    position: relative;
    background: white;
    padding: 1rem;
    border-radius: 1.25rem;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.04),
        0 4px 16px rgba(0,0,0,0.06),
        0 12px 40px rgba(124, 58, 237, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.qr-modal-card-inner:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.08),
        0 16px 48px rgba(124, 58, 237, 0.12);
}
.qr-modal-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    image-rendering: pixelated;
}
.qr-modal-scan-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}

/* URL Preview Pill */
.qr-modal-url {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    padding: 0.5rem 0.625rem 0.5rem 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    font-size: 0.75rem;
    color: #6b7280;
}
.dark .qr-modal-url {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}
.qr-modal-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
    font-weight: 500;
    color: #6d28d9;
}
.dark .qr-modal-url-text {
    color: #a78bfa;
}
.qr-modal-copy-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: #ede9fe;
    color: #7c3aed;
    cursor: pointer;
    transition: all 0.2s;
}
.qr-modal-copy-btn:hover {
    background: #ddd6fe;
    transform: scale(1.1);
}
.dark .qr-modal-copy-btn {
    background: #374151;
    color: #a78bfa;
}
.dark .qr-modal-copy-btn:hover {
    background: #4b5563;
}

/* Action Buttons */
.qr-modal-actions {
    display: flex;
    gap: 0.625rem;
}
.qr-modal-btn-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    text-decoration: none;
}
.qr-modal-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    color: white;
}
.qr-modal-btn-copy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.qr-modal-btn-copy:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}
.dark .qr-modal-btn-copy {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
}
.dark .qr-modal-btn-copy:hover {
    background: #374151;
    border-color: #4b5563;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

/* ---- Table ---- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table th {
    background: #f9fafb;
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}
.data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f9fafb;
}
.dark .data-table th {
    background: #1f2937;
    color: #9ca3af;
    border-color: #374151;
}
.dark .data-table td {
    border-color: #1f2937;
}
.dark .data-table tbody tr:hover {
    background: rgba(55, 65, 81, 0.3);
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active {
    background: #d1fae5;
    color: #059669;
}
.badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}
.badge-admin {
    background: #ede9fe;
    color: #7c3aed;
}
.badge-user {
    background: #e0f2fe;
    color: #0284c7;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}
.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.03),
        0 24px 68px rgba(0,0,0,0.12),
        0 8px 28px rgba(0,0,0,0.08);
}
.dark .modal-content {
    background: #111827;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 24px 68px rgba(0,0,0,0.5);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .glass-card {
        border-radius: 1rem;
    }
}

/* ============================================
   Mobile Responsive — All Pages
   ============================================ */

/* --- Extra-small screens (< 375px) --- */
@media (max-width: 374px) {
    .dash-stat-card {
        padding: 0.625rem 0.5rem;
    }
    .dash-stat-card .text-lg,
    .dash-stat-card .sm\:text-xl {
        font-size: 0.95rem;
    }
    .dash-stat-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    .dash-stat-icon svg {
        width: 1rem;
        height: 1rem;
    }
    .dash-panel-header {
        padding: 0.75rem 0.875rem;
    }
    .dash-link-item {
        padding: 0.75rem 0.875rem;
    }
    .plan-card-icon {
        width: 2.75rem;
        height: 2.75rem;
    }
    .plan-card-icon svg {
        width: 1.375rem;
        height: 1.375rem;
    }
    .streak-card-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
    .streak-card-icon span {
        font-size: 1rem;
    }
    .blog-cat-btn {
        padding: 0.3rem 0.65rem;
        font-size: 0.65rem;
    }
}

/* --- Small mobile (< 480px) --- */
@media (max-width: 479px) {
    /* Stat cards: smaller gap, compact padding */
    .dash-stat-card {
        padding: 0.75rem 0.625rem;
    }
    
    /* Dashboard link items: stack action buttons */
    .dash-link-item .flex.items-start.justify-between .flex.items-center.gap-0\.5 {
        gap: 0;
    }
    .dash-action-btn {
        padding: 0.25rem;
    }
    
    /* Plan cards: smaller price text */
    .plan-card .text-5xl {
        font-size: 2.5rem;
    }
    
    /* Streak cards: compact padding */
    .streak-card .p-4 {
        padding: 0.75rem;
    }
    .streak-card .sm\:p-5 {
        padding: 0.75rem;
    }
    .streak-card-stat {
        padding: 0.25rem 0.5rem;
    }
    
    /* Blog cards: tighter padding */
    .blog-card .p-5 {
        padding: 1rem;
    }
    .blog-featured-card .p-5 {
        padding: 1rem;
    }
    .blog-featured-card .p-6 {
        padding: 1.25rem;
    }
    
    /* Blog featured card: smaller emoji on very small screens */
    .blog-featured-card .w-24 {
        width: 4.5rem;
        height: 4.5rem;
    }
    .blog-featured-card .text-5xl {
        font-size: 2rem;
    }

    /* Blog card icon: smaller on very small screens */
    .blog-card .w-12 {
        width: 2.5rem;
        height: 2.5rem;
    }
    .blog-card .w-12 .text-xl {
        font-size: 0.95rem;
    }
    
    /* Blog topics: wrap nicer */
    .blog-topic-tag {
        padding: 0.3rem 0.625rem;
        font-size: 0.7rem;
    }
    
    /* Wallet/Earn header coins badge */
    .flex.items-center.gap-2\.5.px-4.py-2\.5 {
        padding: 0.5rem 0.75rem;
    }
}

/* --- Mobile (< 640px) general enhancements --- */
@media (max-width: 639px) {
    /* Page container: reduce top/bottom padding */
    .max-w-7xl {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Stat card grid: tighter gaps */
    .grid.grid-cols-2.gap-3 {
        gap: 0.5rem;
    }
    
    /* Panel inner padding consistency */
    .dash-panel .p-4 {
        padding: 0.875rem;
    }
    
    /* Dashboard: link action buttons smaller */
    .dash-action-btn svg {
        width: 0.8rem;
        height: 0.8rem;
    }
    
    /* Link code badge: prevent overflow */
    .dash-link-item code {
        max-width: 120px;
    }
    
    /* Plan cards: full width, no transform on hover for better touch */
    .plan-card:hover {
        transform: none;
    }
    .plan-card:active {
        transform: scale(0.98);
    }
    
    /* Streak cards: no hover lift on touch */
    .streak-card:hover {
        transform: none;
    }
    
    /* Blog cards: no hover lift on touch */
    .blog-card:hover {
        transform: none;
    }
    .blog-featured-card:hover {
        transform: none;
    }
    
    /* Blog: ensure cards don't overflow on mobile */
    .blog-card,
    .blog-featured-card {
        max-width: 100%;
        word-break: break-word;
    }
    
    /* Featured blog: compact layout for mobile */
    .blog-featured-card .text-6xl {
        font-size: 3rem;
    }
    .blog-featured-card .text-5xl {
        font-size: 2.5rem;
    }
    .blog-featured-card .sm\:text-7xl {
        font-size: 3rem;
    }
    
    /* Blog grid: prevent any child from overflowing */
    #blog-grid {
        overflow: hidden;
    }
    #blog-grid .blog-card {
        min-width: 0;
    }
    
    /* Modals: full width, less padding */
    .modal-content {
        padding: 1.25rem;
        border-radius: 1rem;
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    /* Ad overlay: smaller border-radius */
    #ad-overlay .rounded-3xl {
        border-radius: 1rem;
    }
    
    /* Tables: ensure horizontal scroll */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Transaction list max height */
    .dash-links-list {
        max-height: calc(100vh - 12rem);
    }
}

/* --- Tablet (641px to 1023px) --- */
@media (min-width: 641px) and (max-width: 1023px) {
    /* Streak cards: better grid for tablet */
    .grid.xl\:grid-cols-7 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --- Touch device enhancements --- */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms for touch devices */
    .dash-stat-card:hover,
    .plan-card:hover,
    .streak-card:hover,
    .blog-card:hover,
    .blog-featured-card:hover {
        transform: none;
    }
    
    /* Larger tap targets */
    .dash-action-btn {
        min-width: 2rem;
        min-height: 2rem;
    }
    .blog-cat-btn {
        min-height: 2.25rem;
    }
    
    /* Smooth scroll for horizontal lists */
    .scrollbar-hide {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
    .scrollbar-hide > * {
        scroll-snap-align: start;
    }
    
    /* Active states for touch feedback */
    .dash-stat-card:active {
        transform: scale(0.97);
        transition-duration: 0.1s;
    }
    .blog-card:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }
    .blog-cat-btn:active {
        transform: scale(0.95);
        transition-duration: 0.1s;
    }
    .plan-card:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }
    .streak-card:active {
        transform: scale(0.96);
        transition-duration: 0.1s;
    }
}

/* --- Safe area for notched devices --- */
@supports (padding: max(0px)) {
    .max-w-7xl {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ---- Pulse dot ---- */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

/* (legacy .feature-icon & .pricing-card kept for other pages) */

/* ===== Plan Page Cards ===== */
.plan-card {
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
}
.dark .plan-card {
    background: #111827;
    border-color: #1f2937;
}
.dark .plan-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3);
}
.plan-card-active {
    border-color: transparent !important;
}
.plan-card-premium {
    border-color: rgba(139, 92, 246, 0.2);
}
.dark .plan-card-premium {
    border-color: rgba(139, 92, 246, 0.15);
}
.plan-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.plan-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.875rem;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.plan-card-btn-free {
    background: #f3f4f6;
    color: #374151;
}
.plan-card-btn-free:hover {
    background: #e5e7eb;
}
.dark .plan-card-btn-free {
    background: #1f2937;
    color: #d1d5db;
}
.dark .plan-card-btn-free:hover {
    background: #374151;
}
.plan-card-btn-current {
    background: #f0fdf4;
    color: #16a34a;
    cursor: default;
}
.dark .plan-card-btn-current {
    background: rgba(22, 163, 74, 0.1);
    color: #4ade80;
}
.plan-card-btn-premium {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.35);
}
.plan-card-btn-premium:hover {
    box-shadow: 0 12px 32px -4px rgba(124, 58, 237, 0.5);
    transform: translateY(-1px);
}
.plan-card-btn-premium-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(147, 51, 234, 0.1));
    color: #7c3aed;
    cursor: default;
}
.dark .plan-card-btn-premium-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(147, 51, 234, 0.15));
    color: #a78bfa;
}
.plan-card-btn-earn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.35);
}
.plan-card-btn-earn:hover {
    box-shadow: 0 12px 32px -4px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}

/* ===== Streak Day Cards ===== */
.streak-card {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.streak-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.08);
}
.dark .streak-card {
    background: #111827;
    border-color: #1f2937;
}
.dark .streak-card:hover {
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.3);
}
.streak-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.streak-card-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.pricing-card {
    position: relative;
    overflow: hidden;
}
.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    padding: 0.25rem 3rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
}

/* ===== Blog Page ===== */
.blog-featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}
.blog-featured-card:hover {
    box-shadow: 0 20px 50px -12px rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
}
.dark .blog-featured-card {
    background: #111827;
    border-color: rgba(139, 92, 246, 0.1);
}
.dark .blog-featured-card:hover {
    box-shadow: 0 20px 50px -12px rgba(139, 92, 246, 0.08);
}

.blog-card {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0,0,0,0.08);
    border-color: #e5e7eb;
}
.dark .blog-card {
    background: #111827;
    border-color: #1f2937;
}
.dark .blog-card:hover {
    box-shadow: 0 16px 32px -8px rgba(0,0,0,0.25);
    border-color: #374151;
}

.blog-cat-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s ease;
    cursor: pointer;
}
.blog-cat-btn:hover {
    border-color: #ddd6fe;
    color: #7c3aed;
    background: #f5f3ff;
}
.blog-cat-btn-active {
    background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.3);
}
.dark .blog-cat-btn {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}
.dark .blog-cat-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.1);
}

.blog-topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
}
.blog-topic-tag:hover {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #7c3aed;
}
.dark .blog-topic-tag {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}
.dark .blog-topic-tag:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}
.blog-topic-count {
    font-size: 0.625rem;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}
.dark .blog-topic-count {
    background: #374151;
    color: #6b7280;
}
.blog-topic-tag:hover .blog-topic-count {
    background: #ede9fe;
    color: #7c3aed;
}
.dark .blog-topic-tag:hover .blog-topic-count {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
}

/* line-clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* scrollbar-hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Admin sidebar */
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #6b7280;
    transition: all 0.2s;
}
.admin-sidebar-link:hover, .admin-sidebar-link.active {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}
.dark .admin-sidebar-link:hover, .dark .admin-sidebar-link.active {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

/* ===== Blog Article Content ===== */
.blog-article-content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
}
.dark .blog-article-content {
    color: #d1d5db;
}
.blog-article-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: #111827;
    scroll-margin-top: 5rem;
}
.dark .blog-article-content h2 {
    color: #f3f4f6;
}
.blog-article-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}
.dark .blog-article-content h3 {
    color: #e5e7eb;
}
.blog-article-content p {
    margin-bottom: 1rem;
}
.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.blog-article-content ul {
    list-style-type: disc;
}
.blog-article-content ol {
    list-style-type: decimal;
}
.blog-article-content li {
    margin-bottom: 0.375rem;
    padding-left: 0.25rem;
}
.blog-article-content strong {
    font-weight: 700;
    color: #111827;
}
.dark .blog-article-content strong {
    color: #f3f4f6;
}
.blog-article-content code {
    display: inline;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: #7c3aed;
}
.dark .blog-article-content code {
    background: #1f2937;
    border-color: #374151;
    color: #a78bfa;
}
.blog-article-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
    border-radius: 0.75rem;
    overflow: hidden;
    font-size: 0.8125rem;
}
.blog-article-content thead {
    background: #f9fafb;
}
.dark .blog-article-content thead {
    background: #1f2937;
}
.blog-article-content th {
    padding: 0.625rem 0.75rem;
    font-weight: 700;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}
.dark .blog-article-content th {
    border-color: #374151;
    color: #9ca3af;
}
.blog-article-content td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}
.dark .blog-article-content td {
    border-color: #1f2937;
}
.blog-article-content tr:last-child td {
    border-bottom: none;
}
.blog-article-content a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-article-content a:hover {
    color: #6d28d9;
}
.dark .blog-article-content a {
    color: #a78bfa;
}
.dark .blog-article-content a:hover {
    color: #c4b5fd;
}

/* Blog article responsive */
@media (max-width: 640px) {
    .blog-article-content {
        font-size: 0.875rem;
        line-height: 1.75;
    }
    .blog-article-content h2 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }
    .blog-article-content h3 {
        font-size: 1rem;
    }
    .blog-article-content table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
    }
}

/* ========================================
   LEGAL PAGES
   ======================================== */

/* Navigation Pills */
.legal-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.legal-nav-pill:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}
.dark .legal-nav-pill {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.2);
}
.dark .legal-nav-pill:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.35);
}

/* Sidebar Links */
.legal-sidebar-link {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.legal-sidebar-link:hover {
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.06);
    border-left-color: #7c3aed;
}
.dark .legal-sidebar-link {
    color: #9ca3af;
}
.dark .legal-sidebar-link:hover {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #a78bfa;
}

/* Section Card */
.legal-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.legal-section:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.dark .legal-section {
    background: rgba(30, 30, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}
.dark .legal-section:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Section Header */
.legal-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.dark .legal-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.legal-section-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.dark .legal-section-title {
    color: #f3f4f6;
}

/* Section Body */
.legal-section-body {
    padding: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4b5563;
}
.dark .legal-section-body {
    color: #9ca3af;
}
.legal-section-body p + p {
    margin-top: 0.75rem;
}

/* Highlight Block */
.legal-highlight {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid #f3f4f6;
}
.dark .legal-highlight {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

/* List */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}
.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b5cf6;
}

/* Callout */
.legal-callout {
    border-radius: 0.75rem;
    padding: 1rem 1.125rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    border-left: 3px solid;
}
.legal-callout--green {
    background: rgba(16, 185, 129, 0.06);
    border-left-color: #10b981;
    color: #065f46;
}
.dark .legal-callout--green {
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}
.legal-callout--blue {
    background: rgba(59, 130, 246, 0.06);
    border-left-color: #3b82f6;
    color: #1e40af;
}
.dark .legal-callout--blue {
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
}

/* Mini Card */
.legal-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.legal-mini-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.03);
}
.dark .legal-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}
.dark .legal-mini-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

/* Legal Pages Mobile Responsive */
@media (max-width: 640px) {
    .legal-nav-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.625rem;
    }
    .legal-section-header {
        padding: 0.875rem 1rem;
    }
    .legal-section-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
    .legal-section-title {
        font-size: 0.9375rem;
    }
    .legal-mini-card {
        padding: 0.625rem 0.75rem;
    }
}

/* ========================================
   FAQ ACCORDION (Help Page)
   ======================================== */
.faq-item {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}
.faq-item[open] {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.02);
}
.dark .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}
.dark .faq-item[open] {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.04);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.2s ease;
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question:hover {
    color: #7c3aed;
}
.dark .faq-question {
    color: #e5e7eb;
}
.dark .faq-question:hover {
    color: #a78bfa;
}
.faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.8375rem;
    line-height: 1.7;
    color: #6b7280;
}
.dark .faq-answer {
    color: #9ca3af;
}
.faq-answer a {
    color: #7c3aed;
    font-weight: 600;
}
.faq-answer a:hover {
    text-decoration: underline;
}
.dark .faq-answer a {
    color: #a78bfa;
}

@media (max-width: 640px) {
    .faq-question {
        font-size: 0.8125rem;
        padding: 0.75rem 0.875rem;
    }
    .faq-answer {
        padding: 0 0.875rem 0.875rem;
        font-size: 0.8rem;
    }
}
