/* ==========================================
   ORDERNOW PAGE — PLANS SECTION
========================================== */

/* ── Section shell ─────────────────────── */
.ordernow-section {
    position: relative;
    min-height: 100vh;
    padding: 110px 5% 120px;
    background: #050816;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Ambient orbs ─────────────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 14s ease-in-out infinite alternate;
}
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
    top: -120px; left: -140px;
    animation-delay: 0s;
}
.orb-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
    top: 30%; right: -100px;
    animation-delay: -5s;
}
.orb-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(56,189,248,.10) 0%, transparent 70%);
    bottom: 60px; left: 30%;
    animation-delay: -9s;
}
@keyframes orbDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.08); }
}

/* ── Particle canvas ──────────────────── */
#orderParticles {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Section header ───────────────────── */
.on-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 72px;
}

.on-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(37,99,235,.10);
    border: 1px solid rgba(59,130,246,.28);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    animation: tagPulse 3s ease-in-out infinite;
}

.on-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.on-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.on-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Cards grid ───────────────────────── */
.on-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    width: 100%;
    align-items: start;
    perspective: 1200px;
}

/* ── Base card ────────────────────────── */
.on-card {
    position: relative;
    background: rgba(11, 18, 38, 0.55);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 22px;
    padding: 40px 32px 36px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    cursor: default;

    /* Scroll reveal INITIAL state */
    opacity: 0;
    transform: translateY(70px) rotateX(16deg) scale(.94);
    filter: blur(5px);
    transform-style: preserve-3d;

    /* Base transition (pre-reveal) */
    transition: opacity .75s cubic-bezier(.22,1,.36,1),
                transform .75s cubic-bezier(.22,1,.36,1),
                filter .5s ease,
                box-shadow .35s ease,
                border-color .35s ease,
                background .35s ease;
}

/* REVEALED state */
.on-card.card-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px);
}

/* Stagger */
.on-card:nth-child(1) { transition-delay: 0.0s; }
.on-card:nth-child(2) { transition-delay: 0.16s; }
.on-card:nth-child(3) { transition-delay: 0.32s; }

/* ── Top animated border line ─────────── */
.card-top-line {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    transition: width .45s cubic-bezier(.25,1,.5,1);
    z-index: 5;
}
.coal-card .card-top-line    { background: linear-gradient(90deg, transparent, #6b7280, #9ca3af, transparent); }
.iron-card .card-top-line    { background: linear-gradient(90deg, transparent, #60a5fa, #93c5fd, transparent); }
.diamond-card .card-top-line { background: linear-gradient(90deg, transparent, #38bdf8, #a78bfa, #f472b6, transparent); }
.on-card:hover .card-top-line { width: 100%; }

/* ── Card hover states ────────────────── */
.coal-card:hover {
    border-color: rgba(156,163,175,.25);
    background: rgba(17,24,42,.75);
    box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 30px rgba(107,114,128,.08);
}
.iron-card:hover {
    border-color: rgba(59,130,246,.28);
    background: rgba(17,24,42,.78);
    box-shadow: 0 35px 70px rgba(0,0,0,.6), 0 0 40px rgba(37,99,235,.15);
}
.diamond-card:hover {
    border-color: rgba(124,58,237,.3);
    background: rgba(17,24,42,.78);
    box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 35px rgba(124,58,237,.14);
}

/* ── Featured iron card extras ────────── */
.featured-card {
    border-color: rgba(59,130,246,.22);
    background: rgba(13,22,50,.65);
    box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 35px rgba(37,99,235,.10);
}

.popular-ribbon {
    position: absolute;
    top: 20px; right: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(37,99,235,.45), 0 0 18px rgba(124,58,237,.3);
    z-index: 6;
    animation: ribbonPulse 2.8s ease-in-out infinite;
}
@keyframes ribbonPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(37,99,235,.45), 0 0 18px rgba(124,58,237,.3); }
    50%       { box-shadow: 0 4px 20px rgba(37,99,235,.6),  0 0 28px rgba(124,58,237,.5); }
}

/* ── Ore wrap ─────────────────────────── */
.on-ore-wrap {
    position: relative;
    width: 80px; height: 80px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* ── Floating ore icon ────────────────── */
.on-ore-img {
    width: 80px; height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 0px transparent);
    /* continuous float animation */
    animation: oreFloat 3.6s ease-in-out infinite;
    transition: filter .4s ease;
}
.coal-card    .on-ore-img { animation-delay: 0s; }
.iron-card    .on-ore-img { animation-delay: -1.2s; }
.diamond-card .on-ore-img { animation-delay: -2.4s; }

@keyframes oreFloat {
    0%, 100% { transform: translateY(0px)  rotate(-1deg) scale(1); }
    40%       { transform: translateY(-9px) rotate(1.5deg) scale(1.06); }
    70%       { transform: translateY(-5px) rotate(-0.5deg) scale(1.02); }
}

/* Pause float while JS tilt is active; glow on hover */
.on-card:hover .on-ore-img               { animation-play-state: paused; }
.coal-card:hover    .on-ore-img          { filter: drop-shadow(0 0 10px rgba(156,163,175,.7)); }
.iron-card:hover    .on-ore-img          { filter: drop-shadow(0 0 14px rgba(96,165,250,.9)); }
.diamond-card:hover .on-ore-img          { filter: drop-shadow(0 0 14px rgba(56,189,248,.9)); }

.ore-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
}
.coal-card .ore-glow    { background: radial-gradient(circle, rgba(156,163,175,.35) 0%, transparent 70%); }
.iron-card .ore-glow    { background: radial-gradient(circle, rgba(96,165,250,.4)   0%, transparent 70%); }
.diamond-card .ore-glow { background: radial-gradient(circle, rgba(56,189,248,.4)   0%, transparent 70%); }
.on-card:hover .ore-glow { opacity: 1; }

/* ── Badge ────────────────────────────── */
.on-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
    background: rgba(107,114,128,.15);
    border: 1px solid rgba(107,114,128,.3);
    color: #9ca3af;
}
.iron-badge {
    background: rgba(37,99,235,.14);
    border-color: rgba(59,130,246,.35);
    color: #60a5fa;
}
.diamond-badge {
    background: rgba(56,189,248,.10);
    border-color: rgba(56,189,248,.35);
    color: #38bdf8;
}

/* ── Plan name ────────────────────────── */
.on-plan-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.1;
    transition: color .3s;
}
.coal-card:hover    .on-plan-name { color: #d1d5db; }
.iron-card:hover    .on-plan-name { color: #93c5fd; }
.diamond-card:hover .on-plan-name { color: #7dd3fc; }

/* ── Desc ─────────────────────────────── */
.on-plan-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 26px;
    transition: color .3s;
}
.on-card:hover .on-plan-desc { color: #94a3b8; }

/* ── Features list ────────────────────── */
.on-features {
    list-style: none;
    padding: 0; margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.on-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #cbd5e1;
    transition: transform .25s ease, color .25s ease;
}
.on-features li:hover {
    transform: translateX(4px);
    color: #fff;
}
.feat-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

/* ── Meta row ─────────────────────────── */
.on-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}
.on-delivery, .on-revisions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 10px 14px;
    transition: background .3s;
}
.on-card:hover .on-delivery,
.on-card:hover .on-revisions { background: rgba(255,255,255,.055); }
.meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #475569;
}
.meta-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
}
.iron-card    .meta-val { color: #93c5fd; }
.diamond-card .meta-val { color: #7dd3fc; }

/* ── Price ────────────────────────────── */
.on-price-wrap {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 28px;
}
.on-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 6px;
}
.on-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
    transition: color .3s;
}
.iron-card    .on-price { color: #60a5fa; }
.diamond-card .on-price { color: #38bdf8; }
.on-period {
    font-size: 1.2rem;
    color: #475569;
    font-weight: 600;
    align-self: flex-end;
    margin-bottom: 6px;
}

/* ── CTA button ───────────────────────── */
.on-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.25,1,.5,1), box-shadow .28s ease;
}
.on-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transform: skewX(-20deg);
    transition: none;
}
.on-btn:hover::before { left: 160%; transition: left .55s ease; }
.on-btn:hover { transform: translateY(-3px); }
.btn-arrow-svg {
    width: 18px; height: 18px;
    transition: transform .28s ease;
}
.on-btn:hover .btn-arrow-svg { transform: translateX(4px); }

