/* === CS2 WCS Shop Styles === */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ffaa77;
    --bg: #0a0a0f;
    --bg-card: #12121f;
    --bg-hover: #1a1a2e;
    --bg-input: #0d0d15;
    --text: #ffffff;
    --text-muted: #8b8b9e;
    --text-dim: #5a5a6e;
    --border: #1e1e35;
    --border-hover: #2a2a4e;
    --success: #2ed573;
    --danger: #ff4757;
    --warning: #ffa502;
    --info: #1e90ff;
    --gradient-1: #ff6b35;
    --gradient-2: #ff8c42;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(255,107,53,0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.02); }

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(255,107,53,0.4));
}

.logo-accent {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255,107,53,0.3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(255,107,53,0.1);
}

.nav-admin {
    color: var(--warning);
    border: 1px solid rgba(255,165,2,0.2);
}

.nav-admin:hover {
    background: rgba(255,165,2,0.1);
    border-color: rgba(255,165,2,0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,107,53,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(30,144,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(142,68,173,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6b35' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #ffcc80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255,107,53,0.3));
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

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

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255,107,53,0.3), 0 0 0 1px rgba(255,107,53,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,107,53,0.4), 0 0 0 1px rgba(255,107,53,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hover);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255,107,53,0.05);
    transform: translateY(-3px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === SECTIONS === */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === PRODUCTS === */
.products { background: var(--bg); }

.categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 28px;
    border-radius: 30px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.category-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

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

.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 16px;
    grid-column: 1 / -1;
}

/* === PRODUCT CARD === */
.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before { opacity: 1; }

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow), var(--shadow);
}

.product-header {
    padding: 32px 28px;
    text-align: center;
    position: relative;
}

.product-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(-5deg);
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    min-height: 45px;
}

.product-footer {
    padding: 24px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
}

.product-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255,107,53,0.2);
}

.product-btn {
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.product-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}

/* === HOW IT WORKS === */
.how { background: var(--bg-card); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.step-icon {
    font-size: 48px;
    margin: 20px 0 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* === STATUS CHECK === */
.status-check { background: var(--bg); }

.check-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.check-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.check-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.check-form input::placeholder { color: var(--text-dim); }

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

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,107,53,0.08);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255,107,53,0.15);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow), 0 25px 50px rgba(0,0,0,0.5);
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-wide { max-width: 900px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255,71,87,0.2);
    color: var(--danger);
}

.modal-header {
    padding: 28px 28px 0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-body {
    padding: 24px 28px;
}

.modal-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === FORM === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 12px;
}

.form-group small a {
    color: var(--primary);
    text-decoration: none;
}

.form-group small a:hover { text-decoration: underline; }

/* === PRODUCT PREVIEW === */
.product-preview {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

/* === PAYMENT === */
.payment-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.payment-info h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-code {
    background: var(--bg);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.payment-code .label {
    color: var(--text-muted);
    font-size: 13px;
}

.payment-code .code {
    font-family: 'SF Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    flex: 1;
}

.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.payment-amount {
    font-size: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.payment-amount .label { color: var(--text-muted); font-size: 13px; display: block; margin-bottom: 4px; }
.payment-amount .amount { color: var(--primary); font-weight: 800; font-size: 28px; }

.payment-instructions {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.payment-instructions h4 {
    margin-bottom: 12px;
    font-size: 14px;
}

.payment-instructions ol {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.payment-instructions li { margin-bottom: 6px; }
.payment-instructions strong { color: var(--primary); }

.payment-widget iframe {
    border-radius: 16px;
    background: var(--bg);
    width: 100%;
    height: 450px;
}

/* === ORDER STATUS RESULT === */
#orderStatusResult {
    max-width: 560px;
    margin: 24px auto 0;
}

.status-result {
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

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

/* === TOAST === */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text);
    padding: 16px 32px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    font-weight: 500;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .payment-body { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
    .products-grid { grid-template-columns: 1fr; }
    .check-form { flex-direction: column; }
    .check-form .btn { width: 100%; }
    .modal-content { margin: 10px; }
    .modal-footer { flex-direction: column; }
    .modal-footer .btn { width: 100%; justify-content: center; }
    section { padding: 60px 0; }
    .footer-links { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .product-card { border-radius: 16px; }
    .product-header { padding: 24px 20px; }
    .product-footer { padding: 20px; flex-direction: column; gap: 12px; }
    .step-card { padding: 30px 20px; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* === SELECTION === */
::selection {
    background: rgba(255,107,53,0.3);
    color: var(--text);
}
