/* Google Fonts are now loaded in the header for better performance */

:root {
    --bg:            #07080d;
    --bg-2:          #0d0f1a;
    --surface:       rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.07);
    --glass:         rgba(13,15,26,0.7);
    --border:        rgba(255,255,255,0.06);
    --border-active: rgba(99,232,182,0.4);
    --primary:       #63e8b6;
    --primary-dim:   rgba(99,232,182,0.12);
    --primary-glow:  rgba(99,232,182,0.25);
    --gold:          #f5c842;
    --gold-dim:      rgba(245,200,66,0.12);
    --red:           #ff4d6d;
    --text:          #eef0f6;
    --text-muted:    #606880;
    --text-dim:      #9399a8;
    --radius:        14px;
    --shadow:        0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow:   0 0 40px rgba(99,232,182,0.15);
    --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

/* ── BACKGROUND MESH ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,232,182,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245,200,66,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.container-narrow { max-width: 800px; }

/* ── HEADER ── */
header {
    padding: 0;
    position: sticky;
    top: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 2px;
}
.logo .accent { color: var(--primary); }
.logo-arrow { 
    width: 1.1rem; 
    height: 1.1rem; 
    color: var(--primary); 
    margin-left: 2px;
    margin-bottom: 2px;
    transition: transform var(--transition);
}
.logo:hover .logo-arrow { transform: none; }

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}
.nav-links a, .nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.nav-links a:hover, .nav-link:hover { color: var(--text); background: var(--surface-hover); }
.nav-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-dim);
    font-weight: 500;
    transition: all var(--transition);
}
.nav-link-pill:hover {
    border-color: var(--border-active);
    background: var(--surface-hover);
    color: var(--text);
}
.nav-link-accent {
    background: var(--primary-dim);
    border-color: var(--border-active);
    color: var(--primary);
    font-weight: 600;
}
.nav-link-accent:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #020d08;
    filter: brightness(1.1);
}
.nav-link-danger {
    color: var(--red);
    font-weight: 600;
}
.nav-link-danger:hover {
    background: rgba(255,77,109,0.1);
    border-color: rgba(255,77,109,0.3);
    color: var(--red);
}
.nav-links .btn-primary:hover { background: var(--primary); color: #020d08; filter: brightness(1.1); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--primary);
    color: #020d08;
    border-color: var(--primary);
}
.btn-primary:hover {
    box-shadow: 0 8px 24px var(--primary-glow);
    filter: brightness(1.1);
}
.btn-outline {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}
.btn-outline:hover { color: var(--text); border-color: rgba(255,255,255,0.15); background: var(--surface-hover); }
.btn-ghost { background: var(--surface); color: var(--text-dim); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255,77,109,0.3); }
.btn-danger:hover { background: rgba(255,77,109,0.1); border-color: var(--red); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius); }

/* ── HERO ── */
.hero {
    padding: 160px 0 130px;
    text-align: center;
    position: relative;
    background: url('../img/hero-bg.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(7,8,13,0.7) 0%, rgba(7,8,13,0.92) 100%);
    z-index: 1;
}
.hero .container { position: relative; z-index: 4; }

/* ── FLOATING CASINO ELEMENTS ── */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.float-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.2;
    display: block;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,255,153,0.2)) blur(0.3px);
    animation: float 18s infinite ease-in-out;
    transition: opacity 0.3s;
}
.fi-1 { top: 15%; left: 10%; width: 60px; }
.fi-2 { top: 60%; left: 5%; width: 50px; animation-delay: -2s; }
.fi-3 { top: 12%; right: 8%; width: 65px; animation-delay: -5s; }
.fi-4 { top: 70%; right: 12%; width: 55px; animation-delay: -8s; }
.fi-cta-1 { top: 25%; left: 8%; width: 45px; }
.fi-cta-2 { top: 50%; right: 10%; width: 50px; animation-delay: -3s; }
.fi-cta-3 { bottom: 15%; left: 20%; width: 40px; animation-delay: -6s; }
.hero:hover .float-icon { opacity: 0.35; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(20deg); }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dim);
    border: 1px solid var(--border-active);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── GRADIENT TEXT ── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── STATS STRIP ── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-item {
    background: var(--bg);
    padding: 28px;
    text-align: center;
}
.stat-item strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.stat-item span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── SECTION ── */
.section { padding: 80px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.section-header p { color: var(--text-dim); font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ── CATALOG PAGE HEADER ── */
.catalog-page-header {
    padding: 40px 0 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.catalog-page-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
}
.catalog-page-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 520px;
}

/* ── CATALOG FILTER BAR ── */
.filter-bar {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(7, 8, 13, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    flex-wrap: wrap;
}

/* ── FILTER BAR MAIN (search + sort row, wraps on mobile) ── */
.filter-bar-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 280px;
}
.filter-bar-main .search-container {
    flex: 1 1 220px;
    min-width: 140px;
    max-width: 320px;
}

/* ── SLIDERS GROW TO FILL SPACE ── */
.filter-bar .slider-item {
    flex: 1 1 140px;
    min-width: 110px;
}
.filter-bar .range-dual {
    flex: 1;
    min-width: 40px;
    width: auto;
}

.search-input {
    width: 100%;
    padding: 8px 14px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px var(--primary-dim); }
.search-input::placeholder { color: var(--text-muted); }

.filter-info { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.count-label { font-weight: 700; color: var(--primary); }

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    min-width: 160px;
}
.search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    opacity: 0.35;
    color: var(--text);
    pointer-events: none;
    flex-shrink: 0;
}
.search-count {
    position: absolute;
    right: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(99,232,182,0.25);
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.4;
}
.search-container .form-input {
    padding: 0 50px 0 36px;
    background: rgba(255,255,255,0.03);
    width: 100%;
    font-size: 0.82rem;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-container .form-input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.search-container .form-input::placeholder { color: var(--text-muted); }

/* ── FILTER CONTROLS ── */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Slider group */
.slider-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.slider-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 8px 0 10px;
    height: 36px;
}
.slider-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    flex-shrink: 0;
}
.slider-val {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    min-width: 34px;
    text-align: right;
    flex-shrink: 0;
}

