@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,500;0,600;0,700;1,600;1,700&family=Barlow:wght@400;500;600&display=swap');

/* ==========================================================
   CONSOLE UI THEME
   Ultraviolet panels, cut corners, HUD brackets.
   Class names are unchanged, so it drops into your HTML as is.
   ========================================================== */

:root {
    --bg: #07070f;
    --panel: #11111f;
    --panel-2: #191933;
    --line: rgba(140, 130, 255, 0.18);
    --text: #eceaff;
    --muted: #8f8cb0;
    --accent: #7b61ff;
    --accent-hot: #ff3d81;
    --edge: linear-gradient(135deg, #7b61ff, #ff3d81);
    --on-accent: #ffffff;
    --grid: rgba(140, 130, 255, 0.07);

    /* aliases from the old file */
    --bg-color: var(--bg);
    --card-bg: var(--panel);
    --card-border: var(--line);
    --text-main: var(--text);
    --text-muted: var(--muted);
    --accent-neon: #9d8cff;
    --accent-blue: var(--accent);

    --cut: 18px;
    --cut-sm: 10px;
    --radius-lg: 0;
    --radius-md: 0;
    --transition: all 0.25s ease;

    --font-display: 'Chakra Petch', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

[data-theme="light"] {
    --bg: #eeedf8;
    --panel: #ffffff;
    --panel-2: #e4e2f6;
    --line: rgba(91, 61, 245, 0.2);
    --text: #1b1936;
    --muted: #5f5c82;
    --accent: #5b3df5;
    --accent-hot: #e0246a;
    --edge: linear-gradient(135deg, #5b3df5, #e0246a);
    --grid: rgba(91, 61, 245, 0.07);
    --accent-neon: #5b3df5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    position: relative;
}

/* Background: faint grid + two colour glows */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% -5%, rgba(123, 97, 255, 0.22), transparent 70%),
        radial-gradient(500px 350px at 5% 105%, rgba(255, 61, 129, 0.14), transparent 70%),
        linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 44px 44px;
}

:focus-visible {
    outline: 2px solid var(--accent-hot);
    outline-offset: 3px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6%;
    background: var(--panel);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--edge);
}

.logo-anchor {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--accent-hot);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher-wrapper {
    position: relative;
}

.lang-btn,
.theme-btn {
    background: var(--panel-2);
    border: 0;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
}

.lang-btn {
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
}

.theme-btn {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.lang-btn:hover,
.theme-btn:hover {
    background: var(--accent);
    color: var(--on-accent);
}

.flag-img {
    width: 22px;
    height: 15px;
    object-fit: cover;
}

.lang-dropdown {
    position: absolute;
    top: 115%;
    right: 0;
    background: var(--panel-2);
    border-left: 3px solid var(--accent-hot);
    width: 160px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    z-index: 110;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 11px 14px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s, padding 0.15s;
}

.lang-option:hover {
    background: var(--accent);
    color: var(--on-accent);
    padding-left: 20px;
}

/* ---------- HERO SLIDER ---------- */
.hero-section {
    max-width: 920px;
    margin: 44px auto 24px auto;
    padding: 0 20px;
}

.slider-container {
    position: relative;
    background: var(--edge);
    padding: 1.5px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.slider-container::before {
    content: "";
    position: absolute;
    inset: 1.5px;
    background:
        radial-gradient(500px 220px at 50% 0%, rgba(123, 97, 255, 0.25), transparent 75%),
        var(--panel);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.slider-container > * {
    position: relative;
    z-index: 1;
}

.slide {
    display: none;
    padding: 52px 40px 38px;
    text-align: center;
}

.slide.active {
    display: block;
    animation: slideIn 0.45s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.slide h1 span {
    color: var(--accent-hot);
}

.slide p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 26px auto;
    line-height: 1.55;
}

.badge-highlight {
    display: inline-block;
    background: var(--accent-hot);
    color: #fff;
    padding: 6px 18px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--panel-2);
    border: 0;
    color: var(--text);
    width: 42px;
    height: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--on-accent);
}

.prev-btn {
    left: 14px;
    clip-path: polygon(0 50%, 12px 0, 100% 0, 100% 100%, 12px 100%);
}

.next-btn {
    right: 14px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

/* Dots become progress segments */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-bottom: 22px;
}

.dot {
    width: 28px;
    height: 4px;
    background: var(--line);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: var(--muted);
}

.dot.active {
    background: var(--accent-hot);
    width: 54px;
}

/* ---------- CATEGORY SWITCHER ---------- */
.category-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.cat-btn {
    background: var(--panel-2);
    border: 0;
    color: var(--muted);
    padding: 13px 30px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: var(--transition);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.cat-btn i {
    font-size: 1rem;
}

.cat-btn:hover {
    background: var(--line);
    color: var(--text);
}

.cat-btn.active {
    background: var(--edge);
    color: #fff;
}

/* ---------- SECTION ---------- */
.cards-section {
    max-width: 960px;
    margin: 40px auto 70px;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--muted);
    font-size: 1rem;
}

/* ---------- CARDS ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
}

/* The gradient "edge" is the card itself; ::before is the face on top of it */
.psn-card {
    --cardcut: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    background: var(--line);
    padding: 22px 20px 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    clip-path: var(--cardcut);
}

.psn-card::before {
    content: "";
    position: absolute;
    inset: 1.5px;
    background:
        radial-gradient(180px 160px at 50% 38%, rgba(123, 97, 255, 0.2), transparent 75%),
        var(--panel);
    clip-path: var(--cardcut);
    z-index: 0;
    transition: var(--transition);
}

.psn-card > * {
    position: relative;
    z-index: 1;
}

.psn-card:hover {
    transform: translateY(-6px);
    background: var(--edge);
}

.psn-card:hover::before {
    background:
        radial-gradient(200px 180px at 50% 38%, rgba(255, 61, 129, 0.26), transparent 75%),
        var(--panel);
}

.psn-card.active {
    background: var(--edge);
}

.psn-card.active::before {
    background:
        radial-gradient(220px 200px at 50% 38%, rgba(123, 97, 255, 0.4), transparent 75%),
        var(--panel-2);
}

.psn-card.out-of-stock-card {
    opacity: 0.6;
    filter: grayscale(0.7);
}

.psn-card.out-of-stock-card:hover {
    transform: none;
    background: rgba(239, 68, 68, 0.6);
}

/* ---------- STOCK BADGES ---------- */
.psn-card > .stock-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.18);
    color: #10d99a;
}

