/* =========================================================
   THOR MAN PSN — ULTRA PREMIUM MOBILE APP UI
   Full design replacement only
   Works with current HTML structure
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg: #06070b;
    --bg-2: #0b0d12;
    --panel: rgba(17, 20, 28, 0.78);
    --panel-2: rgba(255, 255, 255, 0.05);
    --panel-3: rgba(255, 255, 255, 0.08);

    --white: #ffffff;
    --text: rgba(255,255,255,0.94);
    --text-soft: rgba(255,255,255,0.74);
    --text-faint: rgba(255,255,255,0.46);

    --primary: #7c5cff;
    --primary-2: #9f8cff;
    --accent: #25d0ff;
    --accent-2: #6ee7ff;
    --success: #12c48b;
    --danger: #ff5b61;
    --warning: #ffbe3d;

    --line: rgba(255,255,255,0.08);
    --line-strong: rgba(255,255,255,0.14);

    --shadow-1: 0 8px 24px rgba(0,0,0,0.22);
    --shadow-2: 0 18px 44px rgba(0,0,0,0.32);
    --shadow-3: 0 28px 70px rgba(0,0,0,0.42);
    --glow-1: 0 16px 42px rgba(124, 92, 255, 0.18);
    --glow-2: 0 14px 36px rgba(37, 208, 255, 0.10);

    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 34px;
    --radius-pill: 999px;

    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 42px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    --fast: 180ms;
    --normal: 320ms;
    --slow: 560ms;
}

/* ================================
   Reset
================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    direction: rtl;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 85% 10%, rgba(124, 92, 255, 0.24), transparent 22%),
        radial-gradient(circle at 15% 90%, rgba(37, 208, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #040508 0%, #090b10 52%, #0d1016 100%);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.9;
}

body::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -90px;
    background: rgba(124, 92, 255, 0.18);
}

body::after {
    width: 260px;
    height: 260px;
    bottom: -90px;
    left: -70px;
    background: rgba(37, 208, 255, 0.12);
}

::selection {
    background: rgba(124, 92, 255, 0.28);
    color: #fff;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ================================
   Layout
================================ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 16px 12px 42px;
}

/* ================================
   Headings
================================ */
h1 {
    text-align: center;
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    color: transparent;
    background: linear-gradient(135deg, #ffffff 0%, #d9d7ff 36%, #8ecfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(124, 92, 255, 0.15);
}

h1::after {
    content: "";
    display: block;
    width: 92px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, transparent, var(--primary-2), var(--accent), transparent);
    box-shadow: 0 0 24px rgba(124, 92, 255, 0.24);
}

h2 {
    font-size: clamp(1.12rem, 4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 16px;
}

/* ================================
   Shared premium surfaces
================================ */
.controls,
.admin-section,
.tab-content,
.product-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
    border: 1px solid var(--line);
    box-shadow:
        var(--shadow-2),
        inset 0 1px 0 rgba(255,255,255,0.07),
        inset 0 -1px 0 rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* ================================
   Controls
================================ */
.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px;
    border-radius: var(--radius-md);
    position: sticky;
    top: 10px;
    z-index: 20;
    overflow: hidden;
}

.controls::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 35%, transparent 68%, rgba(255,255,255,0.03));
}

.search-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
}

/* ================================
   Inputs
================================ */
.filter-dropdown,
.search-input,
.admin-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 56px;
    padding: 16px 16px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    outline: none;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(0,0,0,0.18),
        0 8px 22px rgba(0,0,0,0.14);
    transition:
        transform var(--normal) var(--ease),
        border-color var(--normal) var(--ease-soft),
        box-shadow var(--normal) var(--ease-soft),
        background var(--normal) var(--ease-soft);
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}

#search,
#search-code,
#admin-password {
    padding-left: 54px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-faint);
}