/* Dual range slider */
.range-slider-wrap { gap: 6px; padding: 0 8px 0 10px; flex: 1; }
.range-dual {
    position: relative;
    width: 100px;
    height: 28px;
}
.range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    pointer-events: none;
}
.range-fill {
    position: absolute;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border-radius: 2px;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(99,232,182,0.3);
}
.range-dual input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    z-index: 2;
}
.range-dual input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2.5px var(--border-active), 0 0 6px rgba(99,232,182,0.3);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.15s ease;
}
.range-dual input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 3.5px var(--border-active), 0 0 12px rgba(99,232,182,0.4);
}
.range-dual input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2.5px var(--border-active), 0 0 6px rgba(99,232,182,0.3);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.15s ease;
}
.range-dual input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 3.5px var(--border-active), 0 0 12px rgba(99,232,182,0.4);
}
.range-dual input[type="range"]::-webkit-slider-runnable-track { height: 20px; background: transparent; }
.range-dual input[type="range"]::-moz-range-track { height: 20px; background: transparent; border: none; }

/* Toggles */
.filter-toggles {
    display: flex;
    gap: 4px;
}
.toggle-chip { cursor: pointer; user-select: none; }
.toggle-chip input { display: none; }
.chip-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all var(--transition);
    height: 36px;
    min-width: 38px;
}
.toggle-chip input:checked + .chip-label.hot {
    background: rgba(255,77,109,0.12);
    border-color: rgba(255,77,109,0.3);
    color: var(--red);
}
.toggle-chip input:checked + .chip-label:not(.hot) {
    background: rgba(99,232,182,0.12);
    border-color: rgba(99,232,182,0.3);
    color: var(--primary);
}
.chip-label:hover { border-color: rgba(255,255,255,0.15); }

/* Custom Sort Button */
.sort-group { flex-shrink: 0; display: flex; align-items: center; gap: 4px; position: relative; }
.sort-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all var(--transition);
    font-family: inherit;
}
.sort-btn:hover { border-color: var(--border-active); color: var(--text); }
.sort-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Reset Button */
.filter-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    padding: 0 10px 0 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition);
    flex-shrink: 0;
}
.filter-action-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(255,77,109,0.08);
}
.filter-action-btn:active {
    transform: scale(0.97);
}
.filter-toggles .filter-action-btn {
    border-radius: 100px;
    padding: 0 10px;
}

/* ── SORT DROPDOWN ── */
.sort-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform var(--transition);
    margin-left: -2px;
}
.sort-btn.open .sort-chevron {
    transform: rotate(180deg);
}
.sort-btn.open {
    border-color: var(--border-active);
    color: var(--text);
}
.sort-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.sort-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.sort-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    white-space: nowrap;
}
.sort-option:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.sort-option.active {
    background: var(--primary-dim);
    color: var(--primary);
    font-weight: 600;
}
.sort-option svg { opacity: 0.5; flex-shrink: 0; }
.sort-option.active svg { opacity: 1; }

/* ── SLIDER NUMERIC INPUTS ── */
.slider-inputs {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
}
.slider-num-input {
    width: 36px;
    padding: 2px 3px;
    background: rgba(255,255,255,0.04);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 0.68rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: all var(--transition);
    -moz-appearance: textfield;
}
.slider-num-input::-webkit-outer-spin-button,
.slider-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.slider-num-input:focus {
    border-color: var(--border-active);
    background: rgba(255,255,255,0.08);
    color: var(--text);
}
.slider-num-input:hover {
    background: rgba(255,255,255,0.06);
}
.slider-sep {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── ACTIVE FILTER CHIPS ── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
}
.active-filters.has-chips {
    margin-bottom: 20px;
    padding-top: 4px;
}
.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 12px;
    background: var(--primary-dim);
    border: 1px solid rgba(99,232,182,0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    animation: chipIn 0.25s ease-out;
}
.active-chip:hover {
    background: rgba(99,232,182,0.2);
    border-color: rgba(99,232,182,0.35);
}
.active-chip svg {
    opacity: 0.5;
    transition: opacity var(--transition);
    flex-shrink: 0;
}
.active-chip:hover svg {
    opacity: 1;
}
@keyframes chipIn {
    from { opacity: 0; transform: scale(0.92) translateY(-2px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── CARD ENTRANCE ANIMATION ── */
.site-card { opacity: 0; overflow: visible; z-index: 1; }
.site-card.card-visible {
    animation: cardFadeIn 0.4s ease forwards;
}
.site-card:hover { z-index: 50; }
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── EMPTY FILTER STATE ── */
.empty-filter-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    grid-column: 1 / -1;
    animation: fadeIn 0.3s ease;
}
.empty-filter-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
    filter: grayscale(0.5);
}
.empty-filter-state p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.empty-filter-state .empty-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 20px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .catalog-page-header { padding: 24px 0 16px; }
    .catalog-page-title { font-size: 1.5rem; }
    .catalog-page-desc { font-size: 0.85rem; max-width: 100%; }
    .filter-bar { gap: 6px; padding: 8px 0; }
    .filter-bar-main { flex: 1 1 100%; min-width: 0; gap: 6px; }
    .filter-bar-main .search-container { flex: 1 1 auto; max-width: none; min-width: 0; }
    .filter-bar .slider-item { flex: 1 1 calc(50% - 3px); min-width: 0; }
    .slider-item { height: 32px; padding: 0 6px 0 8px; }
    .range-dual { height: 24px; }
    .range-dual input[type="range"] { top: 3px; height: 18px; }
    .range-dual input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; }
    .range-dual input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; }
    .range-dual input[type="range"]::-webkit-slider-runnable-track { height: 18px; }
    .range-dual input[type="range"]::-moz-range-track { height: 18px; }
    .slider-label { font-size: 0.72rem; }
    .slider-val { font-size: 0.72rem; min-width: 28px; }
    .range-slider-wrap { padding: 0 6px 0 8px; gap: 4px; }
    .chip-label { height: 32px; font-size: 0.72rem; padding: 0 10px; }
    .sort-btn { height: 32px; font-size: 0.72rem; padding: 0 8px; }
    .filter-action-btn { height: 32px; font-size: 0.72rem; padding: 0 8px 0 6px; }
    .sort-dropdown { min-width: 180px; }
    .sort-option { padding: 8px 12px; font-size: 0.78rem; }
    .slider-num-input { width: 30px; font-size: 0.65rem; }
    .slider-sep { font-size: 0.6rem; }
    .active-chip { font-size: 0.68rem; padding: 3px 8px 3px 10px; }
    .active-filters.has-chips { margin-bottom: 14px; }
    .empty-filter-state { padding: 48px 16px; }
    .empty-filter-state p { font-size: 0.88rem; }
}

