/* ============================================================
   SERVERS PAGE
   ============================================================ */

/* ============================================================
   Hero
   ============================================================ */
.servers-hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background: #0a1a3a;
    color: #ffffff;
    isolation: isolate;
}

.servers-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 15% 30%, rgba(58, 111, 196, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(212, 168, 56, 0.18) 0%, transparent 45%),
    linear-gradient(135deg, #0a1a3a 0%, #0e2148 60%, #14306a 100%);
}

.servers-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.servers-hero .container {
    position: relative;
    z-index: 1;
}

.servers-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.servers-hero-content {
    text-align: right;
}

.servers-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.servers-hero-image__glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 184, 255, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.servers-hero-animation {
    width: 100%;
    max-width: 500px;
    height: 450px;
    border: none;
    background: transparent;
    display: block;
    overflow: hidden;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: #e0bc5a;
    font-weight: 600;
}

/* Hero Title */
.servers-hero-title {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.servers-hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0 0 2rem;
    max-width: 520px;
}

/* Hero features */
.servers-hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.servers-hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.servers-hero-features li svg {
    width: 14px;
    height: 14px;
    color: #6fe0b0;
    flex-shrink: 0;
}

/* ============================================================
   Plans Section Heading
   ============================================================ */
.plans-section-heading {
    text-align: center;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.plans-section-heading h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 12px;
    color: #0b2a5b;
}

.plans-section-heading p {
    color: #6b7a91;
    line-height: 1.9;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================================
   Plans Grid
   ============================================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 80px;
}

/* ============================================================
   Plan Card
   ============================================================ */
.server-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(11, 18, 32, 0.05);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    min-width: 0;
    overflow: hidden;
}

.server-plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.server-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(11, 18, 32, 0.12);
    border-color: transparent;
}

.server-plan-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #7ab8ff, #d4a838);
}

.server-plan-card.is-featured {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* Ribbon */
.server-plan-card__ribbon {
    position: absolute;
    top: 16px;
    left: -32px;
    transform: rotate(-45deg);
    padding: 4px 40px;
    font-size: 10.5px;
    font-weight: 800;
    color: #0a1a3a;
    background: linear-gradient(135deg, #e0bc5a, #d4a838);
    box-shadow: 0 4px 12px rgba(212, 168, 56, 0.3);
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Header */
.server-plan-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.server-plan-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf3ff 0%, #f0f6ff 100%);
    border-radius: 14px;
    color: #1a5fb4;
}

.server-plan-icon svg {
    width: 26px;
    height: 26px;
}

.server-plan-title h3 {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 800;
    color: #0b2a5b;
    line-height: 1.3;
}

.server-plan-code {
    font-size: 10.5px;
    color: #97a3b6;
    direction: ltr;
    display: inline-block;
    font-family: monospace;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f4f6fa;
}

.server-plan-tagline {
    color: #4a5a72;
    font-size: 13.5px;
    font-weight: 500;
    margin: 0 0 20px;
    line-height: 1.7;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f2f5;
}

/* Specs */
.server-plan-specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}

.server-plan-spec {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f5f6f8;
    font-size: 13px;
}

.server-plan-spec:last-child {
    border-bottom: none;
}

.server-plan-spec__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f4f7fb;
    color: #6b7a91;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.server-plan-spec__icon svg {
    width: 16px;
    height: 16px;
}

.server-plan-spec__label {
    color: #6b7a91;
    font-weight: 500;
}

.server-plan-spec strong {
    color: #1a2332;
    font-weight: 700;
    font-family: inherit;
    text-align: left;
    unicode-bidi: plaintext;
}

/* Suitable */
.server-plan-suitable {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #eef1f5;
}

.server-plan-suitable-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #1a5fb4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.server-plan-suitable p {
    color: #4a5a72;
    font-size: 12.5px;
    line-height: 1.9;
    margin: 0;
}

/* Description */
.server-plan-description {
    margin-bottom: 18px;
}

.server-plan-description p {
    color: #6b7a91;
    font-size: 12.5px;
    line-height: 2;
    margin: 0;
    text-align: justify;
}

/* Price */
.server-plan-price {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
}

.server-plan-price__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.server-plan-price-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.server-plan-price-value strong {
    font-size: 24px;
    font-weight: 900;
    color: #0b2a5b;
    font-family: monospace;
    letter-spacing: -0.5px;
    unicode-bidi: plaintext;
}

.server-plan-price-value span {
    font-size: 12px;
    color: #6b7a91;
    font-weight: 500;
}

.server-plan-price-period {
    color: #97a3b6;
    font-size: 11.5px;
    padding: 3px 10px;
    background: #f4f6fa;
    border-radius: 6px;
    white-space: nowrap;
}

