/* =========================================================
   Premium UX — Design system for the public-facing pages
   Homepage · Auth · Pricing · Contact
   ========================================================= */

:root {
    --premium-primary: #009e69;
    --premium-primary-dark: #007d54;
    --premium-accent: #20c997;
    --premium-accent-2: #0dcaf0;
    --premium-ink: #101828;
    --premium-muted: #667085;
    --premium-surface: #ffffff;
    --premium-surface-2: #f8fafc;
    --premium-border: #e6eaf0;
    --premium-grad: linear-gradient(135deg, #009e69 0%, #20c997 50%, #0dcaf0 100%);
    --premium-grad-soft: linear-gradient(135deg, rgba(0, 158, 105, .09) 0%, rgba(32, 201, 151, .09) 60%, rgba(13, 202, 240, .09) 100%);
    --premium-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --premium-shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .04);
    --premium-shadow-lg: 0 18px 40px -12px rgba(0, 158, 105, .28), 0 8px 20px -8px rgba(16, 24, 40, .1);
    --premium-radius: 1rem;
    --premium-radius-lg: 1.375rem;
    --premium-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Accessibility: visible focus rings ---------- */

.premium-header a:focus-visible,
.premium-footer a:focus-visible,
.premium-hero a:focus-visible,
.premium-hero button:focus-visible,
.premium-hero input:focus-visible,
.premium-section a:focus-visible,
.premium-cta a:focus-visible,
.premium-pricing a:focus-visible,
.premium-auth a:focus-visible,
.premium-backtotop:focus-visible {
    outline: 2px solid rgba(0, 158, 105, .6);
    outline-offset: 3px;
    border-radius: .5rem;
}

/* ---------- Brand logo safety ---------- */

#header .navbar-brand img,
.slide-menu .navbar-brand img {
    max-height: 2.5rem !important;
    height: 2.5rem !important;
    width: auto !important;
}

/* ---------- Premium brand logo ---------- */

.premium-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none !important;
}

.premium-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 158, 105, .4));
    transition: transform .25s ease;
}

.premium-brand:hover .premium-brand-icon {
    transform: rotate(-6deg) scale(1.06);
}

.premium-brand-name {
    font-family: var(--premium-font);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--premium-ink);
    white-space: nowrap;
    transition: color .2s ease;
}

.premium-brand:hover .premium-brand-name {
    color: var(--premium-primary-dark);
}

html.dark .premium-brand-name {
    color: #f5f7fa;
}

html.dark .premium-brand:hover .premium-brand-name {
    color: var(--premium-accent);
}

/* ---------- Premium header ---------- */

.premium-header {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1025;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    border-bottom: 1px solid var(--premium-border);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
    transition: box-shadow .3s ease, background .3s ease;
}

.premium-header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 30px -12px rgba(16, 24, 40, .12);
}

html.dark .premium-header {
    background: rgba(6, 10, 9, .82);
    border-color: rgba(255, 255, 255, .08);
}

html.dark .premium-header.is-scrolled {
    background: rgba(6, 10, 9, .94);
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5);
}

.premium-header .navbar-brand img {
    transition: transform .25s ease;
}

.premium-header .navbar-brand:hover img {
    transform: translateY(-1px);
}

.premium-header .navbar-nav {
    gap: .25rem;
}

.premium-header .nav-link {
    color: var(--premium-muted);
    font-weight: 600;
    font-size: .9375rem;
    padding: .5rem .875rem;
    border-radius: .75rem;
    transition: color .2s ease, background .2s ease;
    position: relative;
}

.premium-header .nav-link:hover,
.premium-header .nav-link:focus {
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .07);
}

.premium-header .nav-link.active {
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .1);
    font-weight: 700;
}

html.dark .premium-header .nav-link {
    color: #98a2b3;
}

html.dark .premium-header .nav-link:hover,
html.dark .premium-header .nav-link:focus {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .1);
}

html.dark .premium-header .nav-link.active {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .16);
}

.premium-header .btn-outline-primary {
    border-color: rgba(0, 158, 105, .35);
    color: var(--premium-primary-dark);
    font-weight: 600;
    border-radius: .75rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.premium-header .btn-outline-primary:hover,
.premium-header .btn-outline-primary:focus {
    background: var(--premium-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(0, 158, 105, .5);
    transform: translateY(-1px);
}

html.dark .premium-header .btn-outline-primary {
    border-color: rgba(32, 201, 151, .4);
    color: var(--premium-accent);
}

html.dark .premium-header .btn-outline-primary:hover,
html.dark .premium-header .btn-outline-primary:focus {
    color: #fff;
}

.premium-header .premium-btn-grad {
    border-radius: .75rem;
}

.premium-header .navbar-toggler {
    border: 1px solid var(--premium-border);
    border-radius: .75rem;
    padding: .5rem .65rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.premium-header .navbar-toggler:hover {
    border-color: rgba(0, 158, 105, .4);
    box-shadow: 0 0 0 4px rgba(0, 158, 105, .1);
}

/* ---------- Buttons ---------- */

.premium-btn-grad {
    background: var(--premium-grad);
    background-size: 150% 150%;
    border: 0;
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(0, 158, 105, .55);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-position .5s ease;
    font-weight: 700;
}

.premium-btn-grad:hover,
.premium-btn-grad:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(0, 158, 105, .65);
    filter: brightness(1.04);
    background-position: 100% 50%;
}

.premium-btn-grad:active {
    transform: translateY(0) scale(.99);
}

/* Secondary action inside the hero */
.premium-hero .btn-outline-primary,
.premium-cta .btn-outline-primary {
    border: 1px solid rgba(0, 158, 105, .4);
    color: var(--premium-primary-dark);
    background: rgba(255, 255, 255, .7);
    font-weight: 600;
    border-radius: .875rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.premium-hero .btn-outline-primary:hover,
.premium-hero .btn-outline-primary:focus,
.premium-cta .btn-outline-primary:hover,
.premium-cta .btn-outline-primary:focus {
    background: var(--premium-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 26px -8px rgba(0, 158, 105, .55);
    transform: translateY(-2px);
}

html.dark .premium-hero .btn-outline-primary,
html.dark .premium-cta .btn-outline-primary {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(32, 201, 151, .4);
    color: var(--premium-accent);
}

html.dark .premium-hero .btn-outline-primary:hover,
html.dark .premium-hero .btn-outline-primary:focus,
html.dark .premium-cta .btn-outline-primary:hover,
html.dark .premium-cta .btn-outline-primary:focus {
    background: var(--premium-grad);
    color: #fff;
}

.premium-btn-white {
    background: #fff;
    color: var(--premium-primary-dark);
    border: 0;
    font-weight: 700;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.premium-btn-white:hover,
.premium-btn-white:focus {
    color: var(--premium-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .4);
}

/* ---------- Hero ---------- */

.premium-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(13, 202, 240, .16), transparent 60%),
        radial-gradient(900px 520px at 0% 110%, rgba(32, 201, 151, .18), transparent 60%),
        linear-gradient(180deg, #f6fefb 0%, #ffffff 100%);
}

html.dark .premium-hero {
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(13, 202, 240, .12), transparent 60%),
        radial-gradient(900px 520px at 0% 110%, rgba(32, 201, 151, .14), transparent 60%),
        linear-gradient(180deg, #0a1410 0%, #030606 100%);
}

.premium-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 24, 40, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(900px 600px at 50% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(900px 600px at 50% 0%, #000 30%, transparent 78%);
    pointer-events: none;
    transition: transform .25s ease-out;
}

html.dark .premium-hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
}

.premium-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 6.5rem !important;
}

@media (max-width: 767.98px) {
    .premium-hero .container {
        padding-top: 4.5rem !important;
    }
}

/* Hero action buttons spacing (Bootstrap 4 fallback for gap-*) */

.premium-hero .premium-reveal > .btn + .btn {
    margin-left: .875rem;
}

@media (max-width: 767.98px) {
    .premium-hero .premium-reveal > .btn + .btn {
        margin-left: 0;
        margin-top: 1rem;
    }
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    padding: .55rem 1.25rem;
    border-radius: 999px;
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-sm);
    color: var(--premium-primary-dark);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    animation: premium-float 5s ease-in-out infinite;
}

html.dark .premium-badge {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: var(--premium-accent);
}

.premium-badge-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--premium-grad);
    box-shadow: 0 0 0 4px rgba(32, 201, 151, .18);
}

