/* ============================================================
   AI HOLOGRAM ULTRA — GLOBAL RESET & BASE
============================================================ */

.nb-holo-dashboard,
.nb-holo-modal,
.nb-holo-modal-content {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    direction: rtl;
}

/* ============================================================
   GLOBAL BACKGROUND
============================================================ */

.nb-holo-dashboard{

/* max-width:1100px; */
padding:30px;
padding-bottom: 85px ;
border-radius:28px;
background:
radial-gradient(circle at 20% 20%,rgba(0,255,255,.08),transparent 60%),
radial-gradient(circle at 80% 80%,rgba(29, 29, 29, 0.445),transparent 60%),
linear-gradient(160deg,rgba(29, 29, 29 , .2),#02111794 40%,#1d1d1de5);
box-shadow:
0 0 120px rgba(0,255,255,.05) inset,
0 0 40px rgba(0,0,0,.8);
position:relative;
overflow:hidden;
color:#e5e7eb;

}

/* tech grid overlay */

.nb-holo-dashboard:before{

content:"";
position:absolute;
inset:0;
background-image:
linear-gradient(rgba(0,255,255,.04) 1px,transparent 1px),
linear-gradient(90deg,rgba(0,255,255,.04) 1px,transparent 1px);
background-size:40px 40px;
opacity:.25;
pointer-events:none;

}

/* hologram light */

.nb-holo-dashboard:after{
content:"";
position:absolute;
inset:-200px;
background:
radial-gradient(circle,#00f6ff 0%,transparent 40%);
opacity:.04;
filter:blur(120px);


}
/* ===========================================================
   AI CONSOLE FUSION PANEL v5 — CYBER ULTRA DESIGN
=========================================================== */

.nb-holo-plan-box-fusion{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:35px;
    padding:35px 45px;
    margin-bottom:50px;

    background:rgba(10,25,45,.55);
    border-radius:24px;
    border:1px solid rgba(0,255,255,.25);
    backdrop-filter:blur(14px) saturate(180%);
    box-shadow:
        0 0 30px rgba(0,255,255,.15),
        inset 0 0 50px rgba(0,255,255,.05);
}

/* LEFT — PLAN INFORMATION */

.nb-plan-left{
    display:flex;
    align-items:center;
    gap:25px;
}

.nb-holo-plan-info{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.nb-holo-plan-title{
    font-size:32px;
    line-height: 2.6rem;
    font-weight:900;
    color:#00fff9;
    text-shadow:0 0 18px #00fff9;
}

.nb-holo-plan-expire{
    font-size:15px;
    color:#d7faff;
    opacity:.75;
}

/* Plan ICON */

.nb-holo-plan-icon{
    width:250px;
    height:250px;
    border-radius:18px;
    background:rgba(0,255,255,.15);
    border:1px solid rgba(0,255,255,.35);
    backdrop-filter:blur(12px);
    box-shadow:0 0 18px rgba(0,255,255,.25);
    mask-size:60%;
    margin: -30px;
    padding: -30px;
    mask-repeat:no-repeat;
    mask-position:center;
}

/* icons for different plans */
.nb-icon-free{ background:#00fff9; mask-image:url('../images/logo.svg'); }
.nb-icon-pro{ background:#d240ff; mask-image:url('../images/logo.svg'); }
.nb-icon-vip{ background:#ffd700; mask-image:url('../images/logo-rgb.svg'); }


/* RIGHT SIDE — CIRCLE + STATS */

.nb-plan-right {
    display: flex;
    flex-direction: column;
    align-items: center; /* تراز کردن با کل باکس */
    gap: 20px;
}


.nb-holo-usage-box-inline {
    display: flex;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}


.nb-holo-usage-item {
    text-align: center;
    
}


.nb-progress-bar{
    fill:none;
    stroke:linear-gradient(#00fff9,#7d40ff,#00eaff);
    stroke-width:10;
    stroke-linecap:round;
    stroke-dasharray:326;
    stroke-dashoffset:326;
    transition:stroke-dashoffset .8s ease;
}

.nb-progress-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:24px;
    font-weight:900;
    color:#00fff9;
}


/* Inline stats beside progress circle */

.nb-holo-usage-box-inline{
    display:flex;
    gap:45px;
}

.nb-holo-usage-item label{
    opacity:.75;
    font-size:14px;
    color:#d4feff;
}

.nb-holo-usage-value{
    font-size:20px;
    font-weight:900;
    color:#00fff9;
    text-shadow:0 0 12px #00fff9;
}


/* Progress bar under everything */

.nb-holo-progress{
    width:260px;
    height:12px;
  
    background:rgba(0,255,255,.10);
    border-radius:12px;
    overflow:hidden;
}

.nb-holo-progress-bar{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#00fff9,#7d40ff,#00eaff);
    box-shadow:0 0 25px rgba(0,255,255,.45);
    transition:width .6s ease;
}

/* ===========================================================
   Dual Progress Circles (Hourly + Daily)
=========================================================== */
.nb-holo-circle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin-bottom: 15px;
}

.nb-holo-daily-circle .nb-progress-bar {
    stroke: url(#holoGradient);
    filter: drop-shadow(0 0 8px #9d4bff);
}

.nb-holo-daily-circle .nb-progress-text {
    color: #9d4bff;
    text-shadow: 0 0 12px #9d4bff;
}

.nb-progress-note {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: .7;
    color: #e5e7eb;
    white-space: nowrap;       /* جلوگیری کامل از شکستن خط */
    overflow: hidden;          /* جلوگیری از ریزش بیرون */
    text-overflow: ellipsis;    
}


/* ============================================================
   HOLOGRAM GLOBAL VISUAL EFFECTS
============================================================ */

.nb-holo-dashboard:before,
.nb-holo-modal-content:before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(
        130deg,
        rgba(0,255,240,.05),
        rgba(120,0,255,.05),
        rgba(0,200,255,.07)
    );

}
.nb-holo-plans-grid .nb-holo-plan-card {
    backdrop-filter: none !important;
}

.nb-holo-plans-grid .nb-holo-plan-card:before {
    filter: none !important;
    opacity: 0 !important;
}

/* Scanline effect */
.nb-holo-dashboard:after {
    content:"";
    position:absolute;
    inset:0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,.05) 0px,
        rgba(255,255,255,0.02) 2px,
        transparent 3px
    );
    opacity:.25;
    pointer-events:none;
}


/* ============================================================
   HEADER — HOLOGRAPHIC
============================================================ */

.nb-holo-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.nb-holo-title {
    font-size: 40px !important;
    color: #34d6ff !important;
    text-shadow:
        0 0 12px #00f6ff,
        0 0 22px #6c3bff,
        0 0 40px rgba(0,255,240,.8);
}

.nb-holo-title-glow {
    position:relative;
    z-index:3;
}

.nb-holo-scanline {
    position:absolute;
    bottom:-8px;
    left:0;
    width:110%;
    height:3px;
    background:linear-gradient(90deg,#00fff9,#9d4bff,#00eaff);
    filter:blur(3px);
    animation: holoBeam 3s infinite;
}

@keyframes holoBeam {
    0%   { opacity:0; }
    25%  { opacity:1; transform:translateX(0);}
    60%  { opacity:1; transform:translateX(20px);}
    100% { opacity:0; transform:translateX(40px);}
}


/* Avatar hologram */
.nb-holo-avatar-box {
    position:relative;
}

.nb-holo-avatar-circle {
    width:80px;
    height:80px;
    border-radius:50%;
    border:2px solid rgba(0,255,255,.25);
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    background:rgba(255,255,255,0.04);
    backdrop-filter:blur(8px);
    box-shadow:0 0 20px rgba(0,255,255,.25);
}

.nb-holo-avatar-glow {
    position:absolute;
    inset:-4px;
    border-radius:50%;
    background:conic-gradient(
        from 0deg,
        #00fff9,
        #6d30ff,
        #00bcd4,
        #00fff9
    );
    filter:blur(18px);
    opacity:.20;
    animation:spinGlow 6s linear infinite;
}

@keyframes spinGlow {
    100% { transform: rotate(360deg); }
}

.nb-holo-avatar-icon {
    position:relative;
    z-index:3;
}


/* ============================================================
   PLAN BOX
============================================================ */

.nb-holo-plan-box{

background:
linear-gradient(160deg,
rgba(66, 105, 105, 0.05),
#1d1d1d88);

border-radius:24px;
border:1px solid rgba(0,255,255,.25);
padding:35px;
margin-bottom:40px;
backdrop-filter:blur(16px);
box-shadow:
0 0 40px rgba(0,255,255,.15),
inset 0 0 60px rgba(0,255,255,.04);

position:relative;
overflow:hidden;

}

/* glow */

.nb-holo-plan-box:before{

content:"";
position:absolute;
inset:-80px;
background:
radial-gradient(circle,#00fff9 0%,transparent 60%);
opacity:.06;
filter:blur(12px);

}


.nb-holo-plan-label{
font-size:18px;
color:#00f6ff;
opacity:.75;

}

.nb-holo-plan-name{
line-height: 1.9rem;
font-size:48px;
font-weight:900;
margin-top:20px;
color:#00fff9;
text-shadow:

0 0 18px #00fff9,
0 0 40px rgba(0,255,255,.7);

}

/* ============================================================
   AVATAR
============================================================ */

.nb-holo-avatar-circle{
top: 0;
left: -100px;
width:30px;
margin-bottom: -30px;
height:30px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
background:rgba(255,255,255,.03);
border:1px solid rgba(0,255,255,.25);
backdrop-filter:blur(10px);
box-shadow:
0 0 30px rgba(0,255,255,.3),
inset 0 0 20px rgba(0,255,255,.1);
position:relative;
}

/* =======================
   Expire Countdown
======================= */

.nb-holo-expire {
    margin-top:10px;
    font-size:15px;
    color:#cafdff;
    font-weight:700; 
    opacity:.75;
    
}

#nb-holo-countdown {
    margin-top:8px;
    font-size:17px;
    font-weight:700;
    color:#e0feff;
    text-shadow:0 0 12px #00fff9;
}


/* ============================================================
   BUTTON
============================================================ */

.nb-holo-upgrade-btn{

display:inline-block;

margin-top:25px;

padding:13px 32px;

border-radius:14px;

font-weight:800;

background:

linear-gradient(90deg,#00fff9,#7d40ff);

color:#000;

cursor:pointer;

transition:.3s;

position:relative;

overflow:hidden;

}

.nb-holo-upgrade-btn:hover{

transform:translateY(-5px);

box-shadow:

0 0 25px rgba(0,255,255,.7),
0 0 60px rgba(125,64,255,.5);

}

/* ============================================================
   Usage Box — 3D Glass Panel
============================================================ */

.nb-holo-plan-box.compact {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 35px;
    border-radius:18px;
    background:rgba(10,25,45,.55);
    border:1px solid rgba(0,255,255,.25);
}


.nb-holo-usage-header {
    font-size:22px;
    font-weight:800;
    color:#00fff9;
    text-align: center;
    display: block;        
    margin-bottom:18px;
}

.nb-holo-usage-stats {
    display: flex;
    justify-content: center;  /* وسط افقی */
    align-items: center;       /* وسط عمودی */
    flex-wrap: wrap;           /* اگر تعداد زیاد شد به خط بعد بروند */
    gap: 20px;                 /* فاصله بین آیتم‌ها */
    width: 100%;
}


.nb-holo-usage-item label {
    opacity:.7;
    font-size:14px;
}

.nb-holo-usage-value {
    margin-top:5px;
    font-size:20px;
    font-weight:800;
    color:#00fff9;
}

/* Progress bar */
.nb-plan-time-progress {
    position: relative;
    height: 22px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    margin-top: 14px;
}

.nb-plan-time-progress .nb-holo-progress-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        #00fff9,
        #7c7cff,
        #a855f7
    );
    box-shadow: 0 0 12px rgba(0,255,255,.4);
    transition: width .6s ease;
}

.nb-holo-progress-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 500;
    color: #e5e7eb;
    text-shadow: 0 0 6px rgba(0,0,0,.6);

    white-space: nowrap; /* ✅ طبق خواسته قبلی تو */
    pointer-events: none;
}

.nb-holo-plan-progress-circle {
    width:120px;
    height:120px;
    position:relative;
    margin-top:25px;
}

.nb-holo-plan-progress-circle svg {
    width:100%;
    height:100%;
    transform:rotate(-90deg);
}

.nb-progress-bg {
    fill:none;
    stroke:rgba(255,255,255,.08);
    stroke-width:10;
}

.nb-progress-text {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:24px;
    font-weight:900;
    color:#00fff9;
    text-shadow:0 0 12px #00fff9;
}

/* کوچک برای زیر متن روزانه */
.nb-progress-label.small {
    font-size: 12px;
    opacity: .6;
    margin-top: 2px;
}

/* ============================================================
   MODAL — HOLOGRAPHIC PORTAL
============================================================ */

.nb-holo-modal {
    position:fixed;
    top:0;left:0;
    width:100%;height:100%;
    background:rgba(0,0,0,.07);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999;
    backdrop-filter: blur(8px);
}

.nb-holo-modal.active {
    display:flex;
}

.nb-holo-modal-content {
    width:1100px;
    max-width:95%;
    background:rgba(55,55,55,.6);
    padding:55px;
    color: #fff;
    border-radius:25px;
    position:relative;
    border:1px solid rgba(0,255,255,.25);
    box-shadow:0 0 45px rgba(0,255,255,.25),
                inset 0 0 60px rgba(0,255,255,.08);
    backdrop-filter:blur(18px) saturate(180%);
    animation: modalPop .5s ease;
}

@keyframes modalPop {
    from { transform: scale(.85); opacity:0; }
    to   { transform: scale(1); opacity:1; }
}

.nb-holo-close {
    position:absolute;
    top:18px;
    left:22px;
    cursor:pointer;
    font-size:28px;
    color: #00fff9;
    text-shadow:0 0 12px #00fff9;
}

.nb-holo-modal-title {
    font-size:30px;
    color:#00fff9;
    text-align:center;
    margin-bottom:35px;
    font-weight:900;
    text-shadow:0 0 15px #00fff9;
}

.nb-holo-modal-line {
    width:140px;
    height:3px;
    margin:10px auto 0;
    background:linear-gradient(90deg,#00fff9,#7d40ff,#00eaff);
    filter:blur(2px);
}

.nb-holo-model-group {
    margin-bottom:18px;
    padding-bottom:12px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.nb-model-group-title {
    font-size:14px;
    opacity:.7;
    margin-bottom:6px;
    color:#00fff9;
}

.nb-btn-current {
    opacity: 0.6;
    cursor: default;
}

.nb-btn-disabled {
    opacity: 0.35;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.nb-btn-upgrade {
    border: 1px solid #00f0ff;
}

/* ============================================================
   PLAN CARDS — HOLOGRAM 3D
============================================================ */

.nb-holo-plans-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.nb-holo-plan-card {
    position:relative;
    padding:20px;
    border-radius:22px;
    background:rgba(10,22,40,.4);
    border:1px solid rgba(0,255,255,.15);
    backdrop-filter:blur(16px);
    transition:.3s;
    box-shadow:0 0 20px rgba(0,255,255,.18);
}

.nb-holo-plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color:#00fff9;
    box-shadow:0 0 35px rgba(0,255,255,.35);
}

/* Card header */
.nb-holo-card-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.nb-holo-card-title {
    font-size:22px;
    line-height: 1.9rem;
    font-weight:700;
    color: #fff;
}

/* Icons per plan */
.nb-holo-card-icon {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}
/* آیکون پلن  - free */
.nb-holo-card-icon-free{
background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='g1' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%2300fff9'/><stop offset='100%' stop-color='%2360a5fa'/></linearGradient></defs><circle cx='12' cy='12' r='4' fill='url(%23g1)'/><circle cx='12' cy='4' r='1.5' fill='url(%23g1)'/><circle cx='4' cy='12' r='1.5' fill='url(%23g1)'/><circle cx='20' cy='12' r='1.5' fill='url(%23g1)'/><circle cx='12' cy='20' r='1.5' fill='url(%23g1)'/><line x1='12' y1='6' x2='12' y2='9' stroke='url(%23g1)' stroke-width='1.5'/><line x1='12' y1='15' x2='12' y2='18' stroke='url(%23g1)' stroke-width='1.5'/><line x1='6' y1='12' x2='9' y2='12' stroke='url(%23g1)' stroke-width='1.5'/><line x1='15' y1='12' x2='18' y2='12' stroke='url(%23g1)' stroke-width='1.5'/></svg>");
}



/* آیکون پلن  - Pro  */
.nb-holo-card-icon-pro{
background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='gpro' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%236366f1'/><stop offset='100%' stop-color='%238b5cf6'/></linearGradient></defs><circle cx='12' cy='12' r='3.2' fill='url(%23gpro)'/><path d='M12 2.8 L14.3 6.3 L18.6 7.1 L15.8 10.1 L16.4 14.4 L12 12.7 L7.6 14.4 L8.2 10.1 L5.4 7.1 L9.7 6.3 Z' fill='url(%23gpro)' opacity='.35'/><circle cx='6' cy='6' r='1.3' fill='url(%23gpro)'/><circle cx='18' cy='6' r='1.3' fill='url(%23gpro)'/><circle cx='6' cy='18' r='1.3' fill='url(%23gpro)'/><circle cx='18' cy='18' r='1.3' fill='url(%23gpro)'/><line x1='12' y1='8.8' x2='12' y2='5.5' stroke='url(%23gpro)' stroke-width='1.2'/><line x1='12' y1='18.5' x2='12' y2='15.3' stroke='url(%23gpro)' stroke-width='1.2'/><line x1='8.7' y1='12' x2='5.5' y2='12' stroke='url(%23gpro)' stroke-width='1.2'/><line x1='18.5' y1='12' x2='15.3' y2='12' stroke='url(%23gpro)' stroke-width='1.2'/></svg>");
background-size:contain;
background-repeat:no-repeat;
background-position:center;
filter:drop-shadow(0 0 10px rgba(120,99,241,.55));
}




/* آیکون پلن VIP - VIP */
.nb-holo-card-icon-vip{
background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='g3' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%23ffd700'/><stop offset='100%' stop-color='%23ff7a00'/></linearGradient></defs><path fill='url(%23g3)' d='M3 18l2-10l5 6l4-8l4 8l5-6l2 10z'/><circle cx='7' cy='8' r='1.5' fill='%23ffd700'/><circle cx='12' cy='5' r='1.7' fill='%23ffd700'/><circle cx='17' cy='8' r='1.5' fill='%23ffd700'/><rect x='4' y='18' width='16' height='2' rx='1' fill='url(%23g3)'/></svg>");
}


/* Price */
.nb-holo-card-price {
    font-size:40px;
    font-weight:900;
    color:#00fff9;
    margin:20px 0;
    text-shadow:0 0 18px #00fff9;
}

.nb-holo-card-price span {
    font-size:16px;
    opacity:.7;
}

/* Features */
.nb-holo-card-section {
    margin-top:20px;
    padding: 12px;
    border-radius: 26px;
    border:solid 1px #00eaff46;
}

.nb-holo-card-feature {
    font-size:15px;
    color: #d7faff;
    opacity:.8;
    margin-bottom:6px;
}

/* --- لیست مدل‌ها --- */
.nb-holo-models-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    max-height: 140px;     /* ارتفاع ثابت */
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 6px 0;
}

.nb-holo-models-list.expanded {
    max-height: 260px;     /* بعد از باز شدن */
    overflow-y: auto;
}

.nb-holo-models-list::-webkit-scrollbar {
    width: 4px;
}
.nb-holo-models-list::-webkit-scrollbar-thumb {
    background: #7775;
    border-radius: 4px;
}

/* --- Chip های مدل‌ها --- */

/* --- مدل‌ها حالت نئونی + جلوگیری کامل از بیرون‌زدن --- */
.nb-holo-chip {
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #d7faff;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0,255,255,0.25);
    box-shadow:
        0 0 6px rgba(0,255,255,0.25),
        inset 0 0 4px rgba(0,255,255,0.2);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform-style: preserve-3d;
    perspective: 600px;
    max-width: 120px;        /* از بیرون‌زدن متن جلوگیری می‌کند */
    transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
    cursor: pointer;
    direction: ltr;
    z-index: 100;
    unicode-bidi: plaintext;
}

/* --- افکت زوم نئونی هنگام هاور --- */
.nb-holo-chip:hover {
    transform: translateY(-3px) ;
    color: #ffffff;
    box-shadow:
        0 0 12px rgba(0,255,255,0.55),
        0 0 20px rgba(0,255,255,0.25),
        inset 0 0 6px rgba(0,255,255,0.25);
    z-index: 200;
    width: 135px;
    max-width: 135px;
}

.nb-holo-chip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    right: 50%;
    transform: translateX(50%);

    background: rgba(0, 0, 0, 0.85);
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 11px;
    color: #00eaff;
    border: 1px solid rgba(0,255,255,0.4);

    box-shadow: 0 0 12px rgba(0,255,255,0.55);
    backdrop-filter: blur(6px);

    opacity: 0;
    animation: nb-chip-fade .25s forwards ease-out;
}

/* انیمیشن نرم ظاهرشدن متن کامل */
@keyframes nb-chip-fade {
    from { opacity: 0; transform: translateX(50%) translateY(3px); }
    to   { opacity: 1; transform: translateX(50%) translateY(0); }
    
}


/* --- وقتی هیچ مدلی وجود ندارد --- */
.nb-no-models {
    font-size: 12px;
    color: #ff4b4b;
    opacity: .8;
}

/* --- دکمه باز / بسته کردن مدل‌ها --- */
.nb-holo-models-toggle {
    width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #eee;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.nb-holo-models-toggle:hover {
    background: rgba(255,255,255,0.18);
}
/* Buy button */
.nb-holo-card-buy-btn {
    margin-top:22px;
    padding:12px 0;
    text-align:center;
    background:linear-gradient(90deg,#00fff9,#7d40ff);
    border-radius:12px;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    color:#000;
    position:relative;
    transition:.3s;
}

.nb-holo-card-buy-btn:hover {
    transform:translateY(-4px);
    box-shadow:0 0 22px rgba(0,255,255,.55);
}

.nb-holo-buy-glow {
    position:absolute;
    inset:0;
    background:radial-gradient(circle,#00fff9,transparent 70%);
    opacity:.35;
    filter:blur(20px);
    pointer-events:none;
}

/*** NEW: Ultra Hologram enhancements ***/

.nb-holo-card-ultra {
    animation: ultraFadeIn .9s ease;
}

@keyframes ultraFadeIn {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: translateY(0); }
}

.ultra-pulse {
    animation: ultraPulse 4s infinite ease-in-out;
}

@keyframes ultraPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.nb-holo-quick-actions {
    display:flex;
    gap:20px;
    margin-top:35px;
    justify-content:space-between;
}

.nb-holo-quick-item {
    flex:1;
    padding:18px;
    background:rgba(6,14,26,.45);
    border:1px solid rgba(0,255,255,.15);
    border-radius:16px;
    text-align:center;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 0 14px rgba(0,255,255,.12);
}

.nb-holo-quick-item:hover {
    transform:translateY(-6px);
    border-color:#00fff9;
    box-shadow:0 0 25px rgba(0,255,255,.4);
}

.nb-holo-quick-icon {
    margin-bottom:8px;
}

.pulse-light {
    animation: pulseGlow 4s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow:0 0 12px rgba(0,255,255,.15); }
    50% { box-shadow:0 0 22px rgba(0,255,255,.35); }
    100% { box-shadow:0 0 12px rgba(0,255,255,.15); }
}

/* ============================================================
   RESPONSIVE & ACCESSIBILITY FIXES
============================================================ */


.model-zone .nb-holo-usage-item {
    flex:1;
}

.model-zone .nb-holo-usage-header {
    color:#9d4bff;
    text-shadow:0 0 12px #9d4bff;
}

/* Animated gradient on progress circle */
.nb-holo-plan-progress-circle svg {
    stroke:url(#holoGradient);
}
@keyframes dashMove {
    0% {stroke-dashoffset:326;}
    100% {stroke-dashoffset:0;}
}
.nb-progress-bar.animate {
    animation:dashMove 1.5s ease forwards;
}


.nb-holo-modal {
    overflow-y: auto;
    padding: 20px 10px;
    -webkit-overflow-scrolling: touch; 
    display: none; /* در حالت عادی مخفی */
    align-items: flex-start; 
}

.nb-holo-modal.active {
    display: flex;
}

/* ۲. بهینه‌سازی محتوای مودال برای موبایل */
.nb-holo-modal-content {
    margin: auto; /* مرکز چینی خودکار در صورت وجود اسکرول */
    width: 95%;
    max-width: 1100px;
    padding: 40px 20px; /* کاهش پدینگ در موبایل */
    position: relative;
}

/* ۳. اصلاح گرید کارت‌ها */
.nb-holo-plans-grid {
    display: grid;
    /* در دسکتاپ ۳ ستون، در تبلت ۲ ستون، در موبایل ۱ ستون */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.nb-models-wrapper {
    margin-top: 12px;
}

/* مدل‌های قابل مشاهده (4 مدل اول) */
.nb-models-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* مدل‌های مخفی */
.nb-models-hidden {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
}

.nb-models-hidden.open {
    display: flex;
    animation: nbModelsShow .25s ease-out;
}

/* دکمه زیر لیست (نه داخل flex مدل‌ها) */
.nb-models-toggle-wrap {
    text-align: right;
    margin-top: 10px;
}

.nb-models-toggle {
    padding: 5px 14px;
    font-size: 13px;
    color: #00fff9;
    background: rgba(0,255,249,.08);
    border: 1px dashed rgba(0,255,249,.35);
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
    display: inline-block;
}

.nb-models-toggle:hover {
    background: rgba(0,255,249,.20);
}

@keyframes nbModelsShow {
    from {opacity: 0; transform: translateY(-6px);}
    to   {opacity: 1; transform: translateY(0);}
}


/* ===========================================================
   MOBILE RESPONSIVE FIXES — AI HOLOGRAM FUSION PANEL v5
   (FULLY COMPATIBLE WITH CURRENT STRUCTURE)
=========================================================== */

/* -----------  Tablets (max 900px) ------------- */
@media (max-width: 900px){

    .nb-holo-plan-box-fusion{
        flex-direction: column;
        align-items: center;
        text-align:center;
        padding:28px 25px;
        gap:45px;
    }

    .nb-plan-left{
        flex-direction: column;
        align-items: center;
        gap:18px;
    }

    .nb-holo-plan-icon{
        margin: -50px;
        width:220px;
        height:220px;
    }

    .nb-plan-right{
        align-items:center;
    }

    .nb-holo-usage-box-inline{
        justify-content:center;
        gap:25px;
    }

    .nb-holo-progress{
        width:80%;
        margin:0 auto;
    }

    .nb-holo-models-list{
        justify-content:center;
    }
}

/* -----------  Mobile Large (max 640px) ------------- */
@media (max-width: 640px){

    .nb-holo-plan-box-fusion{
        padding:25px 18px;
        gap:35px;
    }

    .nb-holo-plan-title{
        font-size:24px;
    }

    .nb-holo-plan-expire{
        font-size:14px;
    }

    .nb-holo-plan-icon{
        margin: -60px;
        width:210px;
        height:210px;
    }

    .nb-holo-plan-progress-circle{
        width:105px;
        height:105px;
    }

    .nb-progress-text{
        font-size:20px;
    }

    .nb-holo-usage-box-inline{
        flex-direction:column;
        gap:18px;
    }

    .nb-holo-usage-value{
        font-size:18px;
    }

    .nb-holo-progress{
        width:90%;
        height:10px;
    }

    /* مدل‌ها در موبایل */
    .nb-holo-usage-subsection{
        margin:20px 10px !important;
        padding:18px !important;
    }

    .nb-holo-models-list{
        gap:8px;
    }

    .nb-holo-chip{
        font-size:13px;
        font-weight: 500;
        padding:5px 10px;
        border-radius:14px;
    }
}


/* -----------  Mobile Small (max 480px) ------------- */
@media (max-width: 480px){

    .nb-holo-plan-box-fusion{
        padding:22px 14px;
        border-radius:18px;
    }

    .nb-holo-plan-icon{
        margin: -50px;
        width:200px;
        height:200px;
    }

    .nb-holo-plan-name{
        font-size:32px;
    }

    .nb-holo-plan-progress-circle{
        width:95px;
        height:95px;
        margin: -10px;
    }

    .nb-holo-usage-box-inline{
        gap:14px;
    }

    .nb-holo-progress{
        width:100%;
        height:26px;
        
    }

    .nb-holo-chip{
        font-size:13px;
        font-weight: 400;
        padding:5px 8px;
    }

    .nb-holo-usage-subsection{
        border-radius:14px;
    }
}


/* Force full-width layout on very small screens */
@media (max-width: 380px){

    .nb-holo-plan-box-fusion{
        gap:25px;
        padding:18px 12px;
    }

    .nb-holo-plan-icon{
        margin: -50px;
        width:200px;
        height:200px;
    }

    .nb-holo-plan-progress-circle{
        width:85px;
        height:85px;
    }

    .nb-holo-chip{
        font-size:12px;
        padding:4px 7px;
    }
}

/* ۴. مدیا کوئری اختصاصی برای موبایل‌های کوچک (مثل تصویر شما) */
@media (max-width: 768px) {
    .nb-holo-modal-content {
        padding: 45px 15px 25px 15px; /* فضای بیشتر برای دکمه بستن */
    }

    .nb-holo-modal-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .nb-holo-plan-card {
        padding: 20px;
    }

    .nb-holo-card-price {
        font-size: 32px;
    }

    /* دکمه بستن در موبایل باید در دسترس‌تر باشد */
    .nb-holo-close {
        top: 10px;
        left: 10px;
        background: rgba(0, 255, 249, 0.1);
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        z-index: 10;
    }
}

/* ۵. جلوگیری از اسکرول خوردن بدنه سایت وقتی مودال باز است */
body.nb-modal-open {
    overflow: hidden;
}


/* END CSS */