.server-plan-price .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    transition: transform 0.15s, box-shadow 0.2s;
}

.server-plan-price .btn:hover {
    transform: translateY(-1px);
}

/* ============================================================
   Comparison Section
   ============================================================ */
.plans-comparison-section {
    padding-top: 40px;
    padding-bottom: 20px;
    margin-top: 40px;
    border-top: 1px solid #e8eaf0;
}

/* Wrapper */
.comparison-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e8eaf0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(11, 18, 32, 0.05);
    -webkit-overflow-scrolling: touch;
}

.comparison-wrapper::-webkit-scrollbar {
    height: 10px;
}

.comparison-wrapper::-webkit-scrollbar-track {
    background: #f4f6fa;
    border-radius: 0 0 16px 16px;
}

.comparison-wrapper::-webkit-scrollbar-thumb {
    background: #c7d0de;
    border-radius: 999px;
    border: 2px solid #f4f6fa;
}

.comparison-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a9b6c9;
}

/* ============================================================
   Comparison Table
   ============================================================ */
.comparison-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: #ffffff;
}

/* ---------- Head ---------- */
.comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    border-bottom: 1px solid #e8eaf0;
    padding: 18px 16px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    color: #0b2a5b;
    white-space: nowrap;
}

.comparison-table thead th.feature-col-header {
    text-align: right;
    width: 180px;
    min-width: 180px;
    font-size: 12px;
    color: #6b7a91;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.comparison-table thead th.plan-col-header {
    min-width: 180px;
}

.comparison-table thead th.plan-col-header.is-featured {
    background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
    border-bottom-color: #bfdbfe;
}

.plan-table-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.plan-table-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0b2a5b;
    line-height: 1.4;
}

.plan-table-header span {
    font-size: 10.5px;
    color: #97a3b6;
    font-family: monospace;
    direction: ltr;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef1f5;
}

/* ---------- Body ---------- */
.comparison-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    text-align: center;
    color: #1a2332;
    vertical-align: middle;
    transition: background 0.15s;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Zebra rows */
.comparison-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.comparison-table tbody tr:hover {
    background: #f4f8ff;
}

.comparison-table tbody tr:hover td.feature-label {
    background: #eef4fd;
}

/* Feature label cell */
.feature-label {
    text-align: right !important;
    font-weight: 600;
    color: #4a5a72;
    background: #f8fafc;
    border-left: 1px solid #f0f2f5;
    white-space: nowrap;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-label__icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #eef3fa;
    color: #1a5fb4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-label__icon svg {
    width: 14px;
    height: 14px;
}

/* Feature value */
.feature-value {
    color: #1a2332;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.7;
    unicode-bidi: plaintext;
}

.feature-value.comparison-description {
    font-weight: 400;
    font-size: 12.5px;
    color: #4a5a72;
    text-align: right;
    line-height: 1.9;
    max-width: 240px;
    margin: 0 auto;
}

/* Price row */
.comparison-table tbody tr.price-row td {
    background: #fbfcfe;
    border-top: 1px solid #e8eaf0;
    padding-top: 18px;
    padding-bottom: 18px;
}

.comparison-table tbody tr.price-row:hover td {
    background: #f4f8ff;
}

.price-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    direction: rtl;
}

.price-wrapper strong {
    font-size: 18px;
    font-weight: 900;
    color: #0b2a5b;
    font-family: monospace;
    letter-spacing: -0.3px;
    unicode-bidi: plaintext;
}

.price-wrapper span {
    font-size: 11px;
    color: #6b7a91;
    font-weight: 500;
}

.price-period {
    margin-top: 4px;
    font-size: 11px;
    color: #97a3b6;
    font-weight: 500;
}

/* Action row */
.comparison-table tbody tr.action-row td {
    background: #fbfcfe;
    padding-top: 10px;
    padding-bottom: 20px;
}

.comparison-table tbody tr.action-row td.feature-label {
    background: #fbfcfe;
}

.action-cell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 180px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.action-cell .btn:hover {
    transform: translateY(-1px);
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 24px;
    text-align: center;
    color: #97a3b6;
    background: #f8fafc;
    border: 1px dashed #d7dee8;
    border-radius: 20px;
}

.empty-state svg {
    color: #c7d0de;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7a91;
}

/* ============================================================
   Intro / Rich text
   ============================================================ */
.servers-intro {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
    color: #4a5a72;
    font-size: 0.95rem;
    line-height: 2;
}

.servers-intro p {
    margin: 0 0 1rem;
}

.servers-intro p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Plans Section wrapper
   ============================================================ */
.servers-plans-section {
    padding: 72px 0 80px;
    background: #ffffff;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes serversFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servers-hero-content > * {
    animation: serversFadeUp 0.6s ease-out both;
}

