/* Core Variables & Resets */
:root {
    --primary-color: #fca311;
    --text-color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.7);
    --wall-bg: url('texture1.jpg');
    --cordoli-bg: url('texture1.jpg');
    --banner-bg: url('banner.jpg');
}

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

body,
html {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: #121212;
    overflow-x: hidden;
    height: 100%;
}

/* Banner (behind everything) */
.top-banner {
    width: 100%;
    height: 100vh;
    background-image: var(--banner-bg);
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
    z-index: 1;
}

.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

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

.server-title {
    font-size: 6.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4ade80;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 #013b19, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 10px 20px rgba(0, 0, 0, 0.8);
}

.server-ip {
    position: relative;
    font-size: 1.8rem;
    font-weight: 600;
    color: #e0e0e0;
    letter-spacing: 2px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    transition: all 0.2s ease;
    text-shadow: 2px 2px 4px #000;
}

.server-ip:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Custom Tooltip */
.server-ip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: var(--primary-color);
    color: #000;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 100;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.1s;
    font-size: 1rem;
    font-weight: 800;
    border: 2px solid #000;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    text-shadow: none;
}

.server-ip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--primary-color) transparent;
}

.server-ip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Castle Container */
.castle-container {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: 65vh;
    display: flex;
    flex-direction: column;
}

/* Battlements Navigation */
.battlements-nav {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 120px;
    width: 100%;
    margin-bottom: -6px;
    z-index: 20;
    position: relative;
}

.battlement-btn {
    text-decoration: none;
    color: #fff;
    width: 350px;
    height: 100px;
    background-image: var(--cordoli-bg);
    background-size: 250px;
    background-position: top left;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    border: 6px solid #111;
    border-bottom: none;
    box-shadow: inset 0px 5px 15px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0px -5px 10px rgba(0, 0, 0, 0.6));
}

.battlement-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.battlement-btn span {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    letter-spacing: 2px;
}

.battlement-btn:hover span {
    color: var(--primary-color);
}

/* Solid Medieval Wall */
.castle-wall {
    width: 100%;
    min-height: 100vh;
    background-image: var(--wall-bg);
    background-size: 250px;
    background-position: top left;
    background-repeat: repeat;
    box-shadow: inset 0 -30px 40px -10px rgba(0, 0, 0, 0.9),
        0 -10px 20px rgba(0, 0, 0, 0.8);
    border-top: 6px solid #111;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

/* Store Content */
.store-content {
    width: 100%;
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.glass-panel h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px #000;
}

.glass-panel p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 50px;
    color: #e0e0e0;
}