.stock-badge.out-stock {
    background: rgba(239, 68, 68, 0.18);
    color: #ff6b6b;
}

[data-theme="light"] .stock-badge.in-stock { color: #067a57; }
[data-theme="light"] .stock-badge.out-stock { color: #c52a2a; }

.stock-dot {
    width: 7px;
    height: 7px;
    background-color: #10d99a;
    box-shadow: 0 0 8px #10d99a;
    animation: pulse 1.6s infinite;
}

.stock-dot.red {
    background-color: #ff6b6b;
    box-shadow: none;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- CARD IMAGE ---------- */
.card-img-wrapper {
    width: 100%;
    max-width: 170px;
    height: 220px;
    margin: 30px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.psn-card:hover .card-img-wrapper {
    transform: scale(1.06) rotate(-2deg);
}

.card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.5px;
}

.card-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .slide { padding: 40px 22px 30px; }
    .slide h1 { font-size: 1.8rem; }
    .slide p { font-size: 0.95rem; }
    .slider-btn { display: none; }
    .cat-btn { padding: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- GENERATOR SECTION ---------- */
.generator-section {
    max-width: 960px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.generator-box {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 35px 40px;
    position: relative;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* HUD Corners deco */
.hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--accent-hot);
    border-style: solid;
    z-index: 5;
}
.hud-corner.top-left { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.hud-corner.top-right { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.hud-corner.bottom-left { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.hud-corner.bottom-right { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.gen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
}

.gen-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.gen-header h3 i {
    color: var(--accent-hot);
}

.secure-badge {
    font-family: var(--font-display);
    font-size: 0.75rem;
    background: rgba(16, 217, 154, 0.12);
    color: #10d99a;
    padding: 5px 12px;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--muted);
}

.form-group label i {
    color: var(--accent-hot);
    margin-right: 6px;
}

.input-wrapper input {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.input-wrapper input:focus {
    border-color: var(--accent-hot);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 61, 129, 0.2);
}

/* Platform Options Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.platform-option {
    background: var(--panel-2);
    border: 1px solid var(--line);
    padding: 12px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-option:hover {
    border-color: var(--muted);
}

.platform-option.active {
    background: var(--edge);
    color: #fff;
    border-color: transparent;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    background: var(--edge);
    color: #fff;
    border: 0;
    padding: 16px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, opacity 0.2s;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    margin-top: 10px;
}

.generate-btn:hover {
    transform: scale(1.01);
    opacity: 0.95;
}

/* Terminal & Progress Console Screen */
.terminal-screen {
    background: #04040a;
    border: 1px solid var(--line);
    padding: 20px;
    margin-top: 20px;
    font-family: monospace;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--accent-hot);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.terminal-logs {
    height: 110px;
    overflow-y: auto;
    font-size: 0.82rem;
    color: #8f8cb0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--panel-2);
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--edge);
    transition: width 0.1s linear;
}

/* Result Box */
.result-box {
    margin-top: 20px;
    text-align: center;
    background: var(--panel-2);
    border: 1px solid var(--accent-hot);
    padding: 25px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    animation: fadeInResult 0.4s ease-out;
}

@keyframes fadeInResult {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-msg {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #10d99a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.code-display {
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--bg);
    padding: 12px;
    color: var(--text);
    border: 1px dashed var(--line);
    margin-bottom: 18px;
}

.verify-btn {
    background: #10d99a;
    color: #07070f;
    border: 0;
    padding: 15px 25px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.verify-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(16, 217, 154, 0.4);
}

@media (max-width: 768px) {
    .platform-grid { grid-template-columns: 1fr; }
    .generator-box { padding: 25px 20px; }
}

/* --- CARD GET BUTTON --- */
.card-get-btn {
    width: 100%;
    margin-top: 15px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.card-get-btn:hover {
    background: var(--accent-hot);
    color: #fff;
    border-color: var(--accent-hot);
}

/* --- MODAL POPUP STYLES --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: var(--panel);
    border: 1px solid var(--line);
    width: 100%;
    max-width: 520px;
    padding: 30px;
    position: relative;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.modal-header h3 i {
    color: var(--accent-hot);
}

.close-modal-btn {
    background: var(--panel-2);
    border: 0;
    color: var(--muted);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.close-modal-btn:hover {
    background: var(--accent-hot);
    color: #fff;
}


/* --- CARD GET BUTTON --- */
.card-get-btn {
    width: 100%;
    margin-top: 15px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.card-get-btn:hover {
    background: var(--accent-hot);
    color: #fff;
    border-color: var(--accent-hot);
}

/* --- MODAL POPUP STYLES --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: var(--panel);
    border: 1px solid var(--line);
    width: 100%;
    max-width: 520px;
    padding: 30px;
    position: relative;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.modal-header h3 i {
    color: var(--accent-hot);
}

.close-modal-btn {
    background: var(--panel-2);
    border: 0;
    color: var(--muted);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.close-modal-btn:hover {
    background: var(--accent-hot);
    color: #fff;
}


/* --- MODAL POPUP STYLES --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 15, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex !important;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: var(--panel);
    border: 1px solid var(--line);
    width: 100%;
    max-width: 520px;
    padding: 30px;
    position: relative;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.modal-header h3 i {
    color: var(--accent-hot);
}

.close-modal-btn {
    background: var(--panel-2);
    border: 0;
    color: var(--muted);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.close-modal-btn:hover {
    background: var(--accent-hot);
    color: #fff;
}
/* --- MODAL ITEM PREVIEW --- */
.selected-item-preview {
    background: var(--panel-2);
    border: 1px solid var(--line);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    margin-bottom: 20px;
}

.modal-preview-img {
    width: 45px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.modal-preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.preview-label {
    font-size: 0.82rem;
    color: var(--muted);
}

.preview-status {
    font-size: 0.75rem;
    color: #10d99a;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* --- BLURRED CODE & SHOW BTN --- */
.code-container-blur {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.blurred-code {
    filter: blur(6px);
    user-select: none;
    transition: filter 0.3s ease;
    background: var(--bg);
    padding: 14px;
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
    border: 1px dashed var(--line);
    text-align: center;
}

.show-code-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-hot);
    color: #fff;
    border: 0;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    box-shadow: 0 5px 15px rgba(255, 61, 129, 0.4);
}

.show-code-btn:hover {
    background: #fff;
    color: var(--bg);
}

.result-instruction {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 12px;
}

/* --- CATEGORY SWITCHER WITH IMAGES --- */
.category-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.cat-btn {
    background: var(--panel-2);
    border: 0;
    color: var(--muted);
    padding: 10px 22px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.cat-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

.cat-btn:hover {
    background: var(--line);
    color: var(--text);
}

.cat-btn:hover .cat-icon-img {
    transform: scale(1.1);
}

.cat-btn.active {
    background: var(--edge);
    color: #fff;
}
/* فلترة الصور باش تتبع لون النص فـ الأزرار */

/* --- HOW IT WORKS SECTION --- */
.how-it-works-section {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 20px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 30px 24px;
    position: relative;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--accent-hot);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--line);
    font-style: italic;
}

.step-icon {
    font-size: 1.8rem;
    color: var(--accent-hot);
    margin-bottom: 15px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --- FAQ SECTION --- */
.faq-section {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.faq-item:hover {
    border-color: var(--muted);
}

.faq-question {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--accent-hot);
}

.faq-answer {
    padding: 0 22px 18px 22px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
    border-top: 1px dashed var(--line);
    margin-top: 5px;
    padding-top: 12px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* --- FOOTER SECTION --- */
.footer-section {
    background: var(--panel);
    border-top: 2px solid var(--edge);
    margin-top: 80px;
    padding: 50px 20px 20px 20px;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.5;
    max-width: 320px;
}

.footer-links h4, .footer-disclaimer h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-hot);
    padding-left: 5px;
}

.footer-disclaimer p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}