.coal-btn {
    background: rgba(107,114,128,.15);
    border: 1.5px solid rgba(107,114,128,.4);
    color: #d1d5db;
    box-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.coal-btn:hover {
    border-color: rgba(156,163,175,.7);
    box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.iron-btn {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(37,99,235,.35);
}
.iron-btn:hover { box-shadow: 0 12px 36px rgba(37,99,235,.55); }
.diamond-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(56,189,248,.28);
}
.diamond-btn:hover { box-shadow: 0 12px 36px rgba(124,58,237,.45); }

/* ── Guarantee strip ──────────────────── */
.on-guarantee {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    padding: 16px 30px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: guaranteeFadeIn 1s ease .8s both;
}
.on-guarantee span { transition: color .25s; }
.on-guarantee span:hover { color: #94a3b8; }
.sep { color: rgba(255,255,255,.12); font-size: 1rem; }
@keyframes guaranteeFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   CURSOR SPOTLIGHT SHINE
   z-index: 0  → sits BEHIND all card content
   mix-blend-mode overlay → no blur on text
   pointer-events: none → never blocks clicks
──────────────────────────────────────────*/
.card-shine {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    z-index: 0;          /* behind content, above card bg */
    opacity: 0;
    transition: opacity .25s ease;
    /* tight spotlight — not a blurry blob */
    background: radial-gradient(
        circle 180px at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,.07) 0%,
        rgba(255,255,255,.02) 40%,
        transparent 70%
    );
    /* overlay blends with bg without washing over text */
    mix-blend-mode: overlay;
}
.on-card:hover .card-shine { opacity: 1; }

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
    .on-grid { grid-template-columns: repeat(2, 1fr); }
    .iron-card { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .on-grid { grid-template-columns: 1fr; }
    .iron-card { grid-column: auto; max-width: 100%; }
    .ordernow-section { padding: 80px 5% 90px; }
    .on-title { font-size: 2rem; }
    .on-guarantee { flex-direction: column; gap: 8px; border-radius: 20px; }
    .sep { display: none; }
}

/* ==========================================
   DYNAMIC ORDER MODAL ENGINE
========================================== */
.om-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(3, 5, 11, 0.65);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
    perspective: 1500px;
}
.om-modal-overlay.om-active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.om-modal-blur-close {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 3D Container Setup */
.om-modal-container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 620px;
    transform-style: preserve-3d;
    transform: scale(0.88) translateY(40px) rotateX(-8deg);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.4s ease;
}
.om-modal-overlay.om-active .om-modal-container {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

/* Close Action */
.om-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.om-close-btn svg { width: 16px; height: 16px; }
.om-close-btn:hover {
    color: #fff;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

/* ── SHARED NOTICE POPUP ─────────────────────────────────── */
.notice-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(3, 5, 11, 0.7);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
}
.notice-popup-overlay.np-active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notice-popup-blur-close {
    position: absolute;
    inset: 0;
}

.notice-popup-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(150deg, rgba(10, 14, 28, 0.96) 0%, rgba(15, 22, 42, 0.96) 100%);
    border: 1px solid var(--np-accent-border, rgba(244, 63, 94, 0.25));
    border-radius: 18px;
    padding: 36px 30px 30px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px var(--np-accent-glow, rgba(244, 63, 94, 0.08));
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.3s ease;
}
.notice-popup-overlay.np-active .notice-popup-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.notice-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.notice-popup-close svg { width: 13px; height: 13px; }
.notice-popup-close:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