input:hover,
select:hover,
textarea:hover,
.search-input:hover,
.admin-input:hover,
.filter-dropdown:hover {
    border-color: rgba(255,255,255,0.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
}

input:focus,
select:focus,
textarea:focus,
.search-input:focus,
.admin-input:focus,
.filter-dropdown:focus {
    transform: translateY(-1px);
    border-color: rgba(124, 92, 255, 0.42);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
    box-shadow:
        0 0 0 4px rgba(124,92,255,0.10),
        0 16px 36px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

select option {
    background: #0d1118;
    color: #fff;
}

/* ================================
   Icon buttons
================================ */
.search-clear-btn,
.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: var(--text-soft);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition:
        transform var(--normal) var(--ease),
        background var(--normal) var(--ease-soft),
        border-color var(--normal) var(--ease-soft),
        box-shadow var(--normal) var(--ease-soft);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.password-toggle {
    display: flex;
}

.search-clear-btn.show {
    display: flex;
}

.search-clear-btn:hover,
.password-toggle:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
    color: #fff;
}

.search-clear-btn:active,
.password-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

/* ================================
   Buttons
================================ */
.btn,
.btn-primary,
.btn-success,
.copy-button {
    width: 100%;
    min-height: 56px;
    padding: 15px 22px;
    border: none;
    outline: none;
    border-radius: 18px;
    cursor: pointer;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--normal) var(--ease),
        box-shadow var(--normal) var(--ease-soft),
        filter var(--normal) var(--ease-soft),
        opacity var(--normal) var(--ease-soft);
}

.btn::before,
.btn-primary::before,
.btn-success::before,
.copy-button::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.24), transparent 38%, transparent 72%, rgba(255,255,255,0.06));
}

.btn,
.btn-primary,
.copy-button {
    background: linear-gradient(135deg, #6c4dff 0%, #8b74ff 48%, #25d0ff 100%);
    box-shadow:
        0 16px 34px rgba(124,92,255,0.22),
        0 12px 26px rgba(37,208,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-success {
    background: linear-gradient(135deg, #08a86c, #12c48b);
    box-shadow:
        0 16px 34px rgba(18,196,139,0.20),
        inset 0 1px 0 rgba(255,255,255,0.16);
}

.btn:hover,
.btn-primary:hover,
.btn-success:hover,
.copy-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.btn:active,
.btn-primary:active,
.btn-success:active,
.copy-button:active {
    transform: scale(0.985);
}

/* ================================
   Product grid
================================ */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 34px;
}

/* ================================
   Product cards
================================ */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 18px;
    transition:
        transform var(--slow) var(--ease),
        box-shadow var(--slow) var(--ease-soft),
        border-color var(--normal) var(--ease-soft),
        background var(--normal) var(--ease-soft);
    animation: cardIn 650ms var(--ease) both;
}

.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 70ms; }
.product-card:nth-child(3) { animation-delay: 140ms; }
.product-card:nth-child(4) { animation-delay: 210ms; }
.product-card:nth-child(5) { animation-delay: 280ms; }
.product-card:nth-child(6) { animation-delay: 350ms; }
.product-card:nth-child(n+7) { animation-delay: 420ms; }

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), transparent 34%, transparent 70%, rgba(255,255,255,0.03));
}

.product-card::after {
    content: "";
    position: absolute;
    top: -130%;
    left: -40%;
    width: 58%;
    height: 320%;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    transform: rotate(20deg);
    opacity: 0;
    transition: left 1000ms var(--ease), opacity var(--normal) var(--ease-soft);
    pointer-events: none;
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-8px);
        border-color: rgba(255,255,255,0.14);
        background:
            linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
        box-shadow:
            var(--shadow-3),
            var(--glow-1),
            var(--glow-2),
            inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .product-card:hover::after {
        left: 125%;
        opacity: 1;
    }
}

.product-card:active {
    transform: scale(0.985);
}