@media (max-width: 480px) {
    .filter-bar .slider-item { flex: 1 1 100%; min-width: 0; }
}

@media (max-width: 420px) {
    .filter-controls { gap: 4px; }
    .range-dual { height: 22px; }
    .range-dual input[type="range"] { top: 2px; height: 18px; }
    .range-dual input[type="range"]::-webkit-slider-runnable-track { height: 18px; }
    .range-dual input[type="range"]::-moz-range-track { height: 18px; }
    .range-slider-wrap { gap: 3px; }
    .slider-label { display: none; }
    .filter-action-btn span { display: none; }
    .slider-inputs { display: none; }
    .sort-chevron { display: none; }
}

/* 3D RIBBON WRAP AROUND */
.ribbon-wrapper {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100px;
    height: 100px;
    z-index: 10;
    overflow: hidden; 
    pointer-events: none;
}

.ribbon-sale {
    position: absolute;
    display: block;
    width: 140px;
    padding: 6px 0;
    background-color: var(--red);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    left: -32px;
    top: 25px;
    transform: rotate(-45deg);
    letter-spacing: 1px;
}

/* 3D FOLDS (THE WRAP EFFECT) */
.card-inner::before, .card-inner::after {
    content: "";
    position: absolute;
    z-index: 1;
    border: 4px solid #8b0000; /* Deep shadow red */
    display: none;
}

.card:has(.ribbon-wrapper) .card-inner::before {
    display: block;
    top: -8px;
    left: 0;
    border-top: 4px solid transparent;
    border-left: 4px solid transparent;
}

.card:has(.ribbon-wrapper) .card-inner::after {
    display: block;
    top: 0;
    left: -8px;
    border-top: 4px solid transparent;
    border-left: 4px solid transparent;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
    overflow: visible; /* CRITICAL for 3D ribbon folds */
    border-radius: var(--radius);
}

.card-inner {
    border-radius: var(--radius);
    overflow: hidden; /* For rounded corners */
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--surface);
    position: relative;
}
/* Modern Toggle Switch */
/* Modern Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .3s;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px;
    background-color: white; transition: .3s; border-radius: 50%;
}
.switch input:checked + .slider { background-color: var(--primary); border-color: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(20px); }

.site-favicon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: var(--radius);
}

.ahrefs-icon {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.7;
}

.instant-badge {
    background: #facc15; 
    color: #000; 
    padding: 3px 8px; 
    border-radius: var(--radius); 
    font-size: 0.65rem; 
    font-weight: 800; 
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-main {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--primary);
}
.price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.5;
}

.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.catalog-page { padding: 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.card {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover { border-color: var(--border-active); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }
.card-clickable { cursor: pointer; }

.card-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 10px; margin-bottom: 14px; }
.card-meta span { background: var(--surface-hover); padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border); }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

.price-tag {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.price-tag sub { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-left: 2px; }

.category-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid rgba(245,200,66,0.2);
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), background var(--transition);
}
.feature-card:hover { border-color: var(--border-active); background: var(--surface-hover); }
.feature-icon {
    width: 44px; height: 44px;
    background: var(--primary-dim);
    border: 1px solid var(--border-active);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.02em; }
.form-input, .form-select, .form-file {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-input:focus, .form-select:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px var(--primary-dim); }
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-2); }
.form-file { padding: 10px 14px; cursor: pointer; }
.form-file::-webkit-file-upload-button {
    background: var(--surface-hover);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: all var(--transition);
}
.form-file::-webkit-file-upload-button:hover { background: var(--primary-dim); color: var(--primary); border-color: var(--border-active); }

/* ── CARD FORM (checkout, login etc) ── */
.card-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 580px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.card-form h1, .card-form h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.card-form > p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 28px; }