.notice-popup-icon-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--np-accent-bg, rgba(244, 63, 94, 0.12));
    border: 1px solid var(--np-accent-border, rgba(244, 63, 94, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 0 24px var(--np-accent-glow, rgba(244, 63, 94, 0.15));
}

.notice-popup-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.notice-popup-message {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 26px;
}

.notice-popup-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 9px;
    background: var(--np-accent-solid, #f43f5e);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.notice-popup-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Variant: order limit (rose) */
.notice-popup-card.np-limit {
    --np-accent-border: rgba(244, 63, 94, 0.25);
    --np-accent-bg: rgba(244, 63, 94, 0.12);
    --np-accent-glow: rgba(244, 63, 94, 0.18);
    --np-accent-solid: #f43f5e;
}

/* Variant: file size limit (amber) */
.notice-popup-card.np-filesize {
    --np-accent-border: rgba(245, 158, 11, 0.28);
    --np-accent-bg: rgba(245, 158, 11, 0.12);
    --np-accent-glow: rgba(245, 158, 11, 0.18);
    --np-accent-solid: #f59e0b;
}

/* LAYER 1: Package Overview Panel (Underlapping Card) */
.om-overview-panel {
    width: 310px;
    background: linear-gradient(145deg, rgba(7, 11, 25, 0.9) 0%, rgba(13, 21, 44, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    
    /* 3D Offset Separation */
    transform: translate3d(25px, 0, -40px) rotateY(4deg);
    z-index: 1; 
    margin-right: -25px; /* Pulls form overlapping on top of it */
    box-shadow: -10px 20px 50px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.om-overview-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.om-ov-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; z-index: 2; }
.om-ov-ore-box {
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.om-ov-img { width: 38px; height: 38px; image-rendering: pixelated; }

.om-ov-badge {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: #9ca3af; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.05);
}
.om-ov-tier-name { font-size: 1.35rem; font-weight: 800; color: #fff; margin: 2px 0 0; }

.om-ov-price-tag { display: flex; align-items: flex-start; gap: 1px; margin-bottom: 16px; z-index: 2;}
.om-ov-currency { font-size: 1.1rem; font-weight: 700; color: #64748b; margin-top: 4px; }
.om-ov-price { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px; }
.om-ov-period { font-size: 1rem; color: #475569; font-weight: 600; align-self: flex-end; margin-bottom: 3px; }

.om-ov-desc { font-size: 0.84rem; color: #94a3b8; line-height: 1.5; margin: 0 0 20px 0; z-index: 2;}
.om-ov-divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 20px; z-index: 2;}

.om-ov-features-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; z-index: 2;}
.om-ov-features-list li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #cbd5e1; }
.om-ov-features-list li span { font-size: 0.95rem; width: 18px; text-align: center; }

/* Dynamic Aesthetic Tint Changes applied dynamically via JS */
.om-modal-container[data-active-tier="coal"] .om-overview-panel { border-color: rgba(156,163,175,0.15); }
.om-modal-container[data-active-tier="iron"] .om-overview-panel { border-color: rgba(59,130,246,0.25); }
.om-modal-container[data-active-tier="iron"] .om-ov-price { color: #60a5fa; }
.om-modal-container[data-active-tier="diamond"] .om-overview-panel { border-color: rgba(124,58,237,0.3); }
.om-modal-container[data-active-tier="diamond"] .om-ov-price { color: #38bdf8; }


/* LAYER 2: Main Interactive Form Panel (Prominent Card) */
.om-form-panel {
    flex: 1;
    background: rgba(11, 17, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 26px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    z-index: 2; /* Sits completely on top */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.om-form-title { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 6px 0; letter-spacing: -0.5px; }
.om-form-subtitle { font-size: 0.9rem; color: #64748b; margin: 0 0 32px 0; }

.om-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.om-input-group { display: flex; flex-direction: column; gap: 8px; }
.om-input-group.full-width { grid-column: span 2; }

.om-input-group label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; }
.om-req { color: #ef4444; }

.om-input-group input[type="text"],
.om-input-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}
.om-input-group input:focus,
.om-input-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.15);
}

/* Custom Interactive Visual Radio Cards for Aspect Ratio */
.om-ratio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 2px; }
.om-ratio-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.om-ratio-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.om-ratio-box {
    background: #334155;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.ratio-16-9 { width: 32px; height: 18px; }
.ratio-9-16 { width: 18px; height: 32px; margin: 0 7px; }

.om-ratio-label { display: flex; flex-direction: column; font-size: 0.88rem; font-weight: 600; color: #cbd5e1; text-transform: none !important; letter-spacing: 0 !important;}
.om-ratio-label small { font-size: 0.72rem; color: #475569; font-weight: 400; margin-top: 1px; transition: color 0.25s;}

/* Ratio States */
.om-ratio-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.om-ratio-card:has(input:checked) {
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.08);
}
.om-ratio-card:has(input:checked) .om-ratio-box { background: #3b82f6; box-shadow: 0 0 10px rgba(59,130,246,0.5); }
.om-ratio-card:has(input:checked) .om-ratio-label { color: #fff; }
.om-ratio-card:has(input:checked) .om-ratio-label small { color: #93c5fd; }

/* Drag & Drop Skin Files Zone */
.om-dropzone {
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 1, 0.3, 1);
}
.om-dropzone.dragover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
    transform: scale(0.99);
}
.om-drop-icon { width: 28px; height: 28px; color: #64748b; margin-bottom: 8px; transition: color 0.25s; }
.om-dropzone:hover .om-drop-icon, .om-dropzone.dragover .om-drop-icon { color: #38bdf8; }
.om-drop-text { font-size: 0.88rem; color: #cbd5e1; margin: 0 0 4px 0; font-weight: 500; text-transform: none !important;}
.om-drop-highlight { color: #38bdf8; font-weight: 600; text-decoration: underline; }
.om-drop-subtext { font-size: 0.75rem; color: #475569; margin: 0; text-transform: none !important;}

/* Skin File Badges list */
.om-file-preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.om-file-badge {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #e2e8f0;
}
.om-file-badge svg { width: 14px; height: 14px; color: #a78bfa; }
.om-file-remove { cursor: pointer; color: #64748b; font-weight: 700; margin-left: 4px; font-size: 0.9rem;}
.om-file-remove:hover { color: #ef4444; }

/* Submitting Call To Action Button */
.om-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}
.om-submit-btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.om-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.45);
}
.om-submit-btn:hover svg { transform: translateX(3px); }

/* ==========================================
   RESPONSIVE LAYOUT ENGINE (MEDIA QUERIES)
========================================== */
@media (max-width: 992px) {
    .om-modal-container { max-width: 680px; flex-direction: column; }
    
    /* Collapse the 3D overlapping layout cleanly onto stacked elements */
    .om-overview-panel {
        width: 100%;
        margin-right: 0;
        margin-bottom: -20px;
        transform: translate3d(0, 10px, -20px) rotateX(2deg);
        padding: 24px 30px;
    }
    .om-ov-divider, .om-ov-features-list { display: none; } /* stream-line layout view for tablets */
    .om-form-panel { border-radius: 0 0 26px 26px; }
}

@media (max-width: 640px) {
    .om-modal-overlay { padding: 10px; }
    .om-modal-container { transform: scale(0.95) translateY(20px); min-height: auto;}
    .om-form-panel { padding: 25px 20px; }
    .om-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .om-input-group.full-width { grid-column: auto; }
    .om-ratio-grid { grid-template-columns: 1fr; }
    .om-overview-panel { display: none; } /* Hide back panel entirely on mobile to focus strictly on text entries */
    .om-form-panel { border-radius: 20px; }
    .om-close-btn { top: 10px; right: 10px; }
}

/* ==========================================
   DYNAMIC FORM STAGE SWITCHER & PROGRESS BAR
========================================== */

/* Progress bar track pinned precisely to top boundary */
.om-form-panel {
    position: relative;
    overflow: hidden; /* Clips the top edge progress container */
}

.om-verify-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    z-index: 20;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    border-radius: 0 0 6px 6px;
}

.om-verify-progress-container.bar-active {
    opacity: 1;
    transform: translateY(0);
}

.om-verify-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #7c3aed 50%, #f472b6 100%);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.85), 0 0 4px rgba(56, 189, 248, 0.6);
    border-radius: 6px;
    transform-origin: left;
    transform: scaleX(1);
    animation: cpkgBarPulse 1.6s ease-in-out infinite;
}

@keyframes cpkgBarPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.35); }
}

/* Structural view transitions */
#formStageInputs, #formStageReview {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.4s ease;
}

/* Active/Inactive state utility layout classes toggled via JS */
.om-stage-out {
    opacity: 0 !important;
    transform: translateX(-30px);
    position: absolute;
    pointer-events: none;
    width: calc(100% - 80px); /* Respect container parent padding metrics */
}

.om-stage-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Review screen UI details */
.om-review-stage {
    opacity: 0;
    transform: translateX(30px);
    position: absolute;
    pointer-events: none;
}

.om-pulse-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    animation: verifyFlash 2s infinite ease-in-out;
}

@keyframes verifyFlash {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 0px rgba(244,63,94,0); }
    50% { opacity: 1; box-shadow: 0 0 8px rgba(244,63,94,0.3); }
}

.om-review-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom Scrollbar for review content box */
.om-review-data-grid::-webkit-scrollbar { width: 5px; }
.om-review-data-grid::-webkit-scrollbar-track { background: transparent; }
.om-review-data-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.om-review-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
}

.om-review-item.full-width { grid-column: span 2; }

.om-review-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 4px;
}

.om-review-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    word-break: break-word;
}

.om-review-value.block-text {
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.5;
    font-style: italic;
}

/* Action Buttons Design */
.om-review-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.om-review-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.om-review-btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }

.om-review-btn.btn-reject {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.om-review-btn.btn-reject:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f43f5e;
}
.om-review-btn.btn-reject:hover svg { transform: translateX(-3px); }

.om-review-btn.btn-accept {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.om-review-btn.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45);
}
.om-review-btn.btn-accept:hover svg { transform: scale(1.15); }

/* Tablet/Mobile Alignment Fixes */
@media (max-width: 992px) {
    .om-stage-out { width: calc(100% - 60px); }
}

@media (max-width: 640px) {
    .om-review-data-grid { grid-template-columns: 1fr; gap: 12px; }
    .om-review-item.full-width { grid-column: auto; }
    .om-review-actions-row { flex-direction: column-reverse; gap: 10px; }
    .om-review-btn { width: 100%; }
    .om-stage-out { width: calc(100% - 40px); }
}

/* ==========================================
   DYNAMIC FORM STAGE SWITCHER & PROGRESS BAR
========================================== */

/* Progress bar track pinned precisely to top boundary */
.om-form-panel {
    position: relative;
    overflow: hidden; /* Clips the top edge progress container */
}

.om-verify-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    z-index: 20;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    border-radius: 0 0 6px 6px;
}

.om-verify-progress-container.bar-active {
    opacity: 1;
    transform: translateY(0);
}

.om-verify-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8 0%, #7c3aed 50%, #f472b6 100%);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.85), 0 0 4px rgba(56, 189, 248, 0.6);
    border-radius: 6px;
    transform-origin: left;
    transform: scaleX(1);
    animation: cpkgBarPulse 1.6s ease-in-out infinite;
}

@keyframes cpkgBarPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.35); }
}

