.topbar,html,body{font-family: IRANYekanX !important;}
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --bg: #f5f7fc;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e8edf5;
    --success: #10b981;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
}

/* TOPBAR */

.topbar {
    height: 75px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 18px;
}

.brand-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 5px 15px #6366f140;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.topbar-links a {
    color: #64748b;
    text-decoration: none;
    transition: .2s;
}

.topbar-links a:hover {
    color: var(--primary);
}

.status-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
    padding: 9px 14px;
    border-radius: 30px;
    font-size: 12px;
}

/* HEADERBOX */

.headerbox {
    margin: 30px auto;
    max-width: 1180px;
    padding: 45px;
    border-radius: 24px;
    color: white;
    background:
        radial-gradient(circle at 10% 20%, #ffffff25, transparent 25%),
        linear-gradient(125deg, #4f46e5, #7c3aed 60%, #9333ea);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px #6366f125;
}

.headerbox:after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border: 35px solid #ffffff12;
    border-radius: 50%;
    left: -70px;
    bottom: -130px;
}

.headerbox h1 {
    font-size: 30px;
    margin: 0 0 15px;
    line-height: 1.8;
}

.headerbox p {
    color: #e0e7ff;
    line-height: 2;
    max-width: 650px;
    margin: 0;
}

.header-tags {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.header-tag {
    background: #ffffff20;
    border: 1px solid #ffffff30;
    padding: 9px 14px;
    border-radius: 30px;
    font-size: 12px;
}

/* MAIN */

.container {
    max-width: 1180px;
    margin: auto;
    padding: 0 20px 40px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 25px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 5px 20px #0f172a05;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    margin-bottom: 25px;
}

/* STEPS */

.steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.step {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 15px 10px;
    text-align: center;
    color: #94a3b8;
    transition: .25s;
}

.step.active {
    color: var(--primary);
    background: #eef2ff;
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px #6366f110;
}

.step-number {
    width: 30px;
    height: 30px;
    margin: 0 auto 9px;
    border-radius: 10px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active .step-number {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.step-title {
    font-size: 12px;
    font-weight: bold;
}

/* FORM */

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 13px;
}

input,
select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: #fdfdff;
    transition: .2s;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px #6366f115;
}

input::placeholder {
    color: #a0aec0;
}

/* PACKAGE CARDS */

.package {
    display: block;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: .25s;
    background: white;
}

.package:hover {
    border-color: #a5b4fc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #6366f110;
}

.package:has(input:checked) {
    border-color: var(--primary);
    background: #f5f7ff;
    box-shadow: 0 0 0 3px #6366f115;
}

.package input {
    width: auto;
    margin-left: 10px;
}

.package strong {
    font-size: 15px;
}

.package small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 2;
}

/* BUTTONS */

.actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

button {
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 5px 15px #6366f130;
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #6366f140;
}

.primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.secondary {
    background: #f1f5f9;
    color: #475569;
}

.secondary:hover {
    background: #e2e8f0;
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.side-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 15px;
}

.side-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.side-card p {
    color: var(--muted);
    line-height: 2;
    font-size: 12px;
}

/* NOTICE */

.notice {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 17px;
    line-height: 2;
    font-size: 12px;
}

/* PROGRESS */

.progress {
    height: 10px;
    background: #edf2f7;
    border-radius: 20px;
    overflow: hidden;
    margin: 25px 0;
}

.progress div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width .4s;
    border-radius: 20px;
}

#message {
    line-height: 2;
    margin-top: 20px;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

/* FOOTER */

.footer {
    margin-top: 35px;
    background: white;
    border-top: 1px solid var(--border);
    padding: 25px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #94a3b8;
    font-size: 12px;
}

.footer a {
    color: #64748b;
    text-decoration: none;
    margin-right: 15px;
}

.footer a:hover {
    color: var(--primary);
}

/* RESPONSIVE */

@media(max-width:900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .headerbox {
        margin: 20px;
        padding: 30px;
    }
}

@media(max-width:600px) {
    .topbar {
        padding: 0 15px;
        height: 65px;
    }

    .topbar-links {
        gap: 10px;
    }

    .topbar-links a {
        display: none;
    }

    .headerbox {
        margin: 15px;
        padding: 25px;
        border-radius: 18px;
    }

    .headerbox h1 {
        font-size: 22px;
    }

    .container {
        padding: 0 12px 25px;
    }

    .card {
        padding: 18px;
    }

    .steps {
        gap: 5px;
    }

    .step {
        padding: 12px 4px;
    }

    .step-title {
        font-size: 10px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .actions button {
        flex: 1;
    }

    .footer {
        text-align: center;
        justify-content: center;
    }
}

/* ================================
   ANIMATIONS - Mavara TRANSFER
================================ */

/* ورود نرم کل صفحه */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: pageEnter .8s cubic-bezier(.2,.8,.2,1) both;
}

/* حرکت شناور هدر */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.headerbox {
    animation: pageEnter .7s ease both;
    background-size: 200% 200%;
    animation:
        pageEnter .7s ease both,
        gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* درخشش کارت‌ها */
@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(99, 102, 241, .04);
    }

    50% {
        box-shadow: 0 10px 35px rgba(99, 102, 241, .12);
    }
}

.side-card {
    animation: cardGlow 5s ease-in-out infinite;
}

.side-card:nth-child(2) {
    animation-delay: 1s;
}

.side-card:nth-child(3) {
    animation-delay: 2s;
}

/* شناور شدن آیکون‌ها */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(3deg);
    }
}

.side-icon {
    animation: iconFloat 4s ease-in-out infinite;
}

/* پالس نشان جدید */
@keyframes newPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, .45);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.new-badge {
    animation: newPulse 2.2s infinite;
}

/* درخشش دکمه اصلی */
@keyframes buttonShine {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

.primary {
    position: relative;
    overflow: hidden;
}

.primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );
    transform: skewX(-20deg);
}

.primary:hover::before {
    animation: buttonShine .8s ease;
}

/* حرکت نرم کارت‌های نسخه */
.package {
    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease,
        border-color .3s ease;
}

.package:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px rgba(99,102,241,.12);
}

/* افکت Hover روی Sidebar */
.side-card {
    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        box-shadow .4s ease;
}

.side-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(99,102,241,.15);
}

/* انیمیشن مرحله‌ها */
.step {
    transition:
        background .4s ease,
        color .4s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.step.active {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99,102,241,.12);
}

/* نقطه وضعیت فعال */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.8);
    }
}

.status-dot {
    animation: statusPulse 1.5s ease-in-out infinite;
}

/* حرکت Progress */
.progress div {
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* کاهش حرکت برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes sidebarReveal {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar .side-card {
    opacity: 0;
    animation: sidebarReveal .7s ease forwards;
}

.sidebar .side-card:nth-child(1) {
    animation-delay: .2s;
}

.sidebar .side-card:nth-child(2) {
    animation-delay: .4s;
}

.sidebar .side-card:nth-child(3) {
    animation-delay: .6s;
}
.side-description {
    text-align: justify;
}