@keyframes premium-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.premium-hero h1 {
    font-family: var(--premium-font);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 800;
    color: var(--premium-ink);
}

html.dark .premium-hero h1 {
    color: #f5f7fa;
}

.premium-hero-subtitle {
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--premium-muted);
    max-width: 42rem;
}

html.dark .premium-hero-subtitle {
    color: #98a2b3;
}

.premium-text-gradient {
    background: var(--premium-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Report form card ---------- */

.premium-report-card {
    position: relative;
    border-radius: var(--premium-radius-lg);
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-lg);
    padding: .5rem;
    transition: box-shadow .3s ease, transform .3s ease;
}

.premium-report-card:focus-within {
    box-shadow: 0 22px 48px -14px rgba(0, 158, 105, .34), 0 8px 20px -8px rgba(16, 24, 40, .12);
}

html.dark .premium-report-card {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
}

.premium-report-card .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1.0625rem;
    padding: .9rem 1.25rem;
    color: var(--premium-ink);
}

html.dark .premium-report-card .form-control {
    color: #f5f7fa;
}

.premium-report-card .form-control:focus {
    background: transparent;
}

.premium-report-card .btn {
    border-radius: calc(var(--premium-radius-lg) - .55rem);
}

/* Quick-fill chips */

.premium-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    color: var(--premium-muted);
    font-size: .8125rem;
    font-weight: 600;
    padding: .4rem .9rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--premium-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
    font-family: var(--premium-font);
    line-height: 1.2;
}

.premium-chip:hover,
.premium-chip:focus {
    color: var(--premium-primary-dark);
    border-color: rgba(0, 158, 105, .4);
    background: rgba(0, 158, 105, .06);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px rgba(0, 158, 105, .35);
}

.premium-chip.is-filled {
    border-color: rgba(0, 158, 105, .5);
    background: rgba(0, 158, 105, .1);
    color: var(--premium-primary-dark);
    animation: premium-pop .4s ease;
}

@keyframes premium-pop {
    0% { transform: scale(.92); }
    55% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

html.dark .premium-chip {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
    color: #98a2b3;
}

html.dark .premium-chip:hover,
html.dark .premium-chip:focus {
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .45);
    background: rgba(32, 201, 151, .12);
}

html.dark .premium-chip.is-filled {
    background: rgba(32, 201, 151, .18);
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .5);
}

.premium-hero-hints {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--premium-muted);
    font-size: .875rem;
}

html.dark .premium-hero-hints {
    color: #98a2b3;
}

.premium-hero-hints .badge {
    background: rgba(0, 158, 105, .08);
    color: var(--premium-primary-dark);
    border: 1px solid rgba(0, 158, 105, .18);
    font-weight: 600;
    padding: .4rem .75rem;
}

html.dark .premium-hero-hints .badge {
    background: rgba(32, 201, 151, .12);
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .22);
}

/* ---------- Product preview (hero visual) ---------- */

.premium-hero-preview {
    position: relative;
    max-width: 56rem;
    margin: 3.25rem auto 0;
    perspective: 1200px;
}

.premium-preview-shell {
    position: relative;
    z-index: 1;
    border-radius: calc(var(--premium-radius-lg) + .25rem);
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    box-shadow: 0 30px 70px -20px rgba(16, 24, 40, .25), 0 12px 30px -14px rgba(0, 158, 105, .18);
    overflow: hidden;
    transform: rotateX(0deg);
    animation: premium-preview-in 1s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: .25s;
}

@keyframes premium-preview-in {
    from { opacity: 0; transform: translateY(46px) rotateX(8deg) scale(.97); }
    to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

html.dark .premium-preview-shell {
    background: rgba(13, 20, 18, .92);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
}

/* Preview — top chrome bar */
.premium-preview-top {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem 1.25rem;
    border-bottom: 1px solid var(--premium-border);
    background: var(--premium-surface-2);
}

html.dark .premium-preview-top {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
}

.premium-preview-dots {
    display: flex;
    gap: .375rem;
    flex-shrink: 0;
}

.premium-preview-dot {
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
}

.premium-preview-dot:nth-child(1) { background: #ff5f57; }
.premium-preview-dot:nth-child(2) { background: #febc2e; }
.premium-preview-dot:nth-child(3) { background: #28c840; }

.premium-preview-url {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--premium-muted);
    direction: ltr;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-preview-url svg {
    margin-right: .375rem;
    vertical-align: -2px;
}

[dir="rtl"] .premium-preview-url svg {
    margin-right: 0;
    margin-left: .375rem;
}

.premium-preview-tag {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .1);
    border: 1px solid rgba(0, 158, 105, .2);
    padding: .25rem .65rem;
    border-radius: 999px;
    letter-spacing: .02em;
}

html.dark .premium-preview-tag {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .12);
    border-color: rgba(32, 201, 151, .25);
}

.premium-preview-tag::before {
    content: "";
    width: .4375rem;
    height: .4375rem;
    border-radius: 50%;
    background: var(--premium-primary);
}

/* Preview — body grid */
.premium-preview-body {
    display: grid;
    grid-template-columns: 15rem 1fr;
    min-height: 14rem;
}

@media (max-width: 767.98px) {
    .premium-preview-body {
        grid-template-columns: 1fr;
    }

    .premium-preview-score {
        border-right: 0 !important;
        border-bottom: 1px solid var(--premium-border);
        padding: 1.75rem 1.25rem 1.5rem !important;
    }

    .premium-preview-bars {
        padding: 1.5rem 1.25rem 1.75rem !important;
    }
}

/* Score ring */
.premium-preview-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .875rem;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--premium-border);
    background:
        radial-gradient(220px 160px at 50% 0%, rgba(32, 201, 151, .1), transparent 70%);
}

html.dark .premium-preview-score {
    border-color: rgba(255, 255, 255, .08);
}

.premium-score-ring {
    position: relative;
    width: 8.5rem;
    height: 8.5rem;
    filter: drop-shadow(0 10px 20px rgba(0, 158, 105, .3));
}

.premium-score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.premium-score-ring-track {
    fill: none;
    stroke: rgba(16, 24, 40, .08);
    stroke-width: 11;
}

html.dark .premium-score-ring-track {
    stroke: rgba(255, 255, 255, .09);
}

.premium-score-ring-value {
    fill: none;
    stroke: url(#premiumScoreGrad);
    stroke-width: 11;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1.4s cubic-bezier(.16, 1, .3, 1);
    transition-delay: .2s;
}

.premium-preview-shell.is-loaded .premium-score-ring-value {
    stroke-dashoffset: 39.2; /* 88% */
}

.premium-score-number {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--premium-font);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--premium-ink);
}

html.dark .premium-score-number {
    color: #f5f7fa;
}

.premium-score-label {
    position: absolute;
    top: 68%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--premium-muted);
}

html.dark .premium-score-label {
    color: #98a2b3;
}

.premium-score-caption {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--premium-muted);
    text-align: center;
}

html.dark .premium-score-caption {
    color: #98a2b3;
}

/* Score bars */
.premium-preview-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.375rem;
    padding: 2rem 2.25rem;
}

.premium-preview-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}

.premium-preview-bar-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--premium-ink);
}

html.dark .premium-preview-bar-label {
    color: #e6eaf0;
}

.premium-preview-bar-label svg {
    color: var(--premium-primary);
}

html.dark .premium-preview-bar-label svg {
    color: var(--premium-accent);
}

.premium-preview-bar-meter {
    font-size: .8125rem;
    font-weight: 800;
    color: var(--premium-primary-dark);
    letter-spacing: -.01em;
}

html.dark .premium-preview-bar-meter {
    color: var(--premium-accent);
}

.premium-bar {
    height: .5rem;
    border-radius: 999px;
    background: rgba(16, 24, 40, .07);
    overflow: hidden;
}

html.dark .premium-bar {
    background: rgba(255, 255, 255, .08);
}

.premium-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--premium-grad);
    width: 0;
    transition: width 1.2s cubic-bezier(.16, 1, .3, 1);
    transition-delay: .45s;
}

.premium-preview-shell.is-loaded .premium-bar-fill {
    width: var(--premium-bar-w, 0%);
}

/* Floating status chips over the preview */
.premium-preview-float {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    border-radius: .875rem;
    padding: .625rem 1rem;
    box-shadow: var(--premium-shadow-md);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--premium-ink);
    animation: premium-preview-float 6s ease-in-out infinite;
}