/* Structural view transitions */
#formStageInputs, #formStageReview {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.4s ease;
}

/* Active/Inactive state utility layout classes toggled via JS */
.om-stage-out {
    opacity: 0 !important;
    transform: translateX(-30px);
    position: absolute;
    pointer-events: none;
    width: calc(100% - 80px); /* Respect container parent padding metrics */
}

.om-stage-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Review screen UI details */
.om-review-stage {
    opacity: 0;
    transform: translateX(30px);
    position: absolute;
    pointer-events: none;
}

.om-pulse-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    animation: verifyFlash 2s infinite ease-in-out;
}

@keyframes verifyFlash {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 0px rgba(244,63,94,0); }
    50% { opacity: 1; box-shadow: 0 0 8px rgba(244,63,94,0.3); }
}

.om-review-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom Scrollbar for review content box */
.om-review-data-grid::-webkit-scrollbar { width: 5px; }
.om-review-data-grid::-webkit-scrollbar-track { background: transparent; }
.om-review-data-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.om-review-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
}

.om-review-item.full-width { grid-column: span 2; }

.om-review-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 4px;
}

.om-review-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    word-break: break-word;
}

.om-review-value.block-text {
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.5;
    font-style: italic;
}

/* Action Buttons Design */
.om-review-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.om-review-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.om-review-btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }

.om-review-btn.btn-reject {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.om-review-btn.btn-reject:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f43f5e;
}
.om-review-btn.btn-reject:hover svg { transform: translateX(-3px); }

.om-review-btn.btn-accept {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.om-review-btn.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45);
}
.om-review-btn.btn-accept:hover svg { transform: scale(1.15); }

/* Tablet/Mobile Alignment Fixes */
@media (max-width: 992px) {
    .om-stage-out { width: calc(100% - 60px); }
}

@media (max-width: 640px) {
    .om-review-data-grid { grid-template-columns: 1fr; gap: 12px; }
    .om-review-item.full-width { grid-column: auto; }
    .om-review-actions-row { flex-direction: column-reverse; gap: 10px; }
    .om-review-btn { width: 100%; }
    .om-stage-out { width: calc(100% - 40px); }
}

