/**
 * ============================================================
 * CSS TRANG PUBLIC - DARK MODE PREMIUM v2
 * ============================================================
 * Theme: Dark mode với gradient tím-xanh
 * Font: Inter (Google Fonts)
 * Responsive: Mobile-first (320px → 1280px+)
 * ============================================================
 */

/* ====== CSS RESET & VARIABLES ====== */
:root {
    --primary: #7C3AED;
    --primary-light: #8B5CF6;
    --primary-dark: #6D28D9;
    --secondary: #2563EB;
    --secondary-light: #3B82F6;
    --accent: #06B6D4;
    --accent-green: #10B981;

    --bg-primary: #0B0F1A;
    --bg-secondary: #111827;
    --bg-card: #1E2433;
    --bg-card-hover: #263244;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-bg: linear-gradient(180deg, #0B0F1A 0%, #111827 50%, #0B0F1A 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    --container-max: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ====== CONTAINER ====== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== HEADER ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(11, 15, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.logo-icon.small {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.rate-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.rate-badge:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
}

.rate-badge i {
    color: var(--accent-green);
}

.rate-badge strong {
    color: var(--accent-green);
    font-weight: 700;
}

.header-glow {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

/* ====== HERO SECTION ====== */
.hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ====== PRODUCTS SECTION ====== */
.products-section {
    padding: 40px 0 80px;
    position: relative;
}

/* ====== CALCULATOR TAB PANE ====== */
.calculator-panel {
    background: #1e2638;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calc-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.calc-modes {
    display: flex;
    gap: 8px;
}

.calc-mode-btn {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-mode-btn.active, .calc-mode-btn:hover {
    background: #3b82f6;
    color: white;
}

.calc-input {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 16px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    margin-bottom: 20px;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.calc-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-result {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

/* ====== TABS NAVIGATION ====== */
.tabs-wrapper {
    margin-bottom: 32px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.tabs-wrapper:hover {
    border-color: var(--border-light);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tabs-nav {
    display: flex;
    gap: 8px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}



.tab-btn i {
    font-size: 0.85rem;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ====== TAB CONTENT ====== */
.tab-pane {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-dim);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* ====== CARD LAYOUT ====== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* === Product Card === */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-card), 0 0 30px rgba(124, 58, 237, 0.08);
}

/* === Card Image - Hiện full ảnh === */
.card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #151b2d 0%, #1a2236 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.06);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    color: var(--text-dim);
    font-size: 2.5rem;
}

/* === Card Body === */
.card-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Card Prices - Bank & Card === */
.card-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.price-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.price-label i {
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.price-value {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Bank price style */
.price-bank {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.price-bank .price-label { color: #6EE7B7; }
.price-bank .price-label i { color: #34D399; }
.price-bank .price-value { color: #10B981; }

/* Card price style */
.price-card {
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.15);
}

.price-card .price-label { color: #FDBA74; }
.price-card .price-label i { color: #FB923C; }
.price-card .price-value { color: #F97316; }

/* Robux price style */
.price-robux {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-robux .price-label { color: var(--text-secondary); }
.price-robux .price-label svg { fill: #FFFFFF; }
.price-robux .price-value { color: #FFFFFF; }

/* Single price (khi tắt rate) */
.card-price-single {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-price-single svg {
    color: #FFFFFF;
}

/* ====== LIST LAYOUT ====== */
.products-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(124, 58, 237, 0.06);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.list-col-prices {
    display: flex;
    gap: 32px;
    text-align: right;
}

.list-col-prices span {
    min-width: 90px;
    text-align: right;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.list-item:hover {
    background: var(--bg-glass-hover);
}

.list-item.even {
    background: rgba(255, 255, 255, 0.01);
}

.list-item.even:hover {
    background: var(--bg-glass-hover);
}

.list-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.92rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item-name i {
    color: var(--primary-light);
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.list-item:hover .list-item-name i {
    transform: translateX(3px);
    color: var(--accent);
}

/* List dual prices */
.list-item-prices {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}

.list-price-bank {
    min-width: 90px;
    text-align: right;
    font-weight: 700;
    font-size: 0.88rem;
    color: #10B981;
    white-space: nowrap;
}

.list-price-card {
    min-width: 90px;
    text-align: right;
    font-weight: 700;
    font-size: 0.88rem;
    color: #F97316;
    white-space: nowrap;
}

/* ====== FOOTER ====== */
.footer {
    padding: 60px 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links li:hover {
    color: var(--primary-light);
}

.footer-links li i {
    width: 16px;
    text-align: center;
    color: var(--primary-light);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ====== CUSTOM SCROLLBAR ====== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ====== RESPONSIVE ====== */

/* Tablet (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header-content {
        flex-direction: row;
    }

    .rate-badge {
        padding: 6px 12px;
    }

    .rate-badge span {
        font-size: 0.8rem;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .list-item {
        padding: 12px 16px;
    }

    .list-header {
        padding: 12px 16px;
    }

    .list-col-prices {
        gap: 16px;
    }

    .list-item-prices {
        gap: 16px;
    }

    .list-price-bank,
    .list-price-card {
        min-width: 70px;
        font-size: 0.8rem;
    }

    .list-col-prices span {
        min-width: 70px;
    }
}

/* Mobile (320px-480px) */
@media (max-width: 480px) {
    :root {
        --header-height: auto;
    }

    .header-content {
        padding: 5px 0;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header-info {
        width: auto;
        margin-left: auto;
    }

    .rate-badge {
        width: auto;
        padding: 6px 12px;
        font-size: 0.72rem;
        border-radius: var(--radius-full);
        white-space: nowrap;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-tagline {
        display: none;
    }

    .hero {
        padding: 110px 0 30px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card-image {
        min-height: 100px;
    }

    .card-body {
        padding: 10px 12px 14px;
    }

    .card-title {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }

    .price-row {
        padding: 5px 8px;
    }

    .price-label {
        font-size: 0.72rem;
    }

    .price-value {
        font-size: 0.78rem;
    }

    .card-prices {
        gap: 4px;
    }

    .tabs-nav {
        gap: 4px;
        padding: 4px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .tab-btn i {
        display: none;
    }

    .list-item-name {
        font-size: 0.82rem;
    }

    .list-col-prices {
        gap: 10px;
    }

    .list-item-prices {
        gap: 10px;
    }

    .list-price-bank,
    .list-price-card {
        min-width: 55px;
        font-size: 0.75rem;
    }

    .list-col-prices span {
        min-width: 55px;
        font-size: 0.72rem;
    }


}

/* Large screens (1280px+) */
@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ====== ANIMATIONS ====== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
    }
}

/* ====== SELECTION ====== */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: white;
}

/* ====== SKELETON LOADING ====== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* ====== CATALOG LAYOUT ====== */
.rate-box { min-width: 150px; padding: 9px 13px; border: 1px solid rgba(167, 139, 250, .6); border-radius: 12px; background: rgba(31, 25, 73, .78); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); text-align: right; }
.rate-box-label { display: block; color: #C4B5FD; font-size: .62rem; font-weight: 700; letter-spacing: .07em; }
.rate-box strong { display: block; margin-top: 3px; color: #F5F3FF; font-size: .83rem; }
.section-eyebrow { color: #A78BFA; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.hero { padding: 150px 0 72px; }
.hero-content { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-title { margin-top: 10px; }
.catalog-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
.catalog-tabs::-webkit-scrollbar { display: none; }
.catalog-tabs .tab-btn { flex: 0 0 auto; }
.tab-btn.active { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(124, 58, 237, .3); }
.tab-btn.active .tab-count { background: rgba(255,255,255,.18); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.calculator-panel { display: grid; grid-template-columns: 1.1fr .9fr 1fr; align-items: end; gap: 22px; padding: 28px; border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(37,99,235,.11)); }
.calc-intro h3, .catalog-section-header h3 { margin-top: 6px; color: var(--text-primary); font-size: 1.45rem; }
.calc-intro p, .catalog-count { margin-top: 5px; color: var(--text-muted); font-size: .85rem; }
.calc-control { min-width: 0; }
.calc-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: .8rem; font-weight: 600; }
.calc-input, .product-search { width: 100%; border: 1px solid var(--border-light); border-radius: 10px; background: rgba(11, 15, 26, .72); color: var(--text-primary); font: inherit; outline: none; }
.calc-input { padding: 13px 14px; font-size: 1rem; }
.calc-input:focus, .product-search:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.16); }
.calc-result { min-height: 62px; padding: 13px 15px; border-radius: 11px; background: rgba(8, 47, 73, .4); border: 1px solid rgba(34, 211, 238, .18); }
.calc-result .calc-main { color: #F8FAFC; font-size: .94rem; font-weight: 700; }
.calc-result .calc-meta { margin-top: 4px; color: #BAE6FD; font-size: .77rem; }
.catalog-section-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.product-search-wrap { position: relative; display: block; width: min(100%, 270px); }
.product-search-wrap i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--text-dim); font-size: .8rem; pointer-events: none; }
.product-search { padding: 11px 12px 11px 34px; font-size: .84rem; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-grid .product-card { min-width: 0; }
.catalog-grid .product-card[hidden] { display: none !important; }
.catalog-grid .card-image { aspect-ratio: 1 / .78; min-height: 0; }
.catalog-grid .card-image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-grid .card-body { padding: 12px; }
.catalog-grid .card-title { margin-bottom: 9px; font-size: .9rem; }
.catalog-grid .card-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0; }
.catalog-grid .price-row { display: block; min-width: 0; padding: 6px 3px; text-align: center; }
.catalog-grid .price-label { display: block; font-size: .58rem; }
.catalog-grid .price-value { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; font-size: .65rem; }
.catalog-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 24px; }
.catalog-pagination button { min-width: 34px; padding: 7px 10px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: .8rem; }
.catalog-pagination button.active { border-color: var(--primary-light); background: var(--primary); color: #fff; }
.catalog-pagination button:disabled { cursor: default; opacity: .45; }
.catalog-empty-search { padding: 34px; color: var(--text-muted); text-align: center; }

@media (max-width: 900px) { .calculator-panel { grid-template-columns: 1fr 1fr; } .calc-result { grid-column: span 2; } .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rate-box { min-width: auto; padding: 7px 9px; } .rate-box-label { display: none; } .rate-box strong { margin: 0; font-size: .72rem; } .hero { padding: 118px 0 42px; } .calculator-panel { grid-template-columns: 1fr; gap: 15px; padding: 19px; } .calc-result { grid-column: auto; } .catalog-section-header { align-items: stretch; flex-direction: column; margin-bottom: 16px; } .product-search-wrap { width: 100%; } .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .catalog-grid .card-title { font-size: .8rem; } .catalog-grid .card-prices { grid-template-columns: 1fr; } .catalog-grid .price-row { display: flex; justify-content: space-between; padding: 5px 7px; text-align: left; } .catalog-grid .price-label, .catalog-grid .price-value { display: inline; font-size: .66rem; } .catalog-grid .price-value { margin: 0; } }