@media (max-width: 575.98px) {
    .premium-preview-float {
        display: none;
    }
}

html.dark .premium-preview-float {
    background: rgba(20, 30, 27, .95);
    border-color: rgba(255, 255, 255, .1);
    color: #f5f7fa;
}

.premium-preview-float.top-left {
    top: -1.1rem;
    left: -1.25rem;
}

.premium-preview-float.bottom-right {
    bottom: -1.1rem;
    right: -1.25rem;
    animation-delay: 3s;
}

[dir="rtl"] .premium-preview-float.top-left {
    left: auto;
    right: -1.25rem;
}

[dir="rtl"] .premium-preview-float.bottom-right {
    right: auto;
    left: -1.25rem;
}

.premium-preview-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .5rem;
    background: rgba(0, 158, 105, .12);
    color: var(--premium-primary);
    flex-shrink: 0;
}

html.dark .premium-preview-status-icon {
    background: rgba(32, 201, 151, .15);
    color: var(--premium-accent);
}

@keyframes premium-preview-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---------- Skeleton loaders ---------- */

.premium-skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(16, 24, 40, .07);
    border-radius: .5rem;
}

html.dark .premium-skeleton {
    background: rgba(255, 255, 255, .08);
}

.premium-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    animation: premium-shimmer 1.5s infinite;
}

html.dark .premium-skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
}

@keyframes premium-shimmer {
    100% { transform: translateX(100%); }
}

.premium-preview-loader {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 2.25rem;
    min-height: 14rem;
}

@media (max-width: 767.98px) {
    .premium-preview-loader {
        min-height: 11rem;
    }
}

.premium-preview-content {
    opacity: 0;
}

.premium-preview-shell.is-loaded .premium-preview-loader {
    display: none;
}

.premium-preview-shell.is-loaded .premium-preview-content {
    opacity: 1;
    transition: opacity .6s ease .15s;
}

/* ---------- Logo bar ---------- */

.premium-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    color: var(--premium-muted);
    opacity: .75;
}

html.dark .premium-logos {
    color: #98a2b3;
}

.premium-logos svg {
    height: 1.75rem;
    width: auto;
    fill: currentColor;
    transition: fill .2s ease, opacity .2s ease;
}

.premium-logos:hover svg {
    opacity: .6;
}

.premium-logos svg:hover {
    opacity: 1;
    fill: var(--premium-primary-dark);
}

html.dark .premium-logos svg:hover {
    fill: var(--premium-accent);
}

/* ---------- Sections ---------- */

.premium-section {
    padding: 5.5rem 0;
}

.premium-section-head {
    max-width: 46rem;
    margin: 0 auto 3.25rem;
}

.premium-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--premium-primary-dark);
}

.premium-eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--premium-grad);
}

[dir="rtl"] .premium-eyebrow::before {
    display: none;
}

[dir="rtl"] .premium-eyebrow::after {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--premium-grad);
}

html.dark .premium-eyebrow {
    color: var(--premium-accent);
}

.premium-section h2 {
    font-family: var(--premium-font);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--premium-ink);
    line-height: 1.15;
}

html.dark .premium-section h2 {
    color: #f5f7fa;
}

.premium-section-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--premium-muted);
}

html.dark .premium-section-lead {
    color: #98a2b3;
}

/* ---------- Stats ---------- */

.premium-stats {
    background: var(--premium-surface-2);
    border-top: 1px solid var(--premium-border);
    border-bottom: 1px solid var(--premium-border);
}

html.dark .premium-stats {
    background: #0b1210;
    border-color: rgba(255, 255, 255, .08);
}

.premium-stat {
    text-align: center;
    padding: .5rem;
}

.premium-stat-value {
    font-family: var(--premium-font);
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.premium-stat-label {
    color: var(--premium-muted);
    font-size: .9375rem;
    font-weight: 500;
    margin-top: .35rem;
}

html.dark .premium-stat-label {
    color: #98a2b3;
}

.premium-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: var(--premium-grad-soft);
    color: var(--premium-primary-dark);
    margin-bottom: 1rem;
    transition: transform .3s ease, box-shadow .3s ease;
}

.premium-stat:hover .premium-stat-icon {
    transform: translateY(-4px) rotate(-4deg);
    box-shadow: 0 12px 24px -10px rgba(0, 158, 105, .45);
}

html.dark .premium-stat-icon {
    color: var(--premium-accent);
}

/* ---------- Feature cards ---------- */

.premium-feature-card {
    position: relative;
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--premium-radius);
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-sm);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    overflow: hidden;
}

.premium-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--premium-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .32s ease;
}

.premium-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--premium-shadow-md);
    border-color: rgba(0, 158, 105, .3);
}

.premium-feature-card:hover::before {
    transform: scaleX(1);
}

html.dark .premium-feature-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}

html.dark .premium-feature-card:hover {
    border-color: rgba(32, 201, 151, .4);
}

.premium-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--premium-grad-soft);
    color: var(--premium-primary-dark);
    margin-bottom: 1.25rem;
    transition: transform .28s ease, background .28s ease, color .28s ease;
}

.premium-feature-card:hover .premium-feature-icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--premium-grad);
    color: #fff;
}

html.dark .premium-feature-icon {
    color: var(--premium-accent);
}

.premium-feature-card h3 {
    font-family: var(--premium-font);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--premium-ink);
    margin-bottom: .5rem;
}

html.dark .premium-feature-card h3 {
    color: #f5f7fa;
}

.premium-feature-card p {
    color: var(--premium-muted);
    font-size: .9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

html.dark .premium-feature-card p {
    color: #98a2b3;
}

/* ---------- Tools grid ---------- */

.premium-tool-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem 1.375rem;
    border-radius: var(--premium-radius);
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-sm);
    text-decoration: none !important;
    color: var(--premium-ink);
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
    overflow: hidden;
}

.premium-tool-card::after {
    content: "";
    position: absolute;
    right: -2.5rem;
    top: -2.5rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--premium-grad-soft);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    transform: scale(.6);
}

.premium-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--premium-shadow-md);
    border-color: rgba(0, 158, 105, .35);
    color: var(--premium-ink);
}

.premium-tool-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

html.dark .premium-tool-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
    color: #f5f7fa;
}

html.dark .premium-tool-card:hover {
    border-color: rgba(32, 201, 151, .45);
    color: #f5f7fa;
}

.premium-tool-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: .875rem;
    background: var(--premium-grad-soft);
    color: var(--premium-primary-dark);
    transition: transform .26s ease, background .26s ease, color .26s ease;
}

.premium-tool-card:hover .premium-tool-icon {
    transform: scale(1.08);
    background: var(--premium-grad);
    color: #fff;
}

html.dark .premium-tool-icon {
    color: var(--premium-accent);
}

.premium-tool-name {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.3;
}

.premium-tool-arrow {
    position: relative;
    z-index: 1;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--premium-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .26s ease, transform .26s ease, color .26s ease;
}

[dir="rtl"] .premium-tool-arrow {
    margin-left: 0;
    margin-right: auto;
    transform: translateX(6px);
}

.premium-tool-card:hover .premium-tool-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--premium-primary-dark);
}

html.dark .premium-tool-card:hover .premium-tool-arrow {
    color: var(--premium-accent);
}

/* ---------- How it works ---------- */

.premium-step {
    position: relative;
    text-align: center;
    padding: 2rem 1.25rem;
}

.premium-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--premium-grad);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 12px 28px -10px rgba(0, 158, 105, .55);
    margin-bottom: 1.25rem;
    transition: transform .3s ease, box-shadow .3s ease;
}

.premium-step:hover .premium-step-num {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 34px -12px rgba(0, 158, 105, .65);
}

.premium-step h3 {
    font-family: var(--premium-font);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--premium-ink);
    margin-bottom: .5rem;
}

html.dark .premium-step h3 {
    color: #f5f7fa;
}

.premium-step p {
    color: var(--premium-muted);
    font-size: .9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

html.dark .premium-step p {
    color: #98a2b3;
}

.premium-step-line {
    position: absolute;
    top: 3.5rem;
    left: 60%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 158, 105, .35), rgba(13, 202, 240, .35));
    border-radius: 2px;
}

/* ---------- Badges (soft) ---------- */

.premium-badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    background: rgba(0, 158, 105, .08);
    color: var(--premium-primary-dark);
    border: 1px solid rgba(0, 158, 105, .18);
}