/* ── SUMMARY BOX ── */
.order-summary {
    background: rgba(99,232,182,0.04);
    border: 1px solid var(--border-active);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.order-summary-info { flex: 1; }
.order-summary-info strong { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.order-summary-info span { font-size: 0.82rem; color: var(--text-dim); }
.order-summary-price { font-size: 2rem; font-weight: 900; color: var(--primary); letter-spacing: -1px; }

/* ── PAGE HEADER ── */
.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.page-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.page-header p { color: var(--text-dim); font-size: 0.95rem; }

/* ── TABLE ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead tr { border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
th { padding: 14px 18px; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; text-align: left; }
td { padding: 16px 18px; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ── STATUS BADGES ── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-green { background: rgba(99,232,182,0.12); color: var(--primary); border: 1px solid rgba(99,232,182,0.2); }
.badge-yellow { background: rgba(245,200,66,0.12); color: var(--gold); border: 1px solid rgba(245,200,66,0.2); }
.badge-red { background: rgba(255,77,109,0.12); color: var(--red); border: 1px solid rgba(255,77,109,0.2); }
.badge-gray { background: var(--surface-hover); color: var(--text-muted); border: 1px solid var(--border); }

/* ── DASHBOARD LAYOUT ── */
.dash-content { padding: 36px; background: var(--bg); }

/* ── STAT CARDS (dashboard) ── */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.dash-stat-card .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; font-weight: 600; }
.dash-stat-card .value { font-size: 2rem; font-weight: 900; letter-spacing: -1px; }
.dash-stat-card .trend { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.export-update-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--primary-dim);
    border: 1px solid var(--border-active);
    border-radius: var(--radius);
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.export-update-notice-first { border-color: var(--border); background: var(--surface); }
.export-update-notice-ok { border-color: var(--border); background: var(--surface); }
.export-update-notice-ok .export-update-notice-icon { color: var(--text-muted); }
.export-update-notice-icon {
    color: var(--primary);
    display: flex;
    flex-shrink: 0;
}
.export-update-notice-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-dim);
    min-width: 180px;
}
.export-update-notice-text strong { color: var(--primary); font-weight: 800; }
.export-update-notice-date { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.export-update-notice .btn { flex-shrink: 0; }

/* ── FILTER BAR (admin) ── */
.filter-bar-admin {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.filter-bar-admin .form-input, .filter-bar-admin .form-select { width: auto; flex: 1; min-width: 160px; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── AUTH PAGES ── */
.auth-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 32px; }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: rgba(99,232,182,0.08); border-color: rgba(99,232,182,0.2); color: var(--primary); }
.alert-error { background: rgba(255,77,109,0.08); border-color: rgba(255,77,109,0.2); color: var(--red); }
.alert-info { background: rgba(99,145,232,0.08); border-color: rgba(99,145,232,0.2); color: #6391e8; }

/* ── FOOTER ── */
footer {
    padding: 48px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0;
}
footer .footer-links { display: flex; gap: 24px; justify-content: center; margin-top: 12px; }
footer .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; transition: color var(--transition); }
footer .footer-links a:hover { color: var(--primary); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; margin-bottom: 20px; }
.empty-state-full { grid-column: 1 / -1; }

/* ── ADMIN SPECIFIC ── */
.dash-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 68px);
}
.dash-sidebar {
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 68px;
    height: 100%;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
}
.dash-nav { list-style: none; padding: 0; margin: 0; }
.dash-nav li { margin: 0; }
.dash-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 2px solid transparent;
}
.dash-nav a:hover { background: var(--surface); color: var(--text); }
.dash-nav a.active {
    color: var(--primary);
    background: var(--primary-dim);
    border-left-color: var(--primary);
}
.dash-nav .nav-section-divider {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 8px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.admin-header h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.admin-header h2 .count-muted { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-left: 8px; }
.admin-header-actions { display: flex; gap: 10px; align-items: center; }
.actions-cell { display: flex; gap: 8px; }

.admin-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--red);
    background: rgba(255,77,109,0.1);
    border: 1px solid rgba(255,77,109,0.2);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.card-form h3 { margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}
.form-grid .form-group { margin: 0; }
.form-group-span2 { grid-column: span 2; }
.edit-site-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edit-site-full { grid-column: span 2; }
.edit-site-title { margin-bottom: 24px; }
.form-help-text { font-size: 0.75rem; margin-top: 4px; display: block; }
.blog-edit-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.blog-edit-card { max-width: 900px; margin: 0; }
.featured-image-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* Filter bar inside dash-content */
.dash-content .filter-bar { position: static; margin-bottom: 24px; }
.filter-bar-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-group { flex: 0 0 auto; }
.filter-group-grow { flex: 1 1 220px; min-width: 160px; }
.filter-group-sm { flex: 0 1 100px; min-width: 80px; }
.filter-group-check { flex: 0 0 auto; display: flex; align-items: center; }
.filter-group-check .checkbox-label { font-size: 0.8rem; white-space: nowrap; }
.filter-group-btn { flex: 0 0 auto; display: flex; gap: 6px; }
.filter-group input[type="date"] { min-width: 130px; }

/* Order status inline row */
.status-form-row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.status-form-row .form-input-sm {
    width: auto;
    flex: 1 1 120px;
    min-width: 100px;
    font-size: 0.75rem;
    padding: 6px 10px;
}

/* Collapsible Add Site */
.details-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 28px;
    padding: 4px 0;
}
.details-summary {
    cursor: pointer;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    user-select: none;
}
.details-summary:hover { background: var(--surface-hover); border-radius: var(--radius); }
.details-box[open] .details-summary { border-bottom: 1px solid var(--border); }
.details-box .form-grid { padding: 0 24px 20px; }

/* Pagination */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* Quick actions row */
.dash-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.dash-quick-actions .btn { font-size: 0.85rem; }