/* ==========================================
   CUSTOM PACKAGE BUILDER SECTION
========================================== */

.custom-pkg-section {
    position: relative;
    background: #040b1a;
    padding: 120px 5% 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cpkg-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56,189,248,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.cpkg-orb {
    position: absolute; border-radius: 50%; filter: blur(100px);
    pointer-events: none; z-index: 0;
    animation: cpkgOrbDrift 16s ease-in-out infinite alternate;
}
.cpkg-orb-1 { width:500px;height:500px;background:radial-gradient(circle,rgba(124,58,237,.14) 0%,transparent 70%);top:-80px;right:-100px;animation-delay:0s; }
.cpkg-orb-2 { width:380px;height:380px;background:radial-gradient(circle,rgba(56,189,248,.10) 0%,transparent 70%);bottom:0;left:-60px;animation-delay:-7s; }
.cpkg-orb-3 { width:300px;height:300px;background:radial-gradient(circle,rgba(244,63,94,.07) 0%,transparent 70%);top:50%;left:40%;animation-delay:-12s; }
@keyframes cpkgOrbDrift { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(30px,25px) scale(1.1)} }

.cpkg-header { position:relative;z-index:2;text-align:center;margin-bottom:80px; }

.cpkg-eyebrow {
    display:inline-flex;align-items:center;gap:10px;
    font-size:0.72rem;font-weight:800;letter-spacing:3px;
    color:#38bdf8;text-transform:uppercase;margin-bottom:20px;
}

.cpkg-pixel-dot {
    width:6px;height:6px;background:#38bdf8;display:inline-block;
    box-shadow:0 0 8px #38bdf8;animation:cpkgDotBlink 2s ease-in-out infinite;
}
.cpkg-pixel-dot:last-child { animation-delay:-1s; }
@keyframes cpkgDotBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.cpkg-title {
    font-size:clamp(2.2rem,5vw,3.4rem);font-weight:800;color:#fff;
    line-height:1.15;letter-spacing:-1px;margin-bottom:16px;
}