html.dark .premium-badge-soft {
    background: rgba(32, 201, 151, .12);
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .22);
}

/* ---------- Pricing ---------- */

.premium-pricing .btn-group .btn {
    border-radius: 999px !important;
    border: 1px solid var(--premium-border) !important;
    font-weight: 600;
    padding: .5rem 1.5rem;
    color: var(--premium-muted);
    background: var(--premium-surface);
    transition: all .2s ease;
}

.premium-pricing .btn-group .btn:hover {
    color: var(--premium-primary-dark);
    border-color: rgba(0, 158, 105, .4) !important;
    background: rgba(0, 158, 105, .05);
}

.premium-pricing .btn-group .btn.active {
    background: var(--premium-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -8px rgba(0, 158, 105, .55);
}

.premium-pricing .card {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    border: 1px solid var(--premium-border) !important;
    border-radius: var(--premium-radius) !important;
}

.premium-pricing .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--premium-shadow-md) !important;
    border-color: rgba(0, 158, 105, .35) !important;
}

html.dark .premium-pricing .card {
    background: rgba(255, 255, 255, .04) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

.premium-pricing .badge-primary {
    background: var(--premium-grad);
    border: 0;
    font-weight: 700;
    letter-spacing: .06em;
    box-shadow: 0 6px 14px -6px rgba(0, 158, 105, .5);
}

.premium-pricing .card-body {
    padding: 1.75rem;
}

.premium-pricing .h1 {
    font-family: var(--premium-font);
    letter-spacing: -.03em;
}

.premium-pricing .card-footer {
    background: transparent;
    border-top: 1px solid var(--premium-border);
    padding-top: 1rem !important;
}

html.dark .premium-pricing .card-footer {
    border-color: rgba(255, 255, 255, .08);
}

.premium-pricing .btn-primary {
    background: var(--premium-grad);
    border: 0;
    border-radius: .75rem;
    font-weight: 700;
    box-shadow: 0 10px 24px -8px rgba(0, 158, 105, .55);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.premium-pricing .btn-primary:hover,
.premium-pricing .btn-primary:focus {
    background: var(--premium-grad);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(0, 158, 105, .65);
    filter: brightness(1.04);
}

.premium-pricing .btn-primary.disabled,
.premium-pricing .btn-primary:disabled {
    background: var(--premium-border);
    box-shadow: none;
    transform: none;
    color: var(--premium-muted);
}

.premium-pricing .btn-outline-primary {
    border: 1px solid rgba(0, 158, 105, .4);
    color: var(--premium-primary-dark);
    font-weight: 600;
    border-radius: .75rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.premium-pricing .btn-outline-primary:hover,
.premium-pricing .btn-outline-primary:focus {
    background: var(--premium-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 26px -8px rgba(0, 158, 105, .55);
    transform: translateY(-2px);
}

/* "Most popular" featured plan */
.premium-pricing .plan.featured {
    border: 2px solid var(--premium-primary) !important;
    box-shadow: 0 24px 54px -18px rgba(0, 158, 105, .45) !important;
    position: relative;
    overflow: hidden;
}

.premium-pricing .plan.featured::before {
    content: attr(data-featured-label);
    position: absolute;
    top: 2rem;
    right: -3.75rem;
    transform: rotate(45deg);
    background: var(--premium-grad);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .5rem 4.5rem;
    box-shadow: 0 8px 16px -6px rgba(0, 158, 105, .5);
    z-index: 1;
    white-space: nowrap;
    line-height: 1;
}

[dir="rtl"] .premium-pricing .plan.featured::before {
    right: auto;
    left: -2.1rem;
    transform: rotate(-45deg);
}

/* ---------- CTA ---------- */

.premium-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--premium-radius-lg);
    background: var(--premium-grad);
    background-size: 160% 160%;
    box-shadow: var(--premium-shadow-lg);
    animation: premium-cta-shift 14s ease-in-out infinite alternate;
}

@keyframes premium-cta-shift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

.premium-cta::before,
.premium-cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.premium-cta::before {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: -7rem;
}

.premium-cta::after {
    width: 12rem;
    height: 12rem;
    left: -4rem;
    bottom: -6rem;
}

.premium-cta .container {
    position: relative;
    z-index: 1;
}

.premium-cta h2 {
    font-family: var(--premium-font);
    color: #fff;
}

.premium-cta p {
    color: rgba(255, 255, 255, .9);
}

/* ---------- Alerts ---------- */

.premium-alerts .alert {
    border-radius: var(--premium-radius);
    border: 1px solid var(--premium-border);
    border-left-width: 4px;
    box-shadow: var(--premium-shadow-sm);
    font-weight: 500;
    padding: 1rem 1.25rem;
}

[dir="rtl"] .premium-alerts .alert {
    border-left-width: 1px;
    border-right-width: 4px;
}

.premium-alerts .alert-success {
    background: rgba(0, 158, 105, .06);
    border-left-color: #009e69;
    color: #007d54;
}

[dir="rtl"] .premium-alerts .alert-success {
    border-right-color: #009e69;
}

.premium-alerts .alert-danger {
    background: rgba(220, 53, 69, .05);
    border-left-color: #dc3545;
    color: #b02a37;
}

[dir="rtl"] .premium-alerts .alert-danger {
    border-right-color: #dc3545;
}

html.dark .premium-alerts .alert {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
    color: #d1d5db;
}

html.dark .premium-alerts .alert-success {
    background: rgba(32, 201, 151, .08);
    border-left-color: #20c997;
    color: var(--premium-accent);
}

[dir="rtl"] html.dark .premium-alerts .alert-success {
    border-right-color: #20c997;
}

html.dark .premium-alerts .alert-danger {
    background: rgba(248, 113, 113, .08);
    border-left-color: #f87171;
    color: #f87171;
}

[dir="rtl"] html.dark .premium-alerts .alert-danger {
    border-right-color: #f87171;
}

/* ---------- Modals ---------- */

.premium-modal .modal-content {
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius-lg);
    box-shadow: 0 30px 70px -20px rgba(16, 24, 40, .3);
    overflow: hidden;
}

html.dark .premium-modal .modal-content {
    background: #0e1515;
    border-color: rgba(255, 255, 255, .1);
    color: #e6eaf0;
}

.premium-modal .modal-header {
    border-bottom: 1px solid var(--premium-border);
    padding: 1.25rem 1.5rem;
}

html.dark .premium-modal .modal-header {
    border-color: rgba(255, 255, 255, .08);
}

.premium-modal .modal-body {
    padding: 1.5rem;
}

.premium-modal .modal-footer {
    border-top: 1px solid var(--premium-border);
    padding: 1.25rem 1.5rem;
}

html.dark .premium-modal .modal-footer {
    border-color: rgba(255, 255, 255, .08);
}

.premium-modal .close {
    opacity: .6;
    transition: opacity .2s ease, transform .2s ease;
}

.premium-modal .close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ---------- Dropdowns ---------- */

.premium-dropdown .dropdown-menu {
    border: 1px solid var(--premium-border);
    border-radius: .875rem;
    box-shadow: var(--premium-shadow-md);
    padding: .375rem;
    min-width: 14rem;
}

html.dark .premium-dropdown .dropdown-menu {
    background: #101818;
    border-color: rgba(255, 255, 255, .1);
}

.premium-dropdown .dropdown-item {
    border-radius: .625rem;
    font-weight: 500;
    padding: .5rem .875rem;
    transition: background .15s ease, color .15s ease;
}

.premium-dropdown .dropdown-item:hover,
.premium-dropdown .dropdown-item:focus {
    background: rgba(0, 158, 105, .07);
    color: var(--premium-primary-dark);
}

html.dark .premium-dropdown .dropdown-item {
    color: #d1d5db;
}

html.dark .premium-dropdown .dropdown-item:hover,
html.dark .premium-dropdown .dropdown-item:focus {
    background: rgba(32, 201, 151, .12);
    color: var(--premium-accent);
}

/* ---------- Tabs ---------- */

.premium-tabs .nav-tabs {
    border-bottom: 1px solid var(--premium-border);
}

.premium-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--premium-muted);
    font-weight: 600;
    font-size: .9375rem;
    padding: .75rem 1.125rem;
    border-radius: .625rem .625rem 0 0;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.premium-tabs .nav-link:hover,
.premium-tabs .nav-link:focus {
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .06);
}

html.dark .premium-tabs .nav-link {
    color: #98a2b3;
}