.servers-hero-content .breadcrumb {
    animation-delay: 0.05s;
}

.servers-hero-content .servers-hero-title {
    animation-delay: 0.15s;
}

.servers-hero-content .servers-hero-description {
    animation-delay: 0.25s;
}

.servers-hero-content .servers-hero-features {
    animation-delay: 0.35s;
}

.servers-hero-image {
    animation: serversFadeUp 0.8s ease-out 0.2s both;
}

.server-plan-card {
    animation: serversFadeUp 0.5s ease-out both;
}

.plans-grid .server-plan-card:nth-child(1) {
    animation-delay: 0.05s;
}

.plans-grid .server-plan-card:nth-child(2) {
    animation-delay: 0.12s;
}

.plans-grid .server-plan-card:nth-child(3) {
    animation-delay: 0.19s;
}

.plans-grid .server-plan-card:nth-child(4) {
    animation-delay: 0.26s;
}

.plans-grid .server-plan-card:nth-child(5) {
    animation-delay: 0.33s;
}

.plans-grid .server-plan-card:nth-child(6) {
    animation-delay: 0.40s;
}

@media (prefers-reduced-motion: reduce) {
    .servers-hero-content > *,
    .servers-hero-image,
    .server-plan-card {
        animation: none;
    }

    .server-plan-card,
    .server-plan-price .btn,
    .action-cell .btn {
        transition: none;
    }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .servers-hero {
        padding: 3rem 0 4rem;
    }

    .servers-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .servers-hero-content {
        text-align: center;
    }

    .servers-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .servers-hero-features {
        justify-content: center;
    }

    .servers-hero-image {
        order: -1;
    }

    .servers-hero-animation {
        max-width: 360px;
        height: 320px;
    }

    .servers-hero-image__glow {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 720px) {
    .servers-plans-section {
        padding: 48px 0 56px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 56px;
    }

    .plans-section-heading {
        margin-bottom: 28px;
    }

    .plans-comparison-section {
        margin-top: 24px;
        padding-top: 28px;
    }

    .server-plan-card {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    .server-plan-card__ribbon {
        top: 14px;
        left: -36px;
        padding: 4px 44px;
        font-size: 10px;
    }

    .server-plan-price-value strong {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .servers-hero {
        padding: 2.25rem 0 3rem;
    }

    .servers-hero-title {
        font-size: 1.6rem;
    }

    .servers-hero-description {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .servers-hero-features li {
        font-size: 11.5px;
        padding: 7px 11px;
    }

    .servers-hero-animation {
        max-width: 280px;
        height: 260px;
    }

    .breadcrumb {
        font-size: 0.72rem;
        padding: 5px 11px;
    }

    .server-plan-card-header {
        gap: 12px;
    }

    .server-plan-icon {
        width: 46px;
        height: 46px;
    }

    .server-plan-icon svg {
        width: 22px;
        height: 22px;
    }

    .server-plan-title h3 {
        font-size: 18px;
    }

    .server-plan-spec {
        grid-template-columns: 28px 1fr auto;
        font-size: 12.5px;
        gap: 8px;
    }

    .server-plan-spec__icon {
        width: 28px;
        height: 28px;
    }

    .server-plan-spec__icon svg {
        width: 14px;
        height: 14px;
    }

    .comparison-table {
        font-size: 12px;
        min-width: 680px;
    }

    .comparison-table thead th {
        padding: 14px 12px;
    }

    .comparison-table tbody td {
        padding: 12px;
    }

    .feature-label {
        font-size: 12px;
    }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
    .servers-hero {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 1rem 0;
    }

    .servers-hero__bg,
    .servers-hero-image,
    .server-plan-card__ribbon,
    .action-row {
        display: none !important;
    }

    .servers-hero-title,
    .servers-hero-description,
    .servers-hero-features li {
        color: #000000 !important;
    }

    .server-plan-card {
        box-shadow: none;
        border: 1px solid #cccccc;
        break-inside: avoid;
    }

    .comparison-wrapper {
        overflow: visible;
        box-shadow: none;
        border: 1px solid #cccccc;
    }

    .comparison-table {
        min-width: 0;
    }
}
/* استایل قطعی برای قیمت در جدول */
.price-box {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    direction: ltr !important; /* چیدمان از چپ به راست: اول عدد، بعد واحد */
}

.price-box strong {
    font-size: 18px;
    font-weight: 900;
    color: #0b2a5b;
    font-family: inherit; /* فونت مونو اسپیس رو برداشتم که اعداد فارسی طبیعی‌تر بشن */
    line-height: 1;
}

.price-box span {
    font-size: 12px;
    color: #6b7a91;
    font-weight: 500;
    line-height: 1;
}