.featured-packages {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.package-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    width: 300px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.package-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(252, 163, 17, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.package-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 1px 1px 0px #000;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #000;
}

.buy-btn {
    background: linear-gradient(135deg, var(--primary-color), #d08200);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #ffbc33, var(--primary-color));
}

/* Staff Layout */
.staff-content {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 120px auto;
    padding: 0 20px;
}

.role-header {
    background-color: #1e2025;
    /* Sfondo scuro elegante */
    border: 1px solid #294672;
    /* Bordo azzurro/blu sottile della reference */
    border-radius: 4px;
    padding: 12px 20px;
    margin-top: 50px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.role-header h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
}

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.staff-card {
    background-color: #1e2025;
    border: 1px solid #282a2e;
    /* Bordo quasi invisibile */
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    width: 310px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.staff-card:hover {
    transform: translateY(-5px);
    background-color: #2b2d31;
}

.staff-avatar-wrapper {
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.staff-avatar-wrapper img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #111;
}

.staff-info {
    display: flex;
    flex-direction: column;
}

.staff-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px #000;
}

.staff-role {
    font-size: 0.9rem;
    color: #b5bac1;
    font-weight: 600;
}

/* Home/About layout */
.home-content {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 40px auto;
    padding: 0 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

.about-text h1 {
    font-size: 3.6rem;
    margin-bottom: 14px;
    color: #4ade80; /* green */
}

.about-secondary {
    font-size: 1.6rem;
    margin-top: 12px;
    color: #e6eef8;
}

.about-desc,
.about-subtitle {
    color: #dfe7ee;
    margin-bottom: 16px;
    line-height: 1.6;
    text-shadow: 0 0 1px #000, 0 0 2px rgba(0, 0, 0, 0.35);
}

.about-screenshot {
    position: relative;
}

.about-screenshot .screenshot-preview {
    width: 100%;
    padding-top: 70%;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(4, 8, 20, 0.55), rgba(20, 40, 70, 0.95));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 20px 50px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Variante per immagini "solo foto" che devono entrare intere: */
.about-screenshot .screenshot-preview.image-only {
    /* Riempi completamente la card senza bordi neri; mantieni il soggetto centrato */
    padding-top: 62%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.about-screenshot .screenshot-meta {
    position: absolute;
    inset: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #f8fafc;
    text-shadow: 0 12px 38px rgba(0,0,0,0.45);
}

.screenshot-tag {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(74,222,128,0.15);
    color: #baf7be;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 18px;
    border: 1px solid rgba(74,222,128,0.2);
}

.about-screenshot h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.about-screenshot p {
    font-size: 1rem;
    max-width: 360px;
    line-height: 1.6;
}

.slots {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.slot {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 18px;
    border-radius: 8px;
    min-width: 0;
    flex: 1;
    text-align: center;
    color: #cfe6ff;
    font-weight: 700;
}

/* Modes section */
.modes-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 120px auto;
    padding: 0 20px;
    text-align: center;
}

.modes-title {
    font-size: 2.8rem;
    color: #4ade80; /* green */
    margin-bottom: 10px;
}

.modes-lead {
    color: #dfe8f2;
    margin-bottom: 30px;
}

.modes-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    user-select: none;
    cursor: grab;
}
 
.modes-carousel.active {
    cursor: grabbing;
}
 
.modes-carousel::-webkit-scrollbar {
    height: 12px;
}
.modes-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}
.modes-carousel::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.85);
    border-radius: 999px;
    border: 3px solid rgba(0, 0, 0, 0.1);
}
.modes-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 1);
}

.mode-card {
    position: relative;
    min-width: calc(50% - 10px);
    max-width: 540px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(12, 18, 33, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    scroll-snap-align: center;
    flex: 0 0 auto;
}

.mode-card .mode-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.78) saturate(1.05);
}

.mode-card .mode-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.7) 65%);
}

.mode-card .mode-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
    color: #f8fafc;
    text-align: left;
}

.mode-card .mode-name {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #4ade80;
    text-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.mode-card .mode-bullets,
.mode-card .mode-desc {
    display: grid;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: #dfe8f2;
}

.mode-card .mode-bullets span {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 10px 14px;
    display: inline-flex;
    width: fit-content;
}

.mode-card.coming-soon .mode-name {
    color: #ffd166;
}

.mode-card.coming-soon .mode-status {
    display: inline-flex;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,209,102,0.18);
    color: #ffd166;
    font-weight: 700;
}

.mode-card.coming-soon .mode-image {
    background: radial-gradient(circle at top left, rgba(255,209,102,0.16), transparent 30%),
                linear-gradient(135deg, rgba(28, 28, 46, 0.9), rgba(10, 10, 18, 0.95));
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .modes-carousel {
        padding: 0;
    }

    .mode-card {
        min-width: 100%;
        max-width: 100%;
        height: 380px;
    }
}

    left: 20px;
    font-size: 1.8rem;
    color: #4ade80; /* green */
    font-weight: 900;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.mode-card.secret .mode-name { color: #ffd166; }

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .mode-card {
        width: 100%;
    }
}

/* --- Store page specific styles (appended) --- */
.store-content {
    max-width: 1200px;
    margin: 60px auto 120px auto;
    padding: 0 20px;
}

.store-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.hidden { display: none !important; }

.sidebar-item.active { outline: 2px solid rgba(74,222,128,0.12); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25); }

.store-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-item {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 18px;
    border-radius: 12px;
    display:flex;
    gap:12px;
    align-items:center;
}

.sidebar-item img{ width:52px; height:52px; object-fit:cover; border-radius:8px;}