html.dark .premium-tabs .nav-link:hover,
html.dark .premium-tabs .nav-link:focus {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .08);
}

.premium-tabs .nav-link.active {
    color: var(--premium-primary-dark);
    background: transparent;
    border-bottom-color: var(--premium-primary);
    font-weight: 700;
}

html.dark .premium-tabs .nav-link.active {
    color: var(--premium-accent);
    border-bottom-color: var(--premium-accent);
}

/* ---------- Tables ---------- */

.premium-table .table thead th {
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--premium-muted);
    background: var(--premium-surface-2);
    border-bottom: 1px solid var(--premium-border);
    padding: .875rem 1.25rem;
}

html.dark .premium-table .table thead th {
    background: rgba(255, 255, 255, .03);
    color: #98a2b3;
    border-color: rgba(255, 255, 255, .08);
}

.premium-table .table td {
    padding: .875rem 1.25rem;
    border-color: var(--premium-border);
    vertical-align: middle;
}

html.dark .premium-table .table td {
    border-color: rgba(255, 255, 255, .08);
    color: #d1d5db;
}

.premium-table .table tbody tr {
    transition: background .15s ease;
}

.premium-table .table tbody tr:hover {
    background: rgba(0, 158, 105, .04);
}

html.dark .premium-table .table tbody tr:hover {
    background: rgba(32, 201, 151, .05);
}

/* ---------- Empty state ---------- */

.premium-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--premium-border);
    border-radius: var(--premium-radius);
    background: var(--premium-surface-2);
}

html.dark .premium-empty {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .12);
}

.premium-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--premium-grad-soft);
    color: var(--premium-primary-dark);
    margin-bottom: 1rem;
}

html.dark .premium-empty-icon {
    color: var(--premium-accent);
}

.premium-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--premium-ink);
    margin-bottom: .375rem;
}

html.dark .premium-empty h3 {
    color: #f5f7fa;
}

.premium-empty p {
    color: var(--premium-muted);
    font-size: .9375rem;
    max-width: 22rem;
    margin-bottom: 1.25rem;
}

html.dark .premium-empty p {
    color: #98a2b3;
}

/* ---------- Form error shake ---------- */

.premium-form-error {
    animation: premium-shake .5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes premium-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-7px); }
    40%, 60% { transform: translateX(7px); }
}

/* ---------- Scroll reveal ---------- */

.premium-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
}

.premium-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Back to top ---------- */

.premium-backtotop {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1020;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .875rem;
    background: var(--premium-grad);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 14px 30px -8px rgba(0, 158, 105, .55);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.premium-backtotop.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.premium-backtotop:hover,
.premium-backtotop:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(0, 158, 105, .7);
}

[dir="rtl"] .premium-backtotop {
    right: auto;
    left: 1.25rem;
}

/* ---------- Premium auth pages ---------- */