/* Collapsible filter bar (admin orders) */
.filter-bar-details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}
.filter-bar-summary {
    cursor: pointer;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    color: var(--text-dim);
}
.filter-bar-summary:hover { background: var(--surface-hover); }
.filter-bar-details[open] .filter-bar-summary {
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.filter-active-dot {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
}
.filter-bar-panel {
    padding: 12px 16px 16px;
}
.filter-bar-form .filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-cell { flex: 0 0 auto; }
.filter-cell-grow { flex: 1 1 180px; min-width: 140px; }
.filter-cell-sm { flex: 0 1 90px; min-width: 70px; }
.filter-cell-btn { flex: 0 0 auto; }
.filter-cell .form-input { font-size: 0.82rem; padding: 7px 10px; }
.filter-cell input[type="date"] { min-width: 120px; }
.filter-inline-label { font-size: 0.8rem; white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 7px 0; }

@media (max-width: 900px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
}

.wp-settings {
    display: none;
    border-left: 3px solid #10b981;
    padding-left: 20px;
    margin-bottom: 24px;
}
.wp-settings.visible { display: block; }
.wp-settings h4 { margin-bottom: 16px; color: #10b981; }
.wp-settings-title { font-weight: 700; margin-bottom: 16px; color: #10b981; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.remember-label { justify-content: center; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-dim); }

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.back-link:hover { color: var(--primary); }

.table-img-thumb {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.table-img-placeholder {
    width: 50px;
    height: 35px;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
}
.td-mono { font-family: monospace; font-size: 0.8rem; color: var(--text-dim); }

.badge-red-solid { background: var(--red); color: white; }
.badge-green-solid { background: #10b981; color: white; }

.page-section-title { margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; }
.section-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
}
.checkbox-group {
    display: flex;
    gap: 32px;
    margin: 24px 0;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.article-link-icon {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-link-icon:hover { color: #f5c842; filter: brightness(1.2); }

.auth-card-header { text-align: center; margin-bottom: 24px; }
.auth-card-icon { font-size: 2rem; margin-bottom: 8px; }
.auth-card-icon-svg { width: 48px; height: 48px; color: var(--primary); margin: 0 auto 12px; display: block; }
.auth-card-btn { width: 100%; justify-content: center; }
.auth-card-btn:hover { filter: brightness(1.1); }
.btn-loading { pointer-events: none; opacity: 0.7; position: relative; }
.btn-loading::after {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle-btn:hover { color: var(--text); }
.form-password-wrap { position: relative; }

.mt-12 { margin-top: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.p-0 { padding: 0; }

/* ── PUBLISHER PAGE ── */
.pub-container { width: 100%; max-width: 500px; margin: 0 auto; padding: 20px; }
.pub-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.pub-header { text-align: center; margin-bottom: 24px; }
.pub-header h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.pub-order-meta { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }
.pub-detail-box {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.05);
}
.pub-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pub-detail-item:last-child { border: none; }
.pub-label { color: #94a3b8; font-size: 0.8rem; }
.pub-value { font-weight: 600; color: #f8fafc; font-size: 0.9rem; }
.pub-dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.pub-dl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: 0.2s;
}
.pub-dl-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); border-color: var(--primary); }
.pub-dl-card svg { width: 28px; height: 28px; }
.pub-dl-label { font-size: 0.75rem; font-weight: 600; }
.pub-word-icon { color: #60a5fa; }
.pub-img-icon { color: #34d399; }
.pub-input {
    width: 100%;
    padding: 14px 18px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 12px;
    color: white;
    margin-top: 8px;
    box-sizing: border-box;
    font-size: 0.9rem;
}
.pub-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.pub-submit-btn {
    width: 100%;
    padding: 16px;
    background: #63e8b6;
    color: #020d08;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 0 4px 14px 0 rgba(99, 232, 182, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pub-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99, 232, 182, 0.4); filter: brightness(1.1); }
.pub-success-box { text-align: center; padding: 10px 0; }
.pub-success-icon { width: 48px; height: 48px; color: #63e8b6; margin: 0 auto 16px; display: block; }
.pub-success-title { color: #63e8b6; margin: 0; }
.pub-success-desc { color: #94a3b8; font-size: 0.9rem; margin-top: 12px; }
.pub-success-url {
    margin-top: 20px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #63e8b6;
    word-break: break-all;
}
.pub-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.pub-completed-box {
    text-align: center;
    padding: 16px;
    background: rgba(52, 211, 153, 0.05);
    border: 1px dashed rgba(52, 211, 153, 0.3);
    border-radius: 16px;
}
.pub-completed-meta { font-size: 0.85rem; color: var(--text-muted); }
.pub-completed-url {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-top: 4px;
    word-break: break-all;
}
.pub-completed-url:hover { text-decoration: underline; }
.pub-input-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #94a3b8;
}
.pub-error {
    background: rgba(255,77,109,0.1);
    border: 1px solid rgba(255,77,109,0.3);
    color: var(--red);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 10px;
}
.pub-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
    color-scheme: dark;
}
.pub-select option { background: #0f172a; color: #fff; }
.pub-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}
.pub-hint {
    font-size: 0.8rem;
    color: #60a5fa;
    margin-top: 6px;
}
.pub-optional {
    font-weight: 400;
    color: #64748b;
    font-size: 0.75rem;
}
.pub-logo {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    display: inline-flex;
    align-items: center;
}
.pub-logo-accent { color: #63e8b6; }
.pub-logo-arrow { color: #63e8b6; margin-left: 4px; width: 1.1rem; height: 1.1rem; }
.pub-expired {
    text-align: center;
    margin-top: 100px;
    font-family: sans-serif;
    color: white;
    background: #0b0f19;
    height: 100vh;
    padding-top: 100px;
}
.pub-expired h2 { margin-bottom: 12px; }
.pub-expired p { color: #94a3b8; }
.pub-auth-card-btn { background: #63e8b6; color: #020d08; border: none; }

/* ── DR SYNC ── */
.sync-progress-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}
.sync-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.sync-stat-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.sync-stat-val { font-size: 1.5rem; font-weight: bold; color: white; display: block; }
.sync-stat-label { font-size: 0.8rem; color: var(--text-dim); }
.sync-progress-bar {
    height: 20px;
    background: #222;
    border-radius: 10px;
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid #333;
}
.sync-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #34d399);
    width: 0%;
    transition: width 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.sync-progress-pct {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    text-shadow: none;
    white-space: nowrap;
}
.sync-log {
    background: #000;
    color: var(--primary);
    font-family: monospace;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    text-align: left;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* ── MOBILE NAV TOGGLE (modern animated hamburger) ── */
.nav-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 12px;
    cursor: pointer;
    z-index: 200;
    transition: all var(--transition);
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(8px);
}
.nav-toggle:hover {
    border-color: var(--border-active);
    background: var(--primary-dim);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 12px;
        right: 12px;
        background: var(--bg-2);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        flex-direction: column;
        padding: 8px;
        gap: 2px;
        z-index: 150;
        box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    }
    .nav-links.open { display: flex; }
    .nav-links a, .nav-link-pill {
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--radius);
        border: none;
        background: transparent;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-dim);
        justify-content: flex-start;
    }
    .nav-links a:hover, .nav-link-pill:hover { background: var(--surface-hover); color: var(--text); }
    .nav-link-accent { background: var(--primary-dim); color: var(--primary); font-weight: 600; }
    .nav-link-accent:hover { background: var(--primary); color: #020d08; }
    .nav-link-danger { color: var(--red); }
    .nav-link-danger:hover { background: rgba(255,77,109,0.1); color: var(--red); }
    .nav-links .btn { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
    .stats-strip { grid-template-columns: 1fr; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
    .card-form { padding: 24px; }
    .auth-card { padding: 28px; }
    .nav-links { gap: 4px; }
    .dash-stats { grid-template-columns: 1fr; }
    .dash-content { padding: 16px; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .table-wrapper { border-radius: 0; border-left: none; border-right: none; }
    table { min-width: 500px; }
    th, td { padding: 12px; font-size: 0.8rem; }
    .page-header { padding: 40px 0 24px; margin-bottom: 32px; }
    .page-header h1 { font-size: 1.5rem; }
}

/* ── CART RESPONSIVE ── */
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr !important; }
    .cart-layout > div:last-child { position: static !important; }
    .cart-item { flex-direction: column !important; gap: 12px !important; }
    .cart-item-preview { width: 100% !important; height: 140px !important; }
    .cart-item-price { text-align: left !important; min-width: auto !important; }
}

/* ── CHECKOUT RESPONSIVE ── */
@media (max-width: 600px) {
    .checkout-grid-2 { grid-template-columns: 1fr !important; }
    .checkout-btns { grid-template-columns: 1fr !important; }
    .checkout-header { flex-direction: column !important; gap: 12px !important; }
    .checkout-header > div:last-child { text-align: left !important; }
}

/* ── ADMIN EDIT SITE RESPONSIVE ── */
@media (max-width: 640px) {
    .edit-site-grid { grid-template-columns: 1fr !important; }
    .edit-site-full { grid-column: span 1 !important; }
}

/* ── BLOG EDIT RESPONSIVE ── */
@media (max-width: 768px) {
    .blog-edit-grid { grid-template-columns: 1fr !important; }
}

/* ── DASHBOARD MOBILE ORDER CARDS ── */
.dash-order-cards { display: none; flex-direction: column; gap: 12px; }
.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all var(--transition);
}
.order-card:hover { border-color: var(--border-active); }
.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.order-card-id {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}
.order-card-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.order-card-site {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.order-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.order-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.order-card-amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}
@media (max-width: 768px) {
    .dash-order-cards { display: flex; }
    .dash-table-desktop { display: none; }
}

/* ── ICONS ── */
.icon-svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.icon-lg { width: 3rem; height: 3rem; margin-right: 0; }
.icon-sm { width: 1rem; height: 1rem; margin-right: 0; }
.icon-muted { margin-bottom: 20px; opacity: 0.2; }

/* ── BLOG CONTENT STYLES ── */
.blog-content h2 { color: var(--text); margin: 40px 0 20px; font-size: 1.8rem; font-weight: 800; }
.blog-content h3 { color: var(--text); margin: 30px 0 15px; font-size: 1.4rem; font-weight: 700; }
.blog-content p { margin-bottom: 16px; }
.blog-content ul, .blog-content ol { margin-bottom: 24px; padding-left: 24px; }
.blog-content li { margin-bottom: 12px; }
.blog-content strong { color: var(--primary); font-weight: 700; }
.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 32px;
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 40px 0;
    font-style: italic;
    color: var(--text);
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 32px 0;
    border: 1px solid var(--border);
}

/* ── HERO FLAG ── */
.hero-flag { display: flex; justify-content: center; margin-bottom: 20px; }

/* ── HERO SUBTITLE ── */
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 660px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ── MARKET TAGS ── */
.market-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.market-tag {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: all var(--transition);
}
.market-tag:hover { border-color: var(--border-active); color: var(--primary); }

/* ── HOW IT WORKS / STEPS ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
}
.step-card:hover { border-color: var(--border-active); }
.step-number {
    width: 48px; height: 48px;
    background: var(--primary-dim);
    border: 1px solid var(--border-active);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    color: var(--primary);
    margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .step-card { padding: 28px 20px; }
    .step-number { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ── SERVICES ── */
.section-alt { background: var(--bg-2); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}
.service-card:hover { border-color: var(--border-active); background: var(--surface-hover); }
.service-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.service-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.service-hash { color: var(--primary); font-weight: 800; }

/* ── FLASH SALES ── */
.section-flash {
    background: linear-gradient(135deg, rgba(255,77,109,0.04) 0%, rgba(245,200,66,0.04) 100%);
}
.flash-card {
    background: var(--surface);
    border: 1px solid rgba(255,77,109,0.2);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(255,77,109,0.08);
}
.flash-card h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.flash-card p { font-size: 1rem; color: var(--text-dim); max-width: 520px; margin: 0 auto 32px; line-height: 1.6; }
.flash-ribbon { position: absolute; top: -8px; left: -8px; width: 100px; height: 100px; overflow: hidden; pointer-events: none; z-index: 2; }
.flash-accent { color: var(--red); }
.flash-actions { display: flex; justify-content: center; gap: 16px; }
.flash-btn { background: var(--red); border-color: var(--red); }
.flash-btn:hover { box-shadow: 0 8px 24px rgba(255,77,109,0.3); filter: brightness(1.1); }

/* ── CONTACT ── */
.section-contact {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}
.section-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 320px at 12% 25%, rgba(99,232,182,0.07), transparent 70%),
        radial-gradient(640px 320px at 88% 75%, rgba(99,145,232,0.07), transparent 70%);
    pointer-events: none;
}
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.contact-subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 30px;
}
.contact-points {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    gap: 14px;
}
.contact-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}
.contact-points svg { flex-shrink: 0; margin-top: 2px; }
.contact-points strong { color: var(--primary); font-weight: 600; }
.contact-praise {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}
.contact-stars { display: flex; gap: 2px; }
.contact-praise-text { font-size: 0.88rem; color: var(--text-dim); line-height: 1.45; }
.contact-praise-text strong { color: var(--text); font-weight: 600; }
.section-contact .contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

/* ── CONTACT ENVELOPE ── */
.contact-envelope {
    max-width: 240px;
    margin-bottom: 10px;
    animation: envFloat 6s ease-in-out infinite;
}
.env-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }
.env-sparkle { transform-origin: center; transform-box: fill-box; animation: envSparkle 2.6s ease-in-out infinite; }
.env-sparkle-1 { animation-delay: 0s; }
.env-sparkle-2 { animation-delay: 0.5s; }
.env-sparkle-3 { animation-delay: 1s; }
.env-letter { animation: envLetter 2.8s ease-in-out infinite; }
.env-seal-pulse { transform-origin: center; transform-box: fill-box; animation: envPulse 2s ease-out infinite; }
.env-stamp { animation: envStamp 4s ease-in-out infinite; }

@keyframes envFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes envSparkle {
    0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.05) rotate(20deg); }
}
@keyframes envLetter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes envPulse {
    0% { transform: scale(1); opacity: 0.9; }
    70%, 100% { transform: scale(2.2); opacity: 0; }
}
@keyframes envStamp { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

@media (max-width: 900px) {
    .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
    .contact-info { text-align: center; }
    .contact-info h2 { font-size: 1.8rem; }
    .contact-subtitle { margin-left: auto; margin-right: auto; }
    .contact-points { justify-items: center; }
    .contact-points li { text-align: left; max-width: 420px; }
    .contact-envelope { margin: 0 auto 10px; }
    .contact-praise { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .section-contact .contact-card { padding: 28px; }
}

/* ── BOTTOM CTA ── */
.section-cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-cta .container { position: relative; z-index: 2; }
.section-cta h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-cta p { font-size: 1rem; color: var(--text-dim); max-width: 520px; margin: 0 auto 32px; line-height: 1.6; }
.floating-subtle { opacity: 0.7; }

/* ── UTILITY CLASSES ── */
.w-100 { width: 100%; }
.jc-center { justify-content: center; }
.jc-flex-end { justify-content: flex-end; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.ai-center { align-items: center; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.text-primary { color: var(--primary); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-small { font-size: 0.8rem; }
.td-none { text-decoration: none; }
.mb-24 { margin-bottom: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-32 { margin-bottom: 32px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.form-group-last { margin-bottom: 24px; }
.btn-full { width: 100%; justify-content: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.link-muted { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; }
.link-primary { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-footer-text { text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.footer-tagline { color: var(--text-muted); font-size: 0.8rem; opacity: 0.7; }
.td-muted { color: var(--text-muted); }
.td-domain { font-weight: 600; }
.td-price { color: var(--primary); font-weight: 700; }
.td-sale { color: var(--red); }

/* ── CATALOG SITE CARD ── */
.instant-corner { position: absolute; top: 12px; right: 12px; z-index: 2; }
.site-card-title {
    font-size: 1.35rem;
    margin: 24px 0 8px;
    letter-spacing: -0.5px;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
}
.dr-badge-row { margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.dr-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-active);
    display: inline-flex;
    align-items: center;
}
.card-footer-catalog {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: auto;
    align-items: flex-end;
}
.price-col { display: flex; flex-direction: column; }
.price-main.price-sale { color: var(--red); }
.dash-container { padding: 36px 24px; }
.value-paid { color: var(--primary); }
.value-live { color: var(--gold); }
.value-spent { color: var(--text); }
.badge-live { margin-bottom: 4px; display: inline-block; }
.view-article-link { font-size: 0.75rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.order-status-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ── CART CLEANUP ── */
.cart-container { padding: 60px 24px; max-width: 1100px; }
.cart-page-header { text-align: left; margin-bottom: 40px; }
.cart-empty-card { text-align: center; padding: 60px; }
.cart-empty-icon { font-size: 3rem; margin-bottom: 20px; }
.cart-empty-desc { color: var(--text-muted); margin-bottom: 30px; }
.cart-layout-inner { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cart-items-col { display: grid; gap: 20px; }
.cart-item-row { display: flex; gap: 20px; align-items: center; padding: 20px; background: var(--surface); }
.cart-item-preview-box { width: 100px; height: 66px; background: var(--bg-2); border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.cart-preview-img { width: 100%; height: 100%; object-fit: cover; }
.cart-preview-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; opacity: 0.2; }
.cart-item-info { flex: 1; }
.cart-item-domain { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.cart-item-title { font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.cart-item-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.cart-item-price-col { text-align: right; min-width: 100px; }
.cart-item-amount { font-weight: 800; font-size: 1.2rem; margin-bottom: 4px; }
.cart-remove-link { color: var(--red); text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.cart-add-more { text-align: center; margin-top: 10px; }
.btn-add-more { background: transparent; color: #27ae60; border: 2px solid #27ae60; width: 100%; height: auto; padding: 12px; flex-direction: column; line-height: 1.2; }
.btn-add-more:hover { background: rgba(39,174,96,0.08); border-color: #27ae60; color: #27ae60; }
.add-more-title { font-size: 1rem; font-weight: 700; }
.add-more-sub { font-size: 0.75rem; font-weight: 400; opacity: 0.8; }
.cart-sidebar { position: sticky; top: 100px; }
.cart-summary-card { background: var(--bg-2); border-color: var(--primary); border-width: 1px; padding: 28px; box-shadow: var(--shadow-lg); }
.cart-summary-title { margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; color: var(--text-muted); }
.cart-summary-row-last { margin-bottom: 24px; }
.cart-summary-divider { margin-bottom: 24px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.cart-total-amount { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.cart-pay-btn { width: 100%; justify-content: center; height: 56px; font-size: 1.1rem; }
.cart-secure-note { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 16px; line-height: 1.4; }

/* ── PROCESS PAYMENT ── */
.process-pay-wrap { padding: 80px 24px; max-width: 560px; text-align: center; }
.process-pay-card { max-width: 100%; text-align: left; }
.process-pay-header { text-align: center; margin-bottom: 28px; }
.process-pay-icon { color: var(--primary); margin-bottom: 16px; }
.process-pay-desc { color: var(--text-dim); margin-top: 6px; }
.process-pay-summary { margin-bottom: 28px; }
.process-pay-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 16px; }

/* ── PAY ALL ── */
.pay-all-wrap { padding: 80px 24px; max-width: 560px; text-align: center; }
.pay-all-card { max-width: 100%; text-align: left; }
.pay-all-header { text-align: center; margin-bottom: 28px; }
.pay-all-icon { color: var(--primary); margin-bottom: 16px; }
.pay-all-desc { color: var(--text-dim); margin-top: 6px; }
.pay-all-summary { margin-bottom: 32px; background: var(--bg-2); }
.pay-all-count { color: var(--primary); }
.pay-all-total { font-size: 1.8rem; }
.pay-all-note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 24px; }

/* ── POST / BLOG ARTICLE ── */
.post-article { padding-top: 60px; }
.post-container { max-width: 800px; }
.post-back-row { margin-bottom: 32px; }
.back-blog-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.back-blog-link:hover { color: var(--primary); }
.back-blog-icon { width: 1rem; height: 1rem; fill: currentColor; }
.post-meta-row { margin-bottom: 16px; }
.post-date { color: var(--text-muted); }
.post-title { font-size: 3rem; font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 32px; }
.post-featured-img-wrap { margin-bottom: 48px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 21 / 9; }
.post-featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-dim); }
.post-footer-row { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.post-share-row { display: flex; gap: 12px; }
.post-share-label { color: var(--text-muted); }
.post-share-link { color: var(--primary); cursor: pointer; }
.post-related-section { background: var(--bg-2); border-top: 1px solid var(--border); }
.post-related-title { margin-bottom: 32px; font-size: 1.5rem; }
.post-related-card-title { font-size: 1rem; }
.post-read-more { color: var(--primary); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.post-read-more:hover { text-decoration: underline; }

/* ── THANK YOU ── */
.thank-you-wrap { padding: 120px 24px; text-align: center; max-width: 580px; }
.thank-you-icon { color: var(--primary); margin-bottom: 24px; }
.thank-you-title { font-size: 2.2rem; letter-spacing: -1px; margin-bottom: 14px; }
.thank-you-desc { color: var(--text-dim); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; }
.thank-you-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BLOG CARDS ── */
.blog-card-img-wrap { margin: -28px -28px 20px; height: 200px; overflow: hidden; border-bottom: 1px solid var(--border); }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card-img:hover { transform: scale(1.05); }

/* ── CHECKOUT CLEANUP ── */
.checkout-wrap { padding: 40px 24px; max-width: 800px; }
.checkout-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.back-catalog-link { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.back-catalog-link:hover { color: var(--primary); }
.checkout-card-form { max-width: 100%; padding: 32px; }
.checkout-top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.checkout-title { margin-bottom: 4px; font-size: 1.6rem; }
.checkout-subtitle { color: var(--text-muted); font-size: 0.95rem; }
.checkout-price-col { text-align: right; }
.checkout-price { font-size: 1.4rem; font-weight: 800; }
.checkout-price-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.checkout-files-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.checkout-file-group { margin: 0; }
.checkout-img-full { grid-column: span 2; }
.form-label-sm { font-size: 0.8rem; }
.drop-zone-icon { width: 1.5rem; height: 1.5rem; margin-bottom: 8px; opacity: 0.5; }
.drop-zone-text { font-size: 0.8rem; }
.form-input-sm { padding: 10px 14px; }
.form-select-sm { width: auto; padding: 6px 10px; font-size: 0.8rem; }
.checkout-editor-section { margin-bottom: 24px; }
.checkout-editor {
    height: 450px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    resize: vertical;
    overflow: auto;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}
.checkout-editor:focus-within { border-color: var(--border-active); box-shadow: 0 0 0 3px var(--primary-dim); }
.checkout-editor .ql-editor { min-height: 400px; font-size: 0.95rem; padding: 16px; }
.checkout-editor .ql-editor.ql-blank::before { color: var(--text-muted); font-style: normal; left: 16px; font-size: 0.9rem; }
.checkout-editor .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1.5px solid var(--border) !important;
    background: rgba(255,255,255,0.04);
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    padding: 8px;
    font-family: inherit;
}
.checkout-editor .ql-container.ql-snow {
    border: none !important;
    font-family: inherit;
    font-size: 0.95rem;
}
.checkout-editor .ql-stroke { stroke: var(--text-dim) !important; }
.checkout-editor .ql-fill { fill: var(--text-dim) !important; }
.checkout-editor .ql-picker { color: var(--text-dim) !important; }
.checkout-editor .ql-picker-options { background: var(--bg-2) !important; border-color: var(--border) !important; border-radius: 8px; box-shadow: var(--shadow); }
.checkout-editor .ql-picker-options .ql-picker-item { padding: 4px 8px; color: var(--text-dim); }
.checkout-editor .ql-picker-options .ql-picker-item:hover { background: var(--surface-hover); }
.checkout-editor .ql-active .ql-stroke { stroke: var(--primary) !important; }
.checkout-editor .ql-active .ql-fill { fill: var(--primary) !important; }
.checkout-editor .ql-formats button:hover .ql-stroke { stroke: var(--text) !important; }
.checkout-editor .ql-formats button:hover .ql-fill { fill: var(--text) !important; }
.checkout-editor .ql-formats button.ql-active:hover .ql-stroke { stroke: var(--primary) !important; }
.checkout-editor .ql-formats button.ql-active:hover .ql-fill { fill: var(--primary) !important; }
.checkout-editor .ql-toolbar.ql-snow button { border-radius: 6px; transition: background var(--transition); color: var(--text-dim); }
.checkout-editor .ql-toolbar.ql-snow button:hover { background: var(--surface-hover); color: var(--text); }
.checkout-editor .ql-toolbar.ql-snow button.ql-active { background: var(--primary-dim); color: var(--primary); }
.checkout-editor .ql-picker-label { border-radius: 6px; border: 1px solid transparent !important; transition: border-color var(--transition); color: var(--text-dim); }
.checkout-editor .ql-picker-label:hover { border-color: var(--border) !important; color: var(--text); }
.checkout-editor .ql-picker-label.ql-active { color: var(--primary); }
.checkout-btns-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.btn-checkout-cart { background: transparent; color: #27ae60; border: 2px solid #27ae60; flex-direction: column; height: auto; padding: 12px; line-height: 1.2; }
.btn-checkout-cart:hover { background: rgba(39,174,96,0.08); border-color: #27ae60; color: #27ae60; }
.checkout-cart-title { font-size: 1rem; font-weight: 700; }
.checkout-cart-sub { font-size: 0.75rem; font-weight: 400; opacity: 0.8; }
.btn-checkout-pay { justify-content: center; height: 64px; font-size: 1.1rem; }

@media (max-width: 600px) {
    .checkout-img-full { grid-column: span 1 !important; }
    .checkout-files-grid { grid-template-columns: 1fr !important; }
    .checkout-btns-row { grid-template-columns: 1fr !important; }
}