.cpkg-gradient-text {
    background:linear-gradient(135deg,#38bdf8 0%,#a78bfa 50%,#f472b6 100%);
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
    background-size:200% 200%;animation:cpkgGradShift 4s ease-in-out infinite alternate;
}
@keyframes cpkgGradShift { 0%{background-position:0% 50%} 100%{background-position:100% 50%} }

.cpkg-subtitle { color:#64748b;font-size:1.05rem;max-width:520px;margin:0 auto;line-height:1.7; }

/* ── CUSTOM BUILDER — NEW 3-COLUMN LAYOUT ───────────────── */
.cpkg-layout {
    position:relative; z-index:2;
    display:grid;
    grid-template-columns: 1fr 1.1fr 360px;
    gap:28px;
    max-width:1340px; width:100%;
    align-items:start;
}

/* ── LEFT: TOGGLE ADD-ONS ───────────────────────────────── */
.cpkg-addons-col {
    display:flex; flex-direction:column; gap:20px;
    opacity:0; transform:translateX(-30px);
    transition:opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.cpkg-addons-col.cpkg-card-visible { opacity:1; transform:translateX(0); }

.cpkg-addons-section {
    background:rgba(10,18,40,.6);
    border:1px solid rgba(255,255,255,.06);
    border-radius:16px; overflow:hidden;
}

.cpkg-addons-heading {
    display:flex; align-items:center; gap:12px;
    padding:16px 20px;
    border-bottom:1px solid rgba(255,255,255,.05);
    background:rgba(255,255,255,.02);
}
.cpkg-addons-icon { font-size:1.3rem; flex-shrink:0; }
.cpkg-addons-heading h4 {
    font-size:0.88rem; font-weight:700; color:#e2e8f0; margin-bottom:2px;
}
.cpkg-addons-heading p { font-size:0.74rem; color:#475569; }

.cpkg-toggle-list { display:flex; flex-direction:column; padding:8px 0; }

.cpkg-toggle-row {
    display:flex; align-items:center; gap:12px;
    padding:10px 18px; cursor:pointer;
    transition:background .2s;
}
.cpkg-toggle-row:hover { background:rgba(56,189,248,.04); }

.cpkg-toggle-info { flex:1; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cpkg-toggle-name { font-size:0.84rem; color:#94a3b8; font-weight:500; }
.cpkg-toggle-input:checked ~ .cpkg-toggle-switch ~ * .cpkg-toggle-name,
.cpkg-toggle-row:has(input:checked) .cpkg-toggle-name { color:#e2e8f0; }

.cpkg-toggle-price {
    font-size:0.72rem; font-weight:700; color:#60a5fa;
    white-space:nowrap;
}
.free-badge {
    font-size:0.68rem; font-weight:700;
    background:rgba(34,197,94,.1); color:#4ade80;
    border:1px solid rgba(34,197,94,.2);
    padding:2px 7px; border-radius:8px;
}
.premium-badge {
    font-size:0.72rem; font-weight:700; color:#f472b6;
}

/* Toggle switch pill */
.cpkg-toggle-input { display:none; }
.cpkg-toggle-switch {
    width:38px; height:22px; border-radius:11px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
    position:relative; flex-shrink:0;
    transition:background .25s, border-color .25s;
    cursor:pointer;
}
.cpkg-toggle-switch::after {
    content:''; position:absolute;
    top:3px; left:3px;
    width:14px; height:14px; border-radius:50%;
    background:#475569;
    transition:transform .25s cubic-bezier(.22,1,.36,1), background .25s;
}
.cpkg-toggle-row:has(input:checked) .cpkg-toggle-switch {
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    border-color:transparent;
    box-shadow:0 0 10px rgba(124,58,237,.4);
}
.cpkg-toggle-row:has(input:checked) .cpkg-toggle-switch::after {
    transform:translateX(16px);
    background:#fff;
}
.cpkg-toggle-switch.always-on {
    background:linear-gradient(135deg,rgba(34,197,94,.5),rgba(16,185,129,.5));
    border-color:transparent;
    pointer-events:none;
}
.cpkg-toggle-switch.always-on::after {
    transform:translateX(16px);
    background:#fff;
}

/* ── CENTER: PROJECT BRIEF FORM ─────────────────────────── */
.cpkg-form-col {
    opacity:0; transform:translateY(20px);
    transition:opacity .65s cubic-bezier(.22,1,.36,1) .1s, transform .65s cubic-bezier(.22,1,.36,1) .1s;
}
.cpkg-form-col.cpkg-card-visible { opacity:1; transform:translateY(0); }

.cpkg-form-card {
    background:rgba(10,18,40,.7);
    border:1px solid rgba(255,255,255,.07);
    border-radius:20px; overflow:hidden;
}
.cpkg-form-card-header {
    padding:22px 26px 18px;
    border-bottom:1px solid rgba(255,255,255,.05);
    background:rgba(255,255,255,.02);
}
.cpkg-form-card-header h3 {
    font-size:1.05rem; font-weight:700; color:#e2e8f0; margin-bottom:4px;
}
.cpkg-form-card-header p { font-size:0.8rem; color:#475569; }

.cpkg-form-body { padding:22px 26px; display:flex; flex-direction:column; gap:18px; }

.cpkg-field { display:flex; flex-direction:column; gap:6px; }
.cpkg-field label {
    font-size:0.75rem; font-weight:700; color:#475569;
    text-transform:uppercase; letter-spacing:0.7px;
}
.cpkg-req { color:#f472b6; }

.cpkg-field input[type="text"],
.cpkg-field input[type="url"],
.cpkg-field textarea {
    background:rgba(5,8,20,.7);
    border:1px solid rgba(255,255,255,.07);
    border-radius:10px;
    padding:11px 14px;
    color:#e2e8f0; font-size:0.9rem;
    font-family:inherit; outline:none; resize:vertical;
    transition:border-color .2s, box-shadow .2s;
}
.cpkg-field input:focus,
.cpkg-field textarea:focus {
    border-color:rgba(124,58,237,.5);
    box-shadow:0 0 0 3px rgba(124,58,237,.1);
}
.cpkg-field input::placeholder,
.cpkg-field textarea::placeholder { color:#1e293b; }

.cpkg-field-hint { font-size:0.72rem; color:#334155; }

.cpkg-char-count {
    font-size:0.7rem; color:#334155;
    text-align:right; margin-top:-4px;
}

/* Aspect ratio selector */
.cpkg-ratio-row { display:flex; gap:10px; }
.cpkg-ratio-opt { cursor:pointer; flex:1; }
.cpkg-ratio-opt input { display:none; }
.cpkg-ratio-inner {
    display:flex; flex-direction:column; align-items:center; gap:6px;
    padding:12px 8px; border-radius:12px;
    border:1px solid rgba(255,255,255,.07);
    background:rgba(255,255,255,.02);
    transition:all .2s;
}
.cpkg-ratio-opt:hover .cpkg-ratio-inner { border-color:rgba(56,189,248,.2); background:rgba(56,189,248,.04); }
.cpkg-ratio-opt input:checked + .cpkg-ratio-inner {
    border-color:rgba(124,58,237,.45);
    background:rgba(124,58,237,.1);
    box-shadow:0 0 12px rgba(124,58,237,.15);
}
.cpkg-ratio-box {
    border:2px solid rgba(255,255,255,.2);
    border-radius:3px; background:rgba(255,255,255,.05);
}
.r169 { width:32px; height:18px; }
.r916 { width:14px; height:24px; }
.r11  { width:22px; height:22px; }
.cpkg-ratio-opt input:checked + .cpkg-ratio-inner .cpkg-ratio-box { border-color:#7c3aed; background:rgba(124,58,237,.2); }
.cpkg-ratio-text {
    font-size:0.8rem; font-weight:700; color:#94a3b8;
    display:flex; flex-direction:column; align-items:center; gap:2px;
}
.cpkg-ratio-text small { font-size:0.65rem; color:#334155; font-weight:400; }
.cpkg-ratio-opt input:checked + .cpkg-ratio-inner .cpkg-ratio-text { color:#a78bfa; }

/* Mini dropzone */
.cpkg-mini-drop {
    border:1.5px dashed rgba(255,255,255,.1);
    border-radius:12px; padding:20px;
    display:flex; flex-direction:column; align-items:center; gap:6px;
    text-align:center; cursor:pointer;
    transition:border-color .2s, background .2s;
    color:#334155; font-size:0.84rem;
}
.cpkg-mini-drop svg { width:28px; height:28px; stroke:#334155; }
.cpkg-mini-drop:hover, .cpkg-mini-drop.drag-over {
    border-color:rgba(124,58,237,.4);
    background:rgba(124,58,237,.05);
}
.cpkg-drop-link { color:#7c3aed; text-decoration:underline; cursor:pointer; }
.cpkg-mini-drop small { font-size:0.72rem; color:#1e293b; }

.cpkg-file-list { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.cpkg-file-item {
    display:flex; align-items:center; gap:8px;
    padding:7px 12px; border-radius:8px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
    font-size:0.8rem;
}
.cpkg-file-name { flex:1; color:#94a3b8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cpkg-file-size { font-size:0.72rem; color:#334155; }
.cpkg-file-remove {
    background:none; border:none; color:#475569;
    cursor:pointer; font-size:0.8rem; padding:0 4px;
    transition:color .2s;
}
.cpkg-file-remove:hover { color:#f43f5e; }

/* ── RIGHT: CONFIG PANEL (reuse existing styles, just update grid) ── */
.cpkg-config-panel {
    opacity:0; transform:translateX(30px);
    transition:opacity .7s cubic-bezier(.22,1,.36,1) .2s, transform .7s cubic-bezier(.22,1,.36,1) .2s;
}
.cpkg-config-panel.cpkg-card-visible { opacity:1; transform:translateX(0); }

.cpkg-panel-sticky {
    position:sticky; top:100px;
    background:rgba(10,18,40,.75); border:1px solid rgba(255,255,255,.08);
    border-radius:22px; padding:28px 24px;
    backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    display:flex; flex-direction:column; gap:22px;
}

.cpkg-config-block { display:flex; flex-direction:column; gap:12px; }
.cpkg-config-label {
    display:flex; align-items:center; gap:8px; font-size:0.78rem;
    font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#475569;
}
.cpkg-config-label svg { width:15px; height:15px; stroke:#38bdf8; }

.cpkg-counter { display:flex; align-items:center; gap:16px; }
.cpkg-count-btn {
    width:36px; height:36px; border-radius:10px;
    border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04);
    color:#e2e8f0; font-size:1.2rem; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background .2s, border-color .2s, transform .15s; line-height:1;
}
.cpkg-count-btn:hover { background:rgba(56,189,248,.12); border-color:rgba(56,189,248,.3); transform:scale(1.08); }
.cpkg-count-val { font-size:1.6rem; font-weight:800; color:#fff; min-width:36px; text-align:center; }
.cpkg-counter-note { font-size:0.78rem; color:#334155; }
.cpkg-counter-note strong { color:#60a5fa; }

.cpkg-slider-wrap { display:flex; flex-direction:column; gap:8px; }
.cpkg-slider {
    -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:6px;
    background:linear-gradient(90deg,#7c3aed calc(var(--fill,10%)),rgba(255,255,255,.08) calc(var(--fill,10%)));
    outline:none; cursor:pointer; --fill:10%;
}
.cpkg-slider::-webkit-slider-thumb {
    -webkit-appearance:none; width:20px; height:20px; border-radius:50%;
    background:linear-gradient(135deg,#38bdf8,#7c3aed); cursor:pointer;
    box-shadow:0 0 10px rgba(124,58,237,.6); transition:transform .15s;
}
.cpkg-slider::-webkit-slider-thumb:hover { transform:scale(1.2); }
.cpkg-slider-labels { display:flex; justify-content:space-between; font-size:0.72rem; color:#334155; }
.cpkg-runtime-display { font-weight:700; color:#a78bfa; font-size:0.85rem; }

.cpkg-res-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.cpkg-res-card { cursor:pointer; }
.cpkg-res-card input { display:none; }
.cpkg-res-inner {
    display:flex; flex-direction:column; align-items:center;
    padding:10px 8px; border-radius:12px;
    border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.02);
    transition:all .2s; gap:3px;
}
.cpkg-res-card:hover .cpkg-res-inner { background:rgba(56,189,248,.06); border-color:rgba(56,189,248,.2); }
.cpkg-res-card input:checked + .cpkg-res-inner { background:rgba(124,58,237,.15); border-color:rgba(124,58,237,.45); box-shadow:0 0 14px rgba(124,58,237,.2); }
.cpkg-res-name { font-size:0.82rem; font-weight:700; color:#cbd5e1; }
.cpkg-res-sub  { font-size:0.68rem; color:#475569; }
.cpkg-res-card input:checked + .cpkg-res-inner .cpkg-res-name { color:#a78bfa; }
.cpkg-res-card input:checked + .cpkg-res-inner .cpkg-res-sub  { color:#7c3aed; }

.cpkg-addon-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.cpkg-addon-item {
    display:flex; align-items:center; gap:8px; font-size:0.83rem; color:#94a3b8;
    padding:6px 10px; border-radius:8px; background:rgba(255,255,255,.02);
    animation:cpkgFadeIn .25s ease;
}
@keyframes cpkgFadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }
.cpkg-addon-empty { color:#1e2d42; font-style:italic; font-size:0.8rem; }
.cpkg-addon-dot { width:5px; height:5px; border-radius:50%; background:#7c3aed; flex-shrink:0; box-shadow:0 0 6px rgba(124,58,237,.6); }
.cpkg-addon-price { margin-left:auto; font-size:0.78rem; font-weight:700; color:#60a5fa; }

.cpkg-price-card {
    background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.06);
    border-radius:16px; padding:18px 20px; display:flex; flex-direction:column; gap:8px;
}
.cpkg-price-row { display:flex; justify-content:space-between; font-size:0.82rem; color:#475569; }
.cpkg-price-divider { height:1px; background:rgba(255,255,255,.06); margin:4px 0; }
.cpkg-price-total-row { display:flex; justify-content:space-between; font-size:0.95rem; font-weight:700; color:#e2e8f0; }
.cpkg-total-val {
    font-size:1.35rem; font-weight:800;
    background:linear-gradient(135deg,#38bdf8,#a78bfa);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.cpkg-total-val.cpkg-total-bump { animation:cpkgBump .3s cubic-bezier(.22,1,.36,1); }
@keyframes cpkgBump { 0%{transform:scale(1)} 40%{transform:scale(1.15)} 100%{transform:scale(1)} }

.cpkg-cta-btn {
    position:relative; width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
    padding:16px 24px; border-radius:14px;
    background:linear-gradient(135deg,#2563eb 0%,#7c3aed 60%,#f472b6 100%);
    background-size:200% 200%; color:#fff; font-size:1rem; font-weight:700; border:none;
    cursor:pointer; overflow:hidden; transition:transform .2s ease, box-shadow .2s ease;
    box-shadow:0 6px 20px rgba(124,58,237,.35);
    animation:cpkgBtnShift 5s ease-in-out infinite alternate;
}
@keyframes cpkgBtnShift { 0%{background-position:0% 50%} 100%{background-position:100% 50%} }
.cpkg-cta-btn:hover { transform:translateY(-3px); box-shadow:0 12px 30px rgba(124,58,237,.5); }
.cpkg-cta-btn svg { width:18px; height:18px; flex-shrink:0; transition:transform .2s; }
.cpkg-cta-btn:hover svg { transform:translateX(4px); }
.cpkg-cta-shine {
    position:absolute; top:0; left:-100%; width:60%; height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);
    animation:cpkgShine 3.5s ease-in-out infinite;
}
@keyframes cpkgShine { 0%{left:-100%} 40%,100%{left:160%} }
.cpkg-cta-note { font-size:0.74rem; color:#334155; text-align:center; line-height:1.5; }

.cpkg-pixel-row { position:relative; z-index:2; display:flex; gap:10px; margin-top:80px; }
.cpkg-pixel-row span {
    display:block; width:8px; height:8px;
    background:rgba(56,189,248,.15); box-shadow:0 0 6px rgba(56,189,248,.2);
    animation:cpkgPixelBlink 2s ease-in-out infinite;
}
.cpkg-pixel-row span:nth-child(odd)  { animation-delay:0s; }
.cpkg-pixel-row span:nth-child(even) { animation-delay:-1s; }
@keyframes cpkgPixelBlink { 0%,100%{opacity:0.3;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }

.cpkg-summary-block .cpkg-addon-list { max-height:130px; overflow-y:auto; padding-right:4px; }
.cpkg-summary-block .cpkg-addon-list::-webkit-scrollbar { width:4px; }
.cpkg-summary-block .cpkg-addon-list::-webkit-scrollbar-track { background:transparent; }
.cpkg-summary-block .cpkg-addon-list::-webkit-scrollbar-thumb { background:rgba(255,255,255,.08); border-radius:4px; }

@media (max-width:1200px) {
    .cpkg-layout { grid-template-columns:1fr 1fr; }
    .cpkg-config-panel { grid-column:1 / -1; }
    .cpkg-panel-sticky { position:static; }
}
@media (max-width:768px) {
    .cpkg-layout { grid-template-columns:1fr; }
    .custom-pkg-section { padding:80px 5% 70px; }
    .cpkg-res-grid { grid-template-columns:1fr; }
}

/* ==========================================================
   CUSTOM PACKAGE BUILDER — CHOOSE PLAN CARD INSPIRED UPDATES
========================================================== */
.custom-pkg-section {
    position: relative;
    background: #050816;
    padding: 100px 5% 120px;
    overflow: hidden;
}

/* Accordion Card Wrap Styling */
.cpkg-rollout-card {
    background: rgba(11, 18, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.cpkg-rollout-card:hover {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(17, 24, 42, 0.78);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

/* Accordion Interactive Header */
.cpkg-rollout-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.cpkg-rollout-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cpkg-rollout-icon {
    font-size: 1.35rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.cpkg-rollout-card:hover .cpkg-rollout-icon {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.cpkg-rollout-title-wrap h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
}

.cpkg-rollout-title-wrap p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

.cpkg-rollout-chevron {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), color 0.3s;
}
.cpkg-rollout-chevron svg { width: 18px; height: 18px; }
.cpkg-rollout-card:hover .cpkg-rollout-chevron { color: #60a5fa; }

/* Content Expansion Mechanics */
.cpkg-rollout-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.cpkg-rollout-card.active-rollout .cpkg-rollout-content {
    max-height: 400px; /* Safe upper clipping ceiling fallback */
}

.cpkg-rollout-card.active-rollout .cpkg-rollout-chevron {
    transform: rotate(-180deg);
    color: #60a5fa;
}

/* Selection Item Row */
.cpkg-toggle-list {
    padding: 4px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cpkg-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cpkg-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cpkg-toggle-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: color 0.25s;
}

.cpkg-toggle-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #94a3b8;
}

/* Checkbox Restyling matches Plan Card Accent highlights */
.cpkg-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #475569;
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
    flex-shrink: 0;
}

.cpkg-checkbox:checked {
    background: #2563eb;
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.cpkg-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cpkg-checkbox:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #1e293b;
}

/* Item Row Selection Interactive States */
.cpkg-toggle-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255,255,255,0.1);
}

.cpkg-toggle-row:has(.cpkg-checkbox:checked) {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(59, 130, 246, 0.25);
}
.cpkg-toggle-row:has(.cpkg-checkbox:checked) .cpkg-toggle-name {
    color: #fff;
}
.cpkg-toggle-row:has(.cpkg-checkbox:checked) .cpkg-toggle-price {
    color: #60a5fa;
}

/* Custom revision elements spacing override modifications */
.custom-rev-grid {
    margin-top: 2px;
}

/* ==========================================================
   COMPREHENSIVE RESPONSIVE ENGINE (BREAKPOINT SCALERS)
========================================================== */
@media (max-width: 1140px) {
    .cpkg-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cpkg-config-panel {
        position: relative;
        top: 0;
    }
    .cpkg-panel-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .cpkg-header {
        margin-bottom: 40px;
    }
    .cpkg-title {
        font-size: 2rem;
    }
    .cpkg-rollout-header {
        padding: 20px;
    }
    .cpkg-toggle-list {
        padding: 4px 20px 20px 20px;
    }
    .cpkg-form-card {
        padding: 24px;
    }
}

/* ==========================================================
   PREMIUM SLIDER SWITCH & HOVER LASER ACCENTS
========================================================== */

/* Top Border Laser Reaction Box Wrapper Settings */
.cpkg-rollout-card {
    position: relative; /* Anchor for the laser line placement */
}

/* The Top Edge Responsive Laser Line */
.laser-edge {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, #60a5fa, #2563eb, transparent);
    box-shadow: 0 0 12px #3b82f6, 0 0 4px #60a5fa;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 5;
    pointer-events: none;
}

/* Hover State Activates Line Expansion From Center */
.cpkg-rollout-card:hover .laser-edge {
    width: 100%;
    left: 0;
}

/* Right-aligned content wrapper */
.cpkg-row-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Slider Toggle Track */
.cpkg-switch-track {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

/* Invisible overlay layer mapping input click states over track layout */
.cpkg-switch-track .cpkg-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    cursor: pointer;
    margin: 0;
}

/* Sliding Thumb Node element styling */
.cpkg-switch-thumb {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: #94a3b8;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
    z-index: 2;
    pointer-events: none;
}

/* Interactive Activated CSS Selector States */
.cpkg-toggle-row:has(.cpkg-checkbox:checked) .cpkg-switch-track {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

.cpkg-toggle-row:has(.cpkg-checkbox:checked) .cpkg-switch-thumb {
    transform: translateX(18px);
    background: #60a5fa;
    box-shadow: 0 0 8px #2563eb;
}

/* Disabled System Lock Styling */
.row-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}
.disabled-switch {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.02) !important;
    cursor: not-allowed !important;
}
.disabled-switch .cpkg-switch-thumb {
    background: #475569 !important;
    transform: translateX(18px) !important; /* Kept open default because it is included */
    box-shadow: none !important;
}

.om-file-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: #0070f3;
    border-radius: 50%;
    animation: spin-badge 0.7s linear infinite;
    flex-shrink: 0;
}

.om-file-done {
    font-size: 0.75rem;
    color: #00df89;
    font-weight: 700;
    flex-shrink: 0;
}

@keyframes spin-badge {
    to { transform: rotate(360deg); }
}

/* Loading spinner shown next to a file while it's uploading */
.cpkg-file-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    vertical-align: middle;
    animation: cpkg-spin 0.7s linear infinite;
}

@keyframes cpkg-spin {
    to { transform: rotate(360deg); }
}

/* Checkmark shown once a file finishes uploading */
.cpkg-file-done {
    display: inline-block;
    margin-left: 8px;
    color: #4ade80;
    font-weight: 700;
    vertical-align: middle;
}

.cpkg-file-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}