.premium-auth {
    background:
        radial-gradient(1100px 480px at 90% -10%, rgba(13, 202, 240, .12), transparent 60%),
        radial-gradient(900px 520px at 0% 110%, rgba(32, 201, 151, .14), transparent 60%),
        linear-gradient(180deg, #f6fefb 0%, #ffffff 100%);
}

html.dark .premium-auth {
    background:
        radial-gradient(1100px 480px at 90% -10%, rgba(13, 202, 240, .1), transparent 60%),
        radial-gradient(900px 520px at 0% 110%, rgba(32, 201, 151, .12), transparent 60%),
        linear-gradient(180deg, #0a1410 0%, #030606 100%);
}

.premium-auth .card {
    border: 1px solid var(--premium-border) !important;
    border-radius: var(--premium-radius-lg) !important;
    box-shadow: var(--premium-shadow-lg) !important;
}

html.dark .premium-auth .card {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12) !important;
}

.premium-auth .card-body {
    padding: 2.5rem;
}

@media (max-width: 991.98px) {
    .premium-auth .card-body {
        padding: 1.75rem;
    }
}

.premium-auth .card-footer {
    background: transparent !important;
    border-top: 1px solid var(--premium-border);
    padding: 1.25rem 2.5rem;
}

html.dark .premium-auth .card-footer {
    border-color: rgba(255, 255, 255, .08);
}

.premium-auth .form-control {
    border-radius: .75rem;
    padding: .65rem 1rem;
    border-color: var(--premium-border);
    background: var(--premium-surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

html.dark .premium-auth .form-control {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #f5f7fa;
}

.premium-auth .form-control:focus {
    border-color: rgba(0, 158, 105, .5);
    box-shadow: 0 0 0 4px rgba(0, 158, 105, .12);
}

html.dark .premium-auth .form-control:focus {
    border-color: rgba(32, 201, 151, .5);
    box-shadow: 0 0 0 4px rgba(32, 201, 151, .12);
}

.premium-auth .form-group label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--premium-ink);
}

html.dark .premium-auth .form-group label {
    color: #e6eaf0;
}

.premium-auth .btn-primary {
    background: var(--premium-grad);
    border: 0;
    border-radius: .75rem;
    font-weight: 700;
    box-shadow: 0 10px 24px -8px rgba(0, 158, 105, .55);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.premium-auth .btn-primary:hover,
.premium-auth .btn-primary:focus {
    background: var(--premium-grad);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(0, 158, 105, .65);
    filter: brightness(1.04);
}

.premium-auth .btn-dark {
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    color: var(--premium-ink);
    border-radius: .75rem;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.premium-auth .btn-dark:hover,
.premium-auth .btn-dark:focus {
    background: var(--premium-grad-soft);
    border-color: rgba(0, 158, 105, .35);
    color: var(--premium-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(0, 158, 105, .35);
}

html.dark .premium-auth .btn-dark {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #f5f7fa;
}

html.dark .premium-auth .btn-dark:hover,
html.dark .premium-auth .btn-dark:focus {
    background: rgba(32, 201, 151, .12);
    border-color: rgba(32, 201, 151, .4);
    color: var(--premium-accent);
}

.premium-auth .card > .row > [class*="col-"]:last-child {
    background: linear-gradient(135deg, #0b1a15 0%, #0e2b21 55%, #113a4a 100%);
}

.premium-auth .card .bg-dark {
    background-color: transparent !important;
}

/* ---------- Premium auth side panel ---------- */

.premium-auth-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1a15 0%, #0e2b21 55%, #113a4a 100%);
}

.premium-auth-panel::before,
.premium-auth-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(32, 201, 151, .12);
}

.premium-auth-panel::before {
    width: 20rem;
    height: 20rem;
    right: -6rem;
    top: -7rem;
}

.premium-auth-panel::after {
    width: 14rem;
    height: 14rem;
    left: -5rem;
    bottom: -7rem;
    background: rgba(13, 202, 240, .1);
}

.premium-auth-panel > .card-body {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.premium-auth-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);
}

.premium-auth-panel .opacity-90 {
    opacity: .92;
}

/* Keep panel text readable in both light and dark themes */
.premium-auth-panel .text-light,
html.dark .premium-auth-panel .text-light,
.premium-auth-panel .premium-auth-features .text-light,
html.dark .premium-auth-panel .premium-auth-features .text-light {
    color: #ffffff !important;
}

.premium-auth-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: .5rem;
    background: rgba(32, 201, 151, .2);
    color: #20c997;
}

.premium-auth-card .premium-brand {
    margin-bottom: 2rem;
}

.premium-auth-card .card-body .h3,
.premium-auth-card .card-body h3 {
    letter-spacing: -.02em;
}

.premium-auth-card .card-footer a,
.premium-auth .form-group a {
    font-weight: 600;
}

/* Social buttons inside the auth card */
.premium-auth .btn-dark {
    background: var(--premium-surface);
    border: 1px solid var(--premium-border);
    color: var(--premium-ink);
    border-radius: .75rem;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.premium-auth .btn-dark:hover,
.premium-auth .btn-dark:focus {
    background: var(--premium-grad-soft);
    border-color: rgba(0, 158, 105, .35);
    color: var(--premium-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(0, 158, 105, .35);
}

html.dark .premium-auth .btn-dark {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #f5f7fa;
}

html.dark .premium-auth .btn-dark:hover,
html.dark .premium-auth .btn-dark:focus {
    background: rgba(32, 201, 151, .12);
    border-color: rgba(32, 201, 151, .4);
    color: var(--premium-accent);
}

/* ---------- Premium footer ---------- */

.premium-footer {
    position: relative;
    border-top: 1px solid var(--premium-border);
    background: var(--premium-surface);
}

.premium-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--premium-grad);
    opacity: .85;
}

html.dark .premium-footer {
    background: #0a1210;
    border-color: rgba(255, 255, 255, .08);
}

.premium-footer-top {
    padding: 3.5rem 0 2.5rem;
}

.premium-footer-grid {
    row-gap: 3rem;
    column-gap: 2rem;
}

@media (min-width: 992px) {
    .premium-footer-grid > [class*="col-"] {
        padding-right: 3rem;
    }

    .premium-footer-grid > [class*="col-"]:last-child {
        padding-right: 1rem;
    }
}

.premium-footer-logo {
    display: inline-block;
}

.premium-footer-text {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: var(--premium-muted);
    font-size: .9375rem;
    line-height: 1.65;
    max-width: 24rem;
}

html.dark .premium-footer-text {
    color: #98a2b3;
}

.premium-footer-socials .nav {
    gap: .5rem;
}

.premium-footer-socials .nav-link {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .875rem;
    background: var(--premium-grad-soft);
    color: var(--premium-primary-dark);
    margin: 0;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.premium-footer-socials .nav-link:hover,
.premium-footer-socials .nav-link:focus {
    background: var(--premium-grad);
    color: #fff;
    transform: translateY(-3px) rotate(-4deg);
    box-shadow: 0 10px 22px -8px rgba(0, 158, 105, .5);
}

html.dark .premium-footer-socials .nav-link {
    color: var(--premium-accent);
    background: rgba(255, 255, 255, .06);
}

.premium-footer-heading {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--premium-ink);
    margin-bottom: 1.1rem;
}

html.dark .premium-footer-heading {
    color: #f5f7fa;
}

.premium-footer-links {
    gap: .375rem;
}

.premium-footer-links .nav-link {
    display: inline-block;
    color: var(--premium-muted);
    padding-top: .375rem;
    padding-bottom: .375rem;
    padding-left: 0;
    padding-right: 0;
    transition: color .2s ease, transform .2s ease;
}

.premium-footer-links .nav-link:hover,
.premium-footer-links .nav-link:focus {
    color: var(--premium-primary-dark);
    transform: translateX(4px);
}

html.dark .premium-footer-links .nav-link {
    color: #98a2b3;
}

html.dark .premium-footer-links .nav-link:hover,
html.dark .premium-footer-links .nav-link:focus {
    color: var(--premium-accent);
}

html[dir="rtl"] .premium-footer-links .nav-link:hover,
html[dir="rtl"] .premium-footer-links .nav-link:focus {
    transform: translateX(-4px);
}

.premium-footer-bottom {
    background: var(--premium-surface-2);
    border-top: 1px solid var(--premium-border);
    padding: 1.5rem 0;
}

html.dark .premium-footer-bottom {
    background: #0b1210;
    border-color: rgba(255, 255, 255, .08);
}

.premium-footer-bottom .nav {
    gap: .75rem;
    row-gap: .75rem;
}

.premium-footer-bottom .nav-link {
    color: var(--premium-muted);
    transition: color .2s ease;
}

.premium-footer-bottom .nav-link:hover,
.premium-footer-bottom .nav-link:focus {
    color: var(--premium-primary-dark);
}

html.dark .premium-footer-bottom .nav-link {
    color: #98a2b3;
}

html.dark .premium-footer-bottom .nav-link:hover,
html.dark .premium-footer-bottom .nav-link:focus {
    color: var(--premium-accent);
}

.premium-footer-copy {
    font-size: .875rem;
}

.premium-footer-tool {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--premium-border);
    background: var(--premium-surface);
    color: var(--premium-muted);
    font-weight: 600;
    font-size: .875rem;
    box-shadow: var(--premium-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.premium-footer-tool:hover,
.premium-footer-tool:focus {
    color: var(--premium-primary-dark);
    border-color: rgba(0, 158, 105, .35);
    background: var(--premium-grad-soft);
    box-shadow: 0 8px 18px -6px rgba(0, 158, 105, .35);
    transform: translateY(-2px);
}

html.dark .premium-footer-tool {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
    color: #98a2b3;
}

html.dark .premium-footer-tool:hover,
html.dark .premium-footer-tool:focus {
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .45);
    background: rgba(32, 201, 151, .1);
}

html.dark .premium-footer-tool {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #98a2b3;
}

html.dark .premium-footer-tool:hover,
html.dark .premium-footer-tool:focus {
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .4);
    background: rgba(32, 201, 151, .1);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .premium-hero,
    .premium-feature-card,
    .premium-tool-card,
    .premium-cta,
    .premium-pricing .card,
    .premium-badge,
    .premium-preview-float,
    .premium-preview-shell {
        animation: none;
        transition: none;
    }

    .premium-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .premium-skeleton::after {
        animation: none;
    }

    .premium-score-ring-value,
    .premium-bar-fill {
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 767.98px) {
    .premium-section {
        padding: 3.75rem 0;
    }

    .premium-section-head {
        margin-bottom: 2.25rem;
    }

    .premium-step-line {
        display: none;
    }

    .premium-report-card {
        padding: .75rem;
    }

    .premium-report-card .btn {
        width: 100%;
    }

    .premium-hero-preview {
        margin-top: 2.5rem;
    }

    .premium-footer-top {
        padding: 2.75rem 0 2rem;
    }

    .premium-footer-socials .nav-link {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* =========================================================
   Enterprise UX — Contact & Developer API documentation
   v5
   ========================================================= */

/* ---------- Enterprise page header ---------- */

.premium-page-top {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 380px at 92% -20%, rgba(13, 202, 240, .1), transparent 60%),
        radial-gradient(760px 420px at -10% 120%, rgba(32, 201, 151, .12), transparent 60%),
        linear-gradient(180deg, #f6fefb 0%, #ffffff 100%);
    border-bottom: 1px solid var(--premium-border);
}

html.dark .premium-page-top {
    background:
        radial-gradient(900px 380px at 92% -20%, rgba(13, 202, 240, .08), transparent 60%),
        radial-gradient(760px 420px at -10% 120%, rgba(32, 201, 151, .1), transparent 60%),
        linear-gradient(180deg, #0a1410 0%, #030606 100%);
    border-color: rgba(255, 255, 255, .08);
}

.premium-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--premium-primary-dark);
}

html.dark .premium-page-eyebrow {
    color: var(--premium-accent);
}

.premium-page-title {
    font-family: var(--premium-font);
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--premium-ink);
    line-height: 1.1;
}

html.dark .premium-page-title {
    color: #f5f7fa;
}

.premium-page-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--premium-muted);
    max-width: 38rem;
}

html.dark .premium-page-lead {
    color: #98a2b3;
}

/* ---------- Enterprise card ---------- */

.premium-card {
    position: relative;
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius);
    background: var(--premium-surface);
    box-shadow: var(--premium-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--premium-shadow-md);
    border-color: rgba(0, 158, 105, .3);
}

html.dark .premium-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}

.premium-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.125rem;
    background: var(--premium-grad-soft);
    color: var(--premium-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(0, 158, 105, .12);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

html.dark .premium-card-icon {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .12);
    box-shadow: inset 0 0 0 1px rgba(32, 201, 151, .25);
}

.premium-card:hover .premium-card-icon {
    transform: scale(1.06) rotate(-4deg);
    background: var(--premium-grad);
    color: #fff;
}

html.dark .premium-card-icon {
    color: var(--premium-accent);
}

.premium-card h3 {
    font-family: var(--premium-font);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--premium-ink);
    margin-bottom: .375rem;
}

html.dark .premium-card h3 {
    color: #f5f7fa;
}

.premium-card p {
    color: var(--premium-muted);
    font-size: .9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

html.dark .premium-card p {
    color: #98a2b3;
}

/* ---------- Contact ---------- */

.premium-contact-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.375rem;
}

/* Support tiles — horizontal cards with visible CTA button */
.premium-support-tile,
.premium-contact-topic {
    padding: 1.75rem;
    display: flex;
}

.premium-support-tile {
    flex-direction: column;
}

/* Contact topics — stacked full-width blocks, icon and text on one row */
.premium-contact-topic {
    flex-direction: row;
    align-items: center;
}

.premium-contact-topic .premium-card-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.premium-support-tile .premium-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.125rem;
}