/* Slightly shift the rank sidebar icon to the right to improve framing */
#catRanks img { object-position: 52% center; transform: translateX(2px); }

/* Slightly reduce/zoom-out the rank image inside product cards */
.product-card[data-cat="ranks"] .product-ico img { width:70px; height:70px; }

/* product ico by category */
.product-card[data-cat="ranks"] .product-ico { background-image: url('assets/rank_icon.svg'); background-repeat:no-repeat; background-position:center; background-size:64px 64px; }
.product-card[data-cat="keys"] .product-ico { background-image: url('assets/key_icon.svg'); background-repeat:no-repeat; background-position:center; background-size:64px 64px; }

.store-main { background: transparent; }

.store-topbar{ display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:18px;}
.nickname-form label{ font-weight:700; display:block; margin-bottom:8px;}
.nick-row{ display:flex; gap:8px; align-items:center;}
.nick-row input{ padding:10px 12px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background:rgba(0,0,0,0.4); color:var(--text-color);}
.nick-row button{ padding:10px 14px; border-radius:8px; border:none; background:var(--primary-color); color:#000; font-weight:800; cursor:pointer;}
.nick-hint{ font-size:0.9rem; color:#cfe6ff; margin-top:8px;}

.player-panel{ display:flex; align-items:center; gap:12px; background:rgba(0,0,0,0.3); padding:8px 12px; border-radius:12px;}
.player-panel img{ width:48px; height:48px; border-radius:8px;}
.player-name{ font-weight:800; color:var(--primary-color);}
.logout-btn{ margin-left:8px; background:transparent; border:1px solid rgba(255,255,255,0.05); color:#e6f9ea; padding:6px 10px; border-radius:8px; cursor:pointer;}
.logout-btn:hover{ background:rgba(255,255,255,0.02); }

/* hide player-panel when aria-hidden=true to avoid empty avatar or logout button */
.player-panel[aria-hidden="true"] { display: none !important; }

.nick-center-prompt { display:flex; align-items:center; justify-content:center; padding:40px 0; }
.nick-prompt-card { background: linear-gradient(180deg, rgba(3,6,8,0.6), rgba(7,10,12,0.7)); padding:28px; border-radius:12px; text-align:center; color:#e6f9ea; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.nick-prompt-card h3 { margin:0 0 8px 0; }
.product-area { min-height: 320px; }

/* More stylish store visuals */
.store-sidebar { background: linear-gradient(180deg, rgba(2,6,3,0.6), rgba(4,8,6,0.75)); padding:18px; border-radius:12px; }
.sidebar-item { transition: transform .18s ease, box-shadow .18s ease; }
.sidebar-item:hover { transform: translateX(6px); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }

.product-card { transition: transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.7); }

.buy-btn { transition: transform .12s ease, box-shadow .12s ease; }
.buy-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }

/* tweak sidebar labels */
.sidebar-item span { font-weight:800; color:#dfffe8; letter-spacing:1px; }

/* make inputs look nicer */
input#centralNick { background: rgba(255,255,255,0.04); color: #e9fff3; border: 1px solid rgba(255,255,255,0.04); }
/* Layout adjustments to match the mock */
.store-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items:start; }
.store-sidebar { padding: 12px; background: transparent; }
.store-main { min-height: 520px; }

.store-topbar { display:flex; justify-content:flex-end; margin-bottom:8px; }
.store-topbar .nickname-form { display:none; }

.store-sidebar .sidebar-item { display:flex; align-items:center; gap:14px; background: rgba(10,30,12,0.6); padding:18px; margin-bottom:14px; border-radius:10px; cursor:pointer; border-left:6px solid rgba(255,255,255,0.02); overflow:hidden; background-clip: padding-box; }
.store-sidebar .sidebar-item img { width:56px; height:56px; object-fit:cover; background:transparent; border-radius:10px; box-shadow: 0 6px 18px rgba(0,0,0,0.5); display:block; }
.store-sidebar .sidebar-item span { font-size:18px; font-weight:800; color:#dfffe8; }

/* Make the rank sidebar icon show fully */
#catRanks img { object-fit: contain; object-position: center center; transform: none; }

.nick-center-prompt { height:420px; }
.auth-panel { width:720px; max-width:92%; margin:0 auto; background: linear-gradient(180deg, rgba(6,12,6,0.6), rgba(4,8,5,0.75)); padding:32px 36px; border-radius:12px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); color:#e9fff3; text-align:left; }
.auth-panel h1 { text-align:center; margin:0 0 18px 0; font-size:28px; letter-spacing:1px; }
.auth-label { display:block; font-size:13px; margin-bottom:8px; color:#bfeece; }
.auth-panel input { width:100%; padding:14px 16px; border-radius:8px; border:1px solid rgba(255,255,255,0.04); background: rgba(0,0,0,0.25); color:#e9fff3; margin-bottom:12px; }
.auth-hint { color:#9adfb9; font-size:13px; margin-bottom:14px; }
.buy-btn.large { width:100%; padding:14px 18px; background:linear-gradient(180deg,#0b7a1c,#086216); border-radius:8px; color:#072b06; font-weight:800; }
.buy-btn.large:hover { transform: none; box-shadow: 0 14px 30px rgba(6,90,20,0.35); }

/* product grid hidden until a category selected */
.product-grid { margin-top:18px; display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.product-card { background: rgba(6,12,8,0.45); padding:16px; border-radius:10px; color:#eafef0; }

/* small responsive tweaks */
@media (max-width:900px) {
    .store-grid { grid-template-columns: 1fr; }
    .store-sidebar { order:2; display:flex; gap:8px; }
    .nick-center-prompt { padding:20px 0; }
}



.store-title{ font-size:1.8rem; margin:10px 0 20px 0; color:#4ade80;}

.product-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px;}
.product-card{ background: linear-gradient(180deg, rgba(2,8,6,0.7), rgba(4,10,8,0.75)); padding:24px; border-radius:12px; text-align:center; border:1px solid rgba(255,255,255,0.02);} 
.product-ico{ height:88px; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.05)); border-radius:8px; margin-bottom:12px;}
.product-ico img { display:block; margin:0 auto; width:88px; height:88px; object-fit:cover; border-radius:12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.product-card h3{ margin-bottom:8px; color:#e6f9ea}
.price{ color: #a7f3d0; font-weight:800; margin-bottom:12px;}
.buy-btn{ background: linear-gradient(135deg, #16a34a, #84cc16); color:#002800; border:none; padding:12px 18px; border-radius:8px; font-weight:800; cursor:pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.6);} 
.buy-btn:disabled{ opacity:0.45; cursor:not-allowed; box-shadow:none;}

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

/* PayPal modal styles */
#paypalModal, #previewModal { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; z-index:9999; }
.pm-backdrop { position: absolute; inset:0; background:rgba(0,0,0,0.7); }
.pm-panel { position: relative; background: #072018; padding:24px; border-radius:18px; width:460px; max-width:92%; box-shadow:0 30px 90px rgba(0,0,0,0.75); color:#e6f9ea; z-index:2; }
.pm-close { position:absolute; right:14px; top:12px; background:transparent; border:none; color:#fff; font-size:24px; cursor:pointer; }
.pm-info { margin-top:14px; font-size:0.95rem; color:#cfe6ff; }
.pm-tag { color:#a5f3fc; font-weight:800; margin-bottom:14px; }
.preview-description { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius:14px; padding:16px; margin:16px 0; line-height:1.6; color:#e8fff3; }
.pm-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:18px; }
.preview-btn { flex:1; padding:12px 18px; border-radius:10px; border:none; cursor:pointer; font-weight:800; background: rgba(255,255,255,0.08); color:#eafef0; }
.preview-btn.primary { background: linear-gradient(135deg, #22c55e, #16a34a); color:#07200f; }
.preview-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,0.25); }

.pm-quantity {
    margin: 18px 0;
    text-align: left;
}

.pm-quantity label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #b9ffd8;
    letter-spacing: 0.5px;
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #84cc16);
    color: #07200f;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.quantity-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.quantity-controls input {
    width: 70px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    color: #eafef0;
    font-weight: 800;
}

.quantity-total {
    font-size: 0.95rem;
    color: #eafef0;
}