.card-title {
    text-align: center;
    font-size: clamp(1.22rem, 4.4vw, 1.56rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
    
    /* ئەم ٥ دێڕەی خوارەوە وا دەکەن ناوەکە لە یەک لاین نەچێتە دەرەوە و (...) بۆ زیاد دەکات ئەگەر درێژ بوو */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    padding: 0 4px;
}

.card-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.card-label {
    color: var(--text-faint);
    font-weight: 500;
}

.card-field strong,
.card-field span:not(.card-label) {
    color: var(--white);
    font-weight: 600;
    word-break: break-word;
}

/* ================================
   Card Pricing (Inline Display)
================================ */
.card-header {
    margin-bottom: 18px;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.field-label {
    color: var(--text-faint);
    font-weight: 600;
    font-size: 0.90rem;
}

.field-value {
    color: var(--white);
    font-weight: 600;
}

.days-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.14),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.days-badge.good {
    color: #fff !important;
    background: linear-gradient(135deg, #08a86c, #12c48b);
    box-shadow:
        0 10px 22px rgba(18,196,139,0.20),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.days-badge.warning {
    color: #121212 !important;
    background: linear-gradient(135deg, #ffb938, #ffd56f);
    box-shadow:
        0 10px 22px rgba(255,190,61,0.22),
        inset 0 1px 0 rgba(255,255,255,0.16);
}

.days-badge.expired {
    color: #fff !important;
    background: linear-gradient(135deg, #ff4b57, #ff7078);
    box-shadow:
        0 10px 22px rgba(255,91,97,0.20),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.card-pricing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.price-row:last-child {
    border-bottom: none;
}

.price-label {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.price-status {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 6px 16px rgba(0,0,0,0.14),
        inset 0 1px 0 rgba(255,255,255,0.12);
    transition:
        transform var(--normal) var(--ease),
        box-shadow var(--normal) var(--ease-soft);
}

.price-status.sold {
    color: #fff !important;
    background: linear-gradient(135deg, #ff4b57, #ff7078);
    border-color: rgba(255,91,97,0.24);
    box-shadow:
        0 8px 20px rgba(255,91,97,0.18),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.price-status.available {
    color: #fff !important;
    background: linear-gradient(135deg, #08a86c, #12c48b);
    border-color: rgba(18,196,139,0.24);
    font-family: 'JetBrains Mono', monospace;
    box-shadow:
        0 8px 20px rgba(18,196,139,0.18),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

@media (hover: hover) {
    .price-status:hover {
        transform: translateY(-1px) scale(1.02);
    }
}

/* ================================
   Badges
================================ */
.status-tag,
.days-remaining {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 1.00rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.14);
    transition:
        transform var(--normal) var(--ease),
        box-shadow var(--normal) var(--ease-soft),
        filter var(--normal) var(--ease-soft);
}

.status-available {
    color: #fff;
    background: linear-gradient(135deg, #08a86c, #12c48b);
}

.status-sold {
    color: #fff;
    background: linear-gradient(135deg, #ff4b57, #ff7078);
}

.days-remaining {
    color: #121212 !important;
    background: linear-gradient(135deg, #ffb938, #ffd56f);
    font-family: 'JetBrains Mono', monospace;
    box-shadow:
        0 12px 26px rgba(255,190,61,0.22),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

@media (hover: hover) {
    .status-tag:hover,
    .days-remaining:hover {
        transform: translateY(-1px) scale(1.03);
    }
}

/* ================================
   Loading
================================ */
.loading {
    text-align: center;
    padding: 42px 18px;
    color: var(--text-soft);
}

.loading p {
    margin-top: 14px;
    color: var(--text-faint);
}

.spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.08);
    border-top-color: var(--primary-2);
    border-right-color: var(--accent);
    box-shadow: 0 0 24px rgba(124,92,255,0.16);
    animation: spin 850ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   Admin
================================ */
.admin-section {
    border-radius: 26px;
    padding: 18px;
    margin-bottom: 20px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#admin-dashboard {
    animation: fadeUp 450ms var(--ease) both;
}

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

/* ================================
   Tabs
================================ */
.tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    border-radius: 22px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.04);
    scrollbar-width: none;
}

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

.tab-btn {
    flex: 1 0 auto;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: var(--text-faint);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform var(--normal) var(--ease),
        background var(--normal) var(--ease-soft),
        color var(--normal) var(--ease-soft),
        box-shadow var(--normal) var(--ease-soft);
}

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

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(37,208,255,0.90));
    box-shadow:
        0 14px 28px rgba(124,92,255,0.18),
        inset 0 1px 0 rgba(255,255,255,0.16);
}

.tab-btn:active {
    transform: scale(0.985);
}

.tab-content {
    display: none;
    padding: 18px;
    border-radius: 26px;
}

.tab-content.active {
    display: block;
    animation: tabIn 420ms var(--ease) both;
}

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

/* ================================
   Existing helper classes
================================ */
.code-input {
    background: linear-gradient(180deg, rgba(124,92,255,0.14), rgba(124,92,255,0.08)) !important;
    border-color: rgba(124,92,255,0.18) !important;
    color: #d8d0ff !important;
    cursor: not-allowed;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
    font-family: 'JetBrains Mono', monospace;
}

.email-warning {
    display: none;
    border-radius: 18px;
    padding: 14px 16px;
    margin: 10px 0 2px;
    background: linear-gradient(180deg, rgba(255,91,97,0.14), rgba(255,91,97,0.08));
    border: 1px solid rgba(255,91,97,0.26);
    color: #ffd4d7;
    box-shadow: 0 12px 28px rgba(255,91,97,0.10);
    font-weight: 700;
    animation: shakeTiny 420ms ease;
}

.email-warning.show {
    display: block;
}

@keyframes shakeTiny {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.email-input.error {
    border-color: rgba(255,91,97,0.52) !important;
    box-shadow:
        0 0 0 4px rgba(255,91,97,0.08),
        0 14px 34px rgba(255,91,97,0.10),
        inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.checking-email {
    border-color: rgba(255,190,61,0.50) !important;
    box-shadow:
        0 0 0 4px rgba(255,190,61,0.08),
        0 14px 34px rgba(255,190,61,0.10),
        inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.date-with-days {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.date-with-days input[type="date"] {
    flex: 1;
    min-width: 0;
}

.days-box {
    min-width: 100px;
    height: 56px;
    padding: 0 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #111 !important;
    background: linear-gradient(135deg, #ffb938, #ffd56f);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 14px 28px rgba(255,190,61,0.18),
        inset 0 1px 0 rgba(255,255,255,0.18);
    transition:
        transform var(--normal) var(--ease),
        box-shadow var(--normal) var(--ease-soft),
        background var(--normal) var(--ease-soft);
}

.days-box.good {
    color: #fff !important;
    background: linear-gradient(135deg, #08a86c, #12c48b);
    box-shadow:
        0 14px 28px rgba(18,196,139,0.18),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

.days-box.expired {
    color: #fff !important;
    background: linear-gradient(135deg, #ff4b57, #ff7078);
    box-shadow:
        0 14px 28px rgba(255,91,97,0.18),
        inset 0 1px 0 rgba(255,255,255,0.14);
}

#search-results {
    margin-top: 18px;
}

/* ================================
   Focus
================================ */
*:focus-visible {
    outline: 2px solid rgba(124,92,255,0.82);
    outline-offset: 3px;
}

/* ================================
   Scrollbar
================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(124,92,255,0.52), rgba(37,208,255,0.40));
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ================================
   Responsive
================================ */
@media (min-width: 640px) {
    .container {
        padding: 22px 18px 52px;
    }

    .controls {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .product-card,
    .admin-section,
    .tab-content {
        padding: 22px;
    }

    .days-box {
        min-width: 112px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 28px 22px 62px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 14px 10px 30px;
    }

    .controls,
    .product-card,
    .admin-section,
    .tab-content {
        border-radius: 22px;
    }

    .product-card {
        padding: 16px;
    }

    .card-field {
        font-size: 0.91rem;
    }

    .btn,
    .btn-primary,
    .btn-success,
    .copy-button,
    input,
    select,
    textarea {
        min-height: 54px;
    }

    .tab-btn {
        min-height: 44px;
        padding: 11px 14px;
    }

    .date-with-days {
        gap: 8px;
    }

    .days-box {
        min-width: 88px;
        padding: 0 10px;
        font-size: 0.79rem;
    }
}

/* ================================
   Reduced motion
================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ================================
   Platform Navigation
================================ */
.platform-nav {
    display: flex;
    flex-direction: column; /* ڕیزکردنی دوگمەکان لە سەرەوە و خوارەوە */
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(18px);
}

.platforms-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* ========================================
   Platform Logos & Buttons Styling
======================================== */
/* ڕێکخستنی ناو دوگمەکە بۆ ئەوەی لۆگۆکە بەتەواوی بکەوێتە سەنتەر */
.platform-btn {
    flex: 1; /* ئەمە وا دەکات دوگمەکان وەک وێنەکە پانی شاشەکە پڕ بکەنەوە */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.09);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    color: rgba(255,255,255,0.5); /* ڕەنگی لۆگۆکان کاتێک چالاک نین */
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.platform-btn i {
    font-size: 2.2rem; /* گەورەیی لۆگۆکە */
    line-height: 1;
    transition: transform 0.3s ease;
}

/* ========================================
   1. PlayStation (ڕەنگی شینی فەرمی)
======================================== */
.platform-btn[data-platform="playstation"] {
    border-color: rgba(0, 67, 156, 0.3);
}
.platform-btn[data-platform="playstation"]:hover {
    background: rgba(0, 67, 156, 0.15);
    color: #fff;
}
.platform-btn[data-platform="playstation"].active {
    background: linear-gradient(135deg, #003791, #006FCD);
    border-color: #006FCD;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 67, 156, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ========================================
   2. Xbox (ڕەنگی سەوزی فەرمی)
======================================== */
.platform-btn[data-platform="xbox"] {
    border-color: rgba(16, 124, 16, 0.3);
}
.platform-btn[data-platform="xbox"]:hover {
    background: rgba(16, 124, 16, 0.15);
    color: #fff;
}
.platform-btn[data-platform="xbox"].active {
    background: linear-gradient(135deg, #0e6a0e, #107C10);
    border-color: #107C10;
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 124, 16, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ========================================
   3. Steam (ڕەنگی شینی تۆخی فەرمی)
======================================== */
.platform-btn[data-platform="steam"] {
    border-color: rgba(42, 71, 94, 0.3);
}
.platform-btn[data-platform="steam"]:hover {
    background: rgba(42, 71, 94, 0.15);
    color: #fff;
}
.platform-btn[data-platform="steam"].active {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border-color: #2a475e;
    color: #fff;
    box-shadow: 0 8px 24px rgba(42, 71, 94, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ========================================
   دوگمەی ALL
======================================== */
.platform-btn-all {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.09);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    color: rgba(255,255,255,0.5);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-btn-all:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* کاتێک ALL چالاکە (ڕەنگی تێکەڵاوی هەرسێ کۆمپانیاکە) */
.platform-btn-all.active {
    /* شینی پلەیستەیشن، سەوزی ئێکس بۆکس، شینی ستیم */
    background: linear-gradient(90deg, #006FCD 0%, #107C10 50%, #2a475e 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ئەنیمەیشنی لۆگۆکە کاتێک چالاکە */
.platform-btn.active i {
    transform: scale(1.15);
}

@media (max-width: 640px) {
    .platform-nav {
        gap: 8px;
        padding: 10px;
    }
    .platform-btn {
        min-height: 52px;
    }
    .platform-btn i {
        font-size: 1.9rem;
    }
}

/* ========================================
   ئەنیمەیشنی لۆگۆکە کاتێک چالاکە
======================================== */
.platform-btn.active i {
    transform: scale(1.15); /* کەمێک گەورە دەبێت کاتێک کرتەی لێ دەکرێت */
}

@media (max-width: 640px) {
    .platform-btn {
        min-height: 52px;
    }
    .platform-btn i {
        font-size: 1.9rem;
    }
}

/* Auto-Scrolling Rows */
.auto-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.platform-row {
    overflow: hidden;
}

.row-header {
    margin-bottom: 18px;
}

.row-header h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #d9d7ff 36%, #8ecfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-marquee {
    display: flex;
    gap: 16px;
    overflow-x: auto; /* ڕێگەدان بە سکڕۆڵی دەستی */
    overflow-y: hidden;
    position: relative;
    width: 100%;
    direction: ltr; /* هێشتنەوەی ئاراستە بۆ ئاسانکاری جاڤاسکریپت */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch; /* نەرمکردنی سکڕۆڵی دەست لە ئایفۆن */
    scrollbar-width: none; /* شاردنەوەی سکڕۆڵبار بۆ فایەرفۆکس */
    padding-bottom: 8px; /* بۆشایی خوارەوە بۆ ئەوەی سێبەرەکان نەبڕدرێن */
}

/* شاردنەوەی هێڵی سکڕۆڵبار بۆ کرۆم و سەفاری */
.scroll-marquee::-webkit-scrollbar {
    display: none;
}

.marquee-content {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    min-width: 100%;
    /* لێرەدا ئەنیمەیشنی CSS مان لابرد بۆ ئەوەی کراش نەکات */
}

/* ========================================
   بچووککردنەوەی کارتە سەرەکییەکان لەناو سکڕۆڵەکەدا
======================================== */
.marquee-content .product-card {
    width: 290px;
    min-width: 290px;
    padding: 14px;
    direction: rtl; /* گەڕاندنەوەی ئاراستەی نوسین بۆ کوردی */
    animation: none;
    margin: 0;
}

.marquee-content .card-title { font-size: 1.15rem; margin-bottom: 12px; }
.marquee-content .card-field { font-size: 0.85rem; margin: 6px 0; }
.marquee-content .days-badge { min-height: 28px; padding: 4px 10px; font-size: 0.85rem; }
.marquee-content .price-row { padding: 4px 0; }
.marquee-content .price-label { font-size: 0.85rem; }
.marquee-content .price-status { font-size: 0.9rem; padding: 4px 12px; }
.marquee-content .copy-button { min-height: 44px; padding: 10px 16px; font-size: 0.9rem; margin-top: 10px; }
.marquee-content .card-image { height: 130px; margin-bottom: 12px; }

@media (max-width: 640px) {
    .marquee-content .product-card {
        width: 260px;
        min-width: 260px;
        padding: 12px;
    }
}

/* Mini Cards */
.mini-card {
    min-width: 240px;
    max-width: 240px;
    height: 140px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 12px 28px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all var(--normal) var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transform: translateZ(0);
    will-change: transform;
}

.mini-card:hover {
    transform: translateY(-4px) translateZ(0) scale(1.02);
    border-color: rgba(124, 92, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(124,92,255,0.10), 0 20px 42px rgba(0,0,0,0.22);
}

.mini-type {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-code {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-2);
    letter-spacing: 0.05em;
}

.mini-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.mini-badge.good {
    background: rgba(18, 196, 139, 0.2);
    color: #12c48b;
}

.mini-badge.warning {
    background: rgba(255, 190, 61, 0.2);
    color: #ffbe3d;
}

.mini-badge.expired {
    background: rgba(255, 91, 97, 0.2);
    color: #ff5b61;
}

.mini-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

/* Platform Content */
.platform-content {
    animation: fadeIn 420ms var(--ease) both;
}

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

/* Card Image */
.card-image {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Highlight */
.highlight-pulse {
    animation: highlightPulse 1.5s ease-in-out 3;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.07);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(124,92,255,0.20), 0 0 42px rgba(124,92,255,0.32), var(--shadow-3);
        transform: scale(1.02);
    }
}

@media (max-width: 640px) {
    .platform-nav {
        gap: 8px;
        padding: 10px;
    }
    .platform-btn {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    .mini-card {
        min-width: 200px;
        height: 120px;
        padding: 14px;
    }
    .mini-type {
        font-size: 0.95rem;
    }
    .card-image {
        height: 140px;
    }
}

/* ========================================
   Yary Sardam Custom Logo
======================================== */
.logo-en {
    display: block;
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    line-height: 1.1;
}

.logo-ku {
    display: block;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    margin-top: 8px;
    font-weight: 700;
    color: var(--accent); /* ڕەنگێکی شینی کاڵی جوان بۆ کوردییەکە */
    text-shadow: 0 0 15px rgba(37, 208, 255, 0.4);
}

/* ========================================
   Announcement Marquee (نوسینە جوڵاوەکە)
======================================== */
.announcement-bar {
    width: 100%;
    background: rgba(255, 190, 61, 0.08);
    border: 1px solid rgba(255, 190, 61, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 0;
    margin-bottom: 24px;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 15px rgba(0,0,0,0.1);
}

.announcement-track {
    display: inline-block;
    white-space: nowrap;
    /* ئەنیمەیشنەکە لە چەپەوە بۆ ڕاست دەڕوات */
    animation: scrollLeftToRight 28s linear infinite;
}

.announcement-track span {
    color: #ffbe3d;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 30px;
    direction: rtl;
    display: inline-block;
}

@keyframes scrollLeftToRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

@media (max-width: 640px) {
    .announcement-bar {
        padding: 12px 0;
    }
    .announcement-track span {
        font-size: 0.9rem;
    }
}