.premium-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
    padding: .6875rem 1.25rem;
    border-radius: .875rem;
    background: var(--premium-grad);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    box-shadow: 0 10px 24px -8px rgba(0, 158, 105, .55);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.premium-support-tile:hover .premium-support-btn {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(0, 158, 105, .65);
    filter: brightness(1.04);
}

.premium-contact-form .form-group {
    margin-bottom: 1.375rem;
}

.premium-contact-form label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--premium-ink);
    margin-bottom: .5rem;
}

html.dark .premium-contact-form label {
    color: #e6eaf0;
}

.premium-contact-form .form-control {
    border-radius: .75rem;
    border: 1px solid var(--premium-border);
    background: var(--premium-surface);
    padding: .6875rem 1rem;
    font-size: .9375rem;
    color: var(--premium-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.premium-contact-form .form-control:focus {
    border-color: rgba(0, 158, 105, .55);
    box-shadow: 0 0 0 4px rgba(0, 158, 105, .12);
}

html.dark .premium-contact-form .form-control {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
    color: #f5f7fa;
}

html.dark .premium-contact-form .form-control:focus {
    border-color: rgba(32, 201, 151, .5);
    box-shadow: 0 0 0 4px rgba(32, 201, 151, .12);
}

.premium-contact-form .btn {
    border-radius: .75rem;
    font-weight: 700;
    padding: .75rem 1.5rem;
}

/* ---------- Developer docs shell ---------- */

.premium-docs {
    background: var(--premium-surface-2);
}

html.dark .premium-docs {
    background: #0b1210;
}

/* Docs top tabs — horizontal navigation */
.premium-docs-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .375rem;
    margin-bottom: 2.25rem;
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius-lg);
    background: var(--premium-surface);
    box-shadow: var(--premium-shadow-sm);
}

html.dark .premium-docs-nav {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}

.premium-docs-nav a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.125rem;
    border-radius: .875rem;
    font-weight: 600;
    font-size: .90625rem;
    color: var(--premium-muted);
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.premium-docs-nav a:hover,
.premium-docs-nav a:focus {
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .06);
}

.premium-docs-nav a.active {
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .1);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(0, 158, 105, .25);
}

html.dark .premium-docs-nav a {
    color: #98a2b3;
}

html.dark .premium-docs-nav a:hover,
html.dark .premium-docs-nav a:focus {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .1);
}

html.dark .premium-docs-nav a.active {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .16);
    box-shadow: inset 0 0 0 1px rgba(32, 201, 151, .3);
}

/* Mobile: horizontal scroll nav */
@media (max-width: 575.98px) {
    .premium-docs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.25rem 2rem;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .premium-docs-nav a {
        flex-shrink: 0;
    }
}

/* ---------- Doc cards ---------- */

.premium-doc-card {
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius);
    background: var(--premium-surface);
    box-shadow: var(--premium-shadow-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

html.dark .premium-doc-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}

.premium-doc-card-head {
    padding: 1.25rem 1.5rem 1.25rem;
}
.premium-doc-title {
    font-family: var(--premium-font);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--premium-ink);
    margin: .875rem 0 0;
}

html.dark .premium-doc-title {
    color: #f5f7fa;
}

.premium-doc-card-head > p {
    color: var(--premium-muted);
    font-size: .90625rem;
    margin-bottom: 0;
}
.premium-doc-card-head > p:last-child {
    margin-bottom: 0;
}
.premium-doc-card-head > .premium-doc-title + * {
    margin-top: .5rem;
}
.premium-doc-card-head > .premium-doc-title + p {
    margin-top: .5rem;
}
.premium-doc-card-head > p + .premium-doc-title {
    margin-top: .5rem;
}

html.dark .premium-doc-card-head > p {
    color: #98a2b3;
}

.premium-doc-card-body {
    padding: 0 1.5rem 1.5rem;
}

.premium-doc-path {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .875rem;
    font-weight: 600;
    color: var(--premium-ink);
    background: var(--premium-surface-2);
    border: 1px solid var(--premium-border);
    border-radius: .625rem;
    padding: .375rem .75rem;
    word-break: break-all;
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .premium-doc-path {
    text-align: right;
}

html.dark .premium-doc-path {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
    color: #e6eaf0;
}

/* ---------- HTTP method badges ---------- */

.premium-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    padding: .3125rem .75rem;
    border-radius: .5rem;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.premium-method-get {
    background: rgba(0, 158, 105, .12);
    color: #007d54;
}

.premium-method-post {
    background: rgba(230, 154, 0, .14);
    color: #92400e;
}

.premium-method-put,
.premium-method-patch {
    background: rgba(13, 140, 233, .12);
    color: #075985;
}

.premium-method-delete {
    background: rgba(220, 53, 69, .1);
    color: #b02a37;
}

html.dark .premium-method-get {
    background: rgba(32, 201, 151, .16);
    color: var(--premium-accent);
}

html.dark .premium-method-post {
    background: rgba(251, 191, 36, .12);
    color: #fbbf24;
}

html.dark .premium-method-put,
html.dark .premium-method-patch {
    background: rgba(56, 189, 248, .12);
    color: #38bdf8;
}

html.dark .premium-method-delete {
    background: rgba(248, 113, 113, .12);
    color: #f87171;
}

/* ---------- Code blocks ---------- */

.premium-codeblock {
    border-radius: var(--premium-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c1117;
    margin-bottom: 1.25rem;
}

.premium-codeblock-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem 1rem;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.premium-codeblock-lang {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #98a2b3;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.premium-code-copy {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #d1d5db;
    font-size: .75rem;
    font-weight: 600;
    padding: .3125rem .6875rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
    font-family: var(--premium-font);
}

[dir="rtl"] .premium-code-copy {
    margin-left: 0;
    margin-right: auto;
}

.premium-code-copy:hover,
.premium-code-copy:focus {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
}

.premium-code-copy.is-copied {
    background: rgba(32, 201, 151, .18);
    border-color: rgba(32, 201, 151, .4);
    color: var(--premium-accent);
}

.premium-codeblock-code {
    margin: 0;
    padding: 1.125rem 1.25rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .8125rem;
    line-height: 1.65;
    color: #e6eaf0;
    white-space: pre;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.premium-codeblock-code .text-success {
    color: var(--premium-accent) !important;
}

/* ---------- Parameters table ---------- */

.premium-params {
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius);
    overflow: hidden;
    background: var(--premium-surface);
}

.premium-doc-card > .premium-params {
    border: 0;
    border-top: 1px solid var(--premium-border);
    border-radius: 0;
    background: transparent;
}

html.dark .premium-params {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .1);
}

.premium-params-head {
    display: grid;
    grid-template-columns: minmax(7.5rem, 11rem) minmax(8.5rem, 15rem) 1fr;
    gap: 1rem;
    padding: .875rem 1.25rem;
    background: var(--premium-surface-2);
    border-bottom: 1px solid var(--premium-border);
}

html.dark .premium-params-head {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
}

.premium-params-head-item {
    color: var(--premium-muted);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

html.dark .premium-params-head-item {
    color: #98a2b3;
}

.premium-params-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 11rem) minmax(8.5rem, 15rem) 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--premium-border);
    transition: background .15s ease;
}

.premium-params-row:first-of-type {
    border-top: 0;
}

.premium-params-row:hover {
    background: rgba(0, 158, 105, .03);
}

html.dark .premium-params {
    background: rgba(255, 255, 255, .03);
}

html.dark .premium-params-row {
    border-color: rgba(255, 255, 255, .08);
}

html.dark .premium-params-row:hover {
    background: rgba(32, 201, 151, .04);
}

.premium-params-name-cell {
    min-width: 0;
    padding-top: .375rem;
}

.premium-params-name {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .07);
    border: 1px solid rgba(0, 158, 105, .14);
    border-radius: .375rem;
    padding: .25rem .5rem;
    word-break: break-all;
    white-space: normal;
}

html.dark .premium-params-name {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .1);
    border-color: rgba(32, 201, 151, .2);
}

.premium-params-type-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    min-width: 0;
}

.premium-params-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: .75rem;
    border-radius: 999px;
    padding: .375rem .6875rem;
    white-space: nowrap;
}

.premium-params-badge-optional {
    background: rgba(0, 158, 105, .1);
    color: var(--premium-primary-dark);
}

.premium-params-badge-required {
    background: rgba(220, 53, 69, .08);
    color: #b02a37;
}

html.dark .premium-params-badge-optional {
    background: rgba(32, 201, 151, .16);
    color: var(--premium-accent);
}

html.dark .premium-params-badge-required {
    background: rgba(248, 113, 113, .12);
    color: #f87171;
}

.premium-params-format {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--premium-muted);
    background: rgba(16, 24, 40, .06);
    border-radius: 999px;
    padding: .375rem .6875rem;
    white-space: nowrap;
}

html.dark .premium-params-format {
    background: rgba(255, 255, 255, .08);
    color: #98a2b3;
}

.premium-params-desc-cell {
    min-width: 0;
    color: var(--premium-muted);
    font-size: .90625rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
}

html.dark .premium-params-desc-cell {
    color: #98a2b3;
}

.premium-params-desc-cell code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--premium-primary-dark);
    background: rgba(0, 158, 105, .07);
    border: 1px solid rgba(0, 158, 105, .14);
    border-radius: .375rem;
    padding: .125rem .4375rem;
}

html.dark .premium-params-desc-cell code {
    color: var(--premium-accent);
    background: rgba(32, 201, 151, .1);
    border-color: rgba(32, 201, 151, .2);
}

.premium-params-desc-cell .font-weight-medium {
    font-weight: 700 !important;
}

@media (max-width: 767.98px) {
    .premium-params-head {
        display: none;
    }

    .premium-params-row {
        grid-template-columns: 1fr;
        gap: .625rem;
        padding: 1rem 1.125rem;
    }

    .premium-params-name-cell {
        padding-top: 0;
    }

    .premium-params-type-cell {
        align-items: flex-start;
    }
}

/* ---------- Docs callout (notes) ---------- */

.premium-docs-callout {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: 1.125rem 1.375rem;
    border-radius: var(--premium-radius);
    background: rgba(13, 202, 240, .06);
    border: 1px solid rgba(13, 202, 240, .18);
    color: var(--premium-muted);
    font-size: .90625rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

html.dark .premium-docs-callout {
    background: rgba(13, 202, 240, .08);
    border-color: rgba(13, 202, 240, .22);
    color: #98a2b3;
}

.premium-docs-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: .625rem;
    background: rgba(13, 202, 240, .14);
    color: #0e7490;
}

html.dark .premium-docs-callout-icon {
    color: #22d3ee;
}

.premium-docs-callout a {
    color: var(--premium-primary-dark);
    font-weight: 600;
}

html.dark .premium-docs-callout a {
    color: var(--premium-accent);
}

/* ---------- Enterprise responsive ---------- */

@media (max-width: 575.98px) {
    .premium-page-top .container {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .premium-doc-card-head,
    .premium-doc-card-body {
        padding-left: 1.125rem;
        padding-right: 1.125rem;
    }

    .premium-codeblock-code {
        font-size: .75rem;
        padding: .875rem 1rem;
    }
}

/* =========================================================
   Pricing UX v2 — segmented toggle & premium plan cards
   ========================================================= */

/* ---------- Segmented toggle with horizontal spacing ---------- */

.plan-toggle .btn {
    border-radius: 999px !important;
    border: 1px solid var(--premium-border) !important;
    font-weight: 600;
    padding: .5rem 1.5rem;
    color: var(--premium-muted);
    background: var(--premium-surface);
    box-shadow: var(--premium-shadow-sm);
    transition: all .2s ease;
    position: relative;
    z-index: 0;
}

.plan-toggle .btn + .btn {
    margin-left: .75rem !important;
}

html.dark .plan-toggle .btn {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12) !important;
    color: #98a2b3;
}

.plan-toggle .btn:hover {
    color: var(--premium-primary-dark);
    border-color: rgba(0, 158, 105, .4) !important;
    background: rgba(0, 158, 105, .05);
    box-shadow: var(--premium-shadow-md);
}

html.dark .plan-toggle .btn:hover {
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .45) !important;
    background: rgba(32, 201, 151, .1);
}

.plan-toggle .btn.active,
.plan-toggle .btn.active:hover {
    background: var(--premium-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -8px rgba(0, 158, 105, .55) !important;
    z-index: 1;
}

@media (max-width: 575.98px) {
    .plan-toggle .btn {
        padding: .5rem 1.125rem;
    }

    .plan-toggle .btn + .btn {
        margin-left: .5rem !important;
    }
}

/* ---------- Premium plan cards ---------- */

.plan {
    border: 1px solid var(--premium-border) !important;
    border-radius: var(--premium-radius) !important;
    background: var(--premium-surface);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

html.dark .plan {
    background: rgba(255, 255, 255, .04) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

.plan:hover {
    transform: translateY(-6px);
    box-shadow: var(--premium-shadow-md) !important;
    border-color: rgba(0, 158, 105, .35) !important;
}

/* Plan name badge */
.plan .badge-primary {
    background: var(--premium-grad-soft);
    color: var(--premium-primary-dark);
    border: 1px solid rgba(0, 158, 105, .18);
    font-weight: 700;
    letter-spacing: .06em;
    box-shadow: none;
}

html.dark .plan .badge-primary {
    background: rgba(32, 201, 151, .12);
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .22);
}

/* Price divider */
.plan-price {
    border-bottom: 1px solid var(--premium-border);
    margin-bottom: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

html.dark .plan-price {
    border-color: rgba(255, 255, 255, .08);
}

.plan-price .h1 {
    font-family: var(--premium-font);
    letter-spacing: -.03em;
}

.plan-price .badge-success {
    background: rgba(0, 158, 105, .1);
    color: var(--premium-primary-dark);
    border: 1px solid rgba(0, 158, 105, .2);
    border-radius: 999px;
    font-weight: 700;
}

html.dark .plan-price .badge-success {
    background: rgba(32, 201, 151, .14);
    color: var(--premium-accent);
    border-color: rgba(32, 201, 151, .28);
}

/* "What's included" heading */
.plan-features > .small {
    color: var(--premium-muted) !important;
    letter-spacing: .08em;
}

html.dark .plan-features > .small {
    color: #98a2b3 !important;
}

/* Feature row separators */
.plan-features .d-flex {
    border-bottom: 1px dashed var(--premium-border);
}

.plan-features .d-flex:last-child {
    border-bottom: 0;
}

html.dark .plan-features .d-flex {
    border-color: rgba(255, 255, 255, .08);
}

/* Feature icons */
.plan-feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .625rem;
    background: rgba(0, 158, 105, .1);
    color: var(--premium-primary);
}

.plan-feature-icon.is-muted {
    background: rgba(16, 24, 40, .05);
    color: var(--premium-muted);
}

html.dark .plan-feature-icon {
    background: rgba(32, 201, 151, .14);
    color: var(--premium-accent);
}

html.dark .plan-feature-icon.is-muted {
    background: rgba(255, 255, 255, .06);
    color: #98a2b3;
}

/* CTA */
.plan .card-footer {
    background: transparent;
    border-top: 1px solid var(--premium-border);
    padding-top: 1rem !important;
}

html.dark .plan .card-footer {
    border-color: rgba(255, 255, 255, .08);
}

.plan .btn-primary {
    background: var(--premium-grad);
    border: 0;
    border-radius: .75rem;
    font-weight: 700;
    box-shadow: 0 10px 24px -8px rgba(0, 158, 105, .55);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.plan .btn-primary:hover,
.plan .btn-primary:focus {
    background: var(--premium-grad);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(0, 158, 105, .65);
    filter: brightness(1.04);
}

.plan .btn-primary.disabled,
.plan .btn-primary:disabled {
    background: var(--premium-border);
    box-shadow: none;
    transform: none;
    color: var(--premium-muted);
}

/* Featured plan ribbon */
.plan.featured {
    border: 2px solid var(--premium-primary) !important;
    box-shadow: 0 24px 54px -18px rgba(0, 158, 105, .45) !important;
    position: relative;
    overflow: hidden;
}

.plan.featured::before {
    content: attr(data-featured-label);
    position: absolute;
    top: 1.25rem;
    right: -2.1rem;
    transform: rotate(45deg);
    background: var(--premium-grad);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .375rem 2.5rem;
    box-shadow: 0 8px 16px -6px rgba(0, 158, 105, .5);
    z-index: 1;
}

[dir="rtl"] .plan.featured::before {
    right: auto;
    left: -2.1rem;
    transform: rotate(-45deg);
}

.plan.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 64px -18px rgba(0, 158, 105, .55) !important;
}
