:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0ea5e9;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --background-soft: #f8fafc;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-soft);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.page-loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.16), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.18), transparent 42%),
        rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    z-index: 1400;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.dark-mode .page-loader {
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.22), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.22), transparent 42%),
        rgba(17, 24, 39, 0.94);
}

.page-loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.75rem 2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 28px 60px -38px rgba(15, 23, 42, 0.35);
    color: var(--text-dark);
}

.dark-mode .page-loader__content {
    background: rgba(30, 41, 59, 0.7);
    color: #e5e7eb;
    box-shadow: 0 28px 60px -34px rgba(0, 0, 0, 0.65);
}

.page-loader__spinner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid rgba(79, 70, 229, 0.18);
    border-inline-start-color: var(--primary);
    border-block-start-color: var(--secondary);
    animation: loader-spin 1s linear infinite;
}

.dark-mode .page-loader__spinner {
    border-color: rgba(148, 163, 184, 0.3);
    border-inline-start-color: #a5b4fc;
    border-block-start-color: #38bdf8;
}

.page-loader__text {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: inherit;
}

@keyframes loader-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.landing-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.45);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-header .navbar {
    position: relative;
}

.landing-navbar {
    background: transparent;
    padding-block: 0.85rem;
}

.landing-header .navbar > .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2.4vw, 2.25rem);
}

.landing-header .landing-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.landing-header .navbar-collapse {
    width: 100%;
    flex-grow: 1;
}

.landing-header .landing-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.landing-header .landing-controls {
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 1.5vw, 1.25rem);
    margin-inline-start: auto;
}

.landing-header .landing-controls > * {
    flex-shrink: 0;
}

.landing-header .landing-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.55rem, 1.25vw, 1rem);
}

.user-menu-dropdown {
    position: relative;
}

.user-menu-dropdown .dropdown-toggle::after {
    display: none;
}

.user-menu-dropdown .dropdown-menu {
    min-width: 184px;
    padding: 0.5rem 0;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 42px -28px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(18px);
    margin-top: 0.65rem;
    inset-inline-end: 0;
    inset-inline-start: auto;
    direction: rtl;
    text-align: right;
}

.user-menu-dropdown .dropdown-item {
    padding: 0.55rem 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.user-menu-dropdown li:has(.dropdown-item) + li:has(.dropdown-item) .dropdown-item {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.user-menu-dropdown .dropdown-item:hover,
.user-menu-dropdown .dropdown-item:focus {
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary);
}

.landing-header .navbar-collapse.show,
.landing-header .navbar-collapse.collapsing {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding-top: 1rem;
}

.landing-header .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 4.6vw, 44px);
    height: clamp(38px, 4.6vw, 44px);
    border: 1px solid rgba(79, 70, 229, 0.28);
    border-radius: 14px;
    padding: 0;
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.7);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.landing-header .navbar-toggler:hover {
    background-color: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 16px 34px -22px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.landing-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.2);
}

.landing-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3E%3Cpath stroke=%27rgba(79,70,229,0.85)%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3E%3C/svg%3E");
    width: clamp(18px, 2.2vw, 22px);
    height: clamp(18px, 2.2vw, 22px);
    background-size: 100% 100%;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1030;
}

.mobile-menu-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    inset-block: 0;
    right: 0;
    left: auto;
    width: min(320px, 82vw);
    background: #fff;
    box-shadow: -14px 0 34px -24px rgba(15, 23, 42, 0.45);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.2rem 1.1rem 1.8rem;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
}

.mobile-menu-user {
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mobile-menu-user .user-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-user .user-name {
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-menu-user .user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.mobile-menu-user .mobile-user-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    background: rgba(255, 255, 255, 0.62);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 26px -18px rgba(79, 70, 229, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-user .mobile-user-action:hover,
.mobile-menu-user .mobile-user-action:focus-visible {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 16px 32px -22px rgba(79, 70, 229, 0.55);
    transform: translateY(-1px);
}

.mobile-menu-user .mobile-user-action--danger {
    border-color: rgba(239, 68, 68, 0.28);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 12px 26px -18px rgba(239, 68, 68, 0.4);
}

.mobile-menu-user .mobile-user-action--danger:hover,
.mobile-menu-user .mobile-user-action--danger:focus-visible {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 16px 32px -22px rgba(239, 68, 68, 0.55);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    font-weight: 600;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
    color: var(--primary);
    outline: none;
    box-shadow: 0 12px 26px -18px rgba(79, 70, 229, 0.45);
}

body.offcanvas-open {
    overflow: hidden;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.65);
    color: var(--text-dark);
    padding: 0;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 16px 32px -22px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.icon-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.icon-button svg {
    width: 22px;
    height: 22px;
}

.user-menu-toggle {
    gap: 0.4rem;
}

.user-menu-toggle .user-menu-icon {
    display: inline-flex;
}

.user-avatar-thumb {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.15);
    display: inline-flex;
    padding: 1px;
    background: #fff;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.6);
}

.user-avatar-thumb img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.user-menu-toggle:has(.user-avatar-thumb) {
    width: 46px;
    height: 46px;
    padding: 3px;
}

.user-menu-toggle:has(.user-avatar-thumb) .user-menu-icon {
    display: none;
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle .icon-sun {
    position: absolute;
    opacity: 0;
    transform: scale(0.75);
}

.theme-toggle[data-mode='dark'] .icon-moon {
    opacity: 0;
    transform: scale(0.75);
}

.theme-toggle[data-mode='dark'] .icon-sun {
    opacity: 1;
    transform: scale(1);
}

.landing-header .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.landing-header .nav-link:hover,
.landing-header .nav-link:focus {
    color: var(--primary);
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: none;
}

.landing-logo:hover,
.landing-logo:focus {
    color: var(--text-dark);
}

.landing-logo .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 14px 34px -20px rgba(79, 70, 229, 0.6);
}

.landing-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.landing-logo .logo-text-en {
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.landing-logo .logo-text-fa {
    font-size: clamp(0.75rem, 1.4vw, 0.92rem);
    font-weight: 500;
    color: var(--text-muted);
}

.btn-cta-glass {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.8), rgba(59, 130, 246, 0.92));
    border: 1px solid rgba(37, 99, 235, 0.35);
    box-shadow: 0 18px 32px -18px rgba(37, 99, 235, 0.55);
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-cta-glass:hover,
.btn-cta-glass:focus {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.9), rgba(29, 78, 216, 0.95));
    box-shadow: 0 22px 46px -18px rgba(29, 78, 216, 0.6);
    transform: translateY(-2px);
}

.btn-cta-glass:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px -14px rgba(29, 78, 216, 0.5);
}


@media (min-width: 992px) {
    .landing-header .navbar > .container {
        gap: 2.5rem;
    }

    .landing-header .navbar-collapse {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding-top: 0;
    }

    .landing-header .landing-nav {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        width: auto;
        margin-inline: auto;
    }

    .landing-header .landing-controls {
        gap: clamp(0.75rem, 1.2vw, 1.4rem);
    }

    .landing-header .landing-actions {
        gap: clamp(0.5rem, 0.9vw, 1rem);
    }

    .mobile-menu,
    .mobile-menu-backdrop {
        display: none;
    }
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-section {
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent 55%),
                radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.15), transparent 55%),
                #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 2rem;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge .dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.hero-illustration {
    max-width: 480px;
    width: 100%;
}

.country-marquee-card {
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 16px 34px -26px rgba(79, 70, 229, 0.5);
}

.country-marquee-row {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    padding-block: 0.35rem;
}

.country-marquee-row + .country-marquee-row {
    margin-top: 0.75rem;
}

.country-marquee {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200%;
    white-space: nowrap;
}

.country-marquee.track-right {
    animation: marquee-right 32s linear infinite;
}

.country-marquee.track-left {
    animation: marquee-left 32s linear infinite;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    position: relative;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(79, 70, 229, 0.14);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.country-flag {
    background: #fff;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -12px rgba(79, 70, 229, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    object-fit: contain;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.feature-card {
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 18px 30px -24px rgba(79, 70, 229, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    text-align: right;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px -30px rgba(79, 70, 229, 0.5);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(14, 165, 233, 0.12));
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.process-step {
    position: relative;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 1.5rem;
    height: 100%;
}

.process-step::after {
    content: attr(data-step);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.12);
}

.process-step h5 {
    margin-top: 4rem;
}

.popular-articles-grid {
    align-items: stretch;
}

.popular-article-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 1.6rem;
    box-shadow: 0 22px 42px -26px rgba(15, 23, 42, 0.35);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: popularCardIn 0.6s ease forwards;
    animation-delay: var(--card-delay, 0.15s);
}

.popular-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 48px -28px rgba(79, 70, 229, 0.45);
}

.popular-article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 55%);
    pointer-events: none;
}

.popular-article-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.popular-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-article-body {
    padding: 1.5rem 1.5rem 1.25rem;
    flex: 1;
}

.popular-article-body h5 {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-article-description {
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 1.5rem 1.4rem;
}

.popular-article-author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.popular-article-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary);
}

.popular-article-visit svg {
    color: inherit;
}

.popular-article-empty {
    border: 1px dashed rgba(79, 70, 229, 0.35);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.25);
}

.popular-article-more-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.popular-article-more-icon {
    font-size: 0.9rem;
    transform: translateY(-1px);
}

.popular-article-more-link:hover,
.popular-article-more-link:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
}

@keyframes popularCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 20px 35px -25px rgba(15, 23, 42, 0.35);
    padding: 2rem;
    background: #ffffff;
    height: 100%;
}

.testimonial-card p {
    font-size: 0.95rem;
}

.cta-section {
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0.6;
}

.cta-section h3,
.cta-section p {
    position: relative;
    z-index: 1;
}

.landing-footer {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-footer .nav-link {
    color: var(--text-muted);
}

.landing-footer .nav-link:hover {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .landing-header .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        padding: 1.25rem 1rem 1.5rem;
        border-radius: 1.5rem;
        box-shadow: 0 28px 48px -32px rgba(15, 23, 42, 0.55);
        margin-top: 1rem;
    }

    .landing-header .landing-controls {
        order: 2;
        margin-inline-start: auto;
    }

    .landing-header .landing-center {
        order: 0;
        margin-top: 0.75rem;
    }

    .hero-section {
        text-align: center;
        padding: 3rem 2rem;
    }

    .hero-illustration {
        margin: 0 auto;
    }

    .feature-card {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .feature-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem;
    }
}

#backToTop {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(79, 70, 229, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    color: #fff;
    box-shadow: 0 20px 35px -18px rgba(14, 165, 233, 0.7);
}

/* === Glass UI utilities ================================================== */

.glass-section {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
}

.glass-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 58%),
                radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.08), transparent 58%);
    pointer-events: none;
}

.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: clamp(1.5rem, 2vw, 1.85rem);
    box-shadow: 0 32px 56px -28px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.glass-card .form-label,
.glass-card label {
    font-weight: 600;
    color: var(--text-dark);
}

.glass-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.glass-input {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .glass-input {
    padding-inline-end: 3rem;
}

.password-toggle {
    position: absolute;
    inset-inline-end: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.password-toggle img {
    width: 20px;
    height: 20px;
    opacity: 0.55;
    filter: grayscale(0.25);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    opacity: 0.95;
}

.glass-input:focus {
    border-color: rgba(79, 70, 229, 0.65);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.glass-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.glass-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(79, 70, 229, 0.35);
    background: rgba(248, 250, 252, 0.85);
}

.glass-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.glass-helper {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-glass-primary,
.btn-outline-glass,
.btn-glass-light {
    --btn-glass-radius: 1rem;
    --btn-glass-padding-y: 0.75rem;
    --btn-glass-padding-x: 1.5rem;

    border-radius: var(--btn-glass-radius);
    padding: var(--btn-glass-padding-y) var(--btn-glass-padding-x);
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-glass-primary {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(14, 165, 233, 0.92));
    border: 0;
    color: #fff;
    box-shadow: 0 22px 44px -24px rgba(37, 99, 235, 0.75);
}

.btn-glass-primary:hover,
.btn-glass-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px -22px rgba(37, 99, 235, 0.8);
    color: #fff;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-dark);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.35);
}

.btn-outline-glass:hover,
.btn-outline-glass:focus {
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 18px 44px -26px rgba(79, 70, 229, 0.42);
    color: var(--text-dark);
}

.btn-glass-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.94));
    color: var(--text-dark);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 38px -24px rgba(15, 23, 42, 0.28);
}

.btn-glass-light:hover,
.btn-glass-light:focus {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 18px 44px -24px rgba(37, 99, 235, 0.25);
    color: var(--text-dark);
}

.btn-glass-primary.btn-lg,
.btn-outline-glass.btn-lg,
.btn-glass-light.btn-lg {
    --btn-glass-radius: 1.15rem;
    --btn-glass-padding-y: 0.95rem;
    --btn-glass-padding-x: 1.85rem;
    font-size: 1.05rem;
}

.btn-glass-primary.btn-sm,
.btn-outline-glass.btn-sm,
.btn-glass-light.btn-sm {
    --btn-glass-radius: 0.75rem;
    --btn-glass-padding-y: 0.55rem;
    --btn-glass-padding-x: 1.1rem;
    font-size: 0.95rem;
}

.newsletter-form .newsletter-submit {
    --btn-glass-padding-y: 0.6rem;
    --btn-glass-radius: 0.95rem;
    min-height: 100%;
}

@media (min-width: 576px) {
    .newsletter-form .newsletter-submit {
        min-height: 100%;
    }
}

.btn-icon {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-lg {
    width: 3.5rem;
    height: 3.5rem;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(220, 38, 38, 0.25);
    background: rgba(254, 242, 242, 0.9);
    color: #b91c1c;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-google:hover,
.btn-google:focus {
    background: rgba(254, 226, 226, 0.95);
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 18px 36px -24px rgba(248, 113, 113, 0.5);
    color: #b91c1c;
}

.auth-section .container {
    position: relative;
    z-index: 1;
}

.auth-section-centered {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    overflow: hidden;
}

.auth-section-centered .container {
    display: flex;
    justify-content: center;
}

.auth-abstract-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-abstract-bg .blob {
    position: absolute;
    width: 30rem;
    height: 30rem;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 999px;
}

.auth-abstract-bg .blob-1 {
    top: -6rem;
    right: -8rem;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.45), rgba(56, 189, 248, 0));
}

.auth-abstract-bg .blob-2 {
    bottom: -10rem;
    left: -6rem;
    background: radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.35), rgba(45, 55, 72, 0));
}

.auth-abstract-bg .grid-pattern {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.1), transparent 50%);
    mask-image: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.auth-grid-compact {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
}

.auth-grid-single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.auth-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-intro .badge {
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary);
    font-weight: 600;
}

.auth-card {
    padding: clamp(1.75rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-card-compact {
    width: min(420px, 100%);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 64px -28px rgba(15, 23, 42, 0.35);
}

.auth-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-card-header h2 {
    font-weight: 700;
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
}

.auth-card .form-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0;
}

.auth-card .form-check-input {
    margin-top: 0.2rem;
}

.auth-secondary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-meta a {
    font-weight: 600;
}


.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.auth-benefits {
    display: grid;
    gap: 0.75rem;
}

.auth-benefits li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
    color: var(--text-dark);
}

.auth-benefits li::before {
    content: "✔";
    color: var(--primary);
    font-size: 0.85rem;
}

/* === Dashboard =========================================================== */

.dashboard-section {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-pane {
    padding: 1.75rem;
}

.profile-name-marquee {
    width: 100%;
    max-width: 16ch;
    overflow: hidden;
    position: relative;
}

.profile-name-marquee__text {
    display: inline-block;
    white-space: nowrap;
}

.profile-name-marquee__text.is-marquee {
    padding-inline-end: 1.5rem;
    animation: profile-name-marquee var(--profile-marquee-duration, 12s) linear infinite;
}

@keyframes profile-name-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--profile-marquee-distance, 0px)));
    }
}

.dashboard-pane .progress {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
}

.dashboard-pane .progress-bar {
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(14, 165, 233, 0.9));
}

.panel-subscription-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
}

.panel-subscription-illustration {
    width: 72px;
    height: 72px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(14, 165, 233, 0.18));
    display: grid;
    place-items: center;
    color: var(--primary);
}

.panel-subscription-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.panel-subscription-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.panel-subscription-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.panel-subscription-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.panel-subscription-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary);
}

.panel-subscription-link {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
}

.panel-subscription-link:hover,
.panel-subscription-link:focus {
    text-decoration: underline;
}

.dashboard-menu {
    display: grid;
    gap: 0.75rem;
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-link:hover,
.dashboard-link:focus,
.dashboard-link.active {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 18px 36px -26px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-card {
    padding: clamp(1.75rem, 3.5vw, 2.25rem);
}

.dashboard-card h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.profile-details {
    display: grid;
    gap: 1rem;
}

.profile-details .detail-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.75);
}

.profile-details .detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.profile-details .detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-details .detail-title {
    margin: 0;
    font-weight: 600;
}

.profile-details .detail-value {
    margin: 0;
    color: var(--text-muted);
}

.avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.avatar-wrapper img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 32px;
    border: 3px solid rgba(79, 70, 229, 0.25);
    box-shadow: 0 18px 32px -24px rgba(15, 23, 42, 0.35);
}

.dashboard-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.dashboard-form-grid textarea {
    min-height: 140px;
}

/* === Blog ================================================================ */

.blog-hero {
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    display: grid;
    gap: 1rem;
}

.blog-search-card {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.blog-search-card .form-label {
    font-weight: 600;
}

.blog-search-card .form-control,
.blog-search-card .form-select {
    border-radius: 1rem;
    border-color: rgba(148, 163, 184, 0.35);
    padding: 0.65rem 1rem;
}

.blog-search-form {
    display: grid;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    align-items: end;
    grid-template-columns: 1fr;
}

.blog-search-form .blog-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-search-field--query {
    grid-column: auto;
}

.blog-search-actions {
    display: flex;
    align-items: flex-end;
    grid-column: 1 / -1;
}

.blog-search-actions .btn-glass-primary {
    width: 100%;
}

.blog-search-form--stacked {
    grid-template-columns: 1fr;
    align-items: stretch;
}
.blog-search-form--stacked .blog-search-actions {
    justify-content: flex-start;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 1.25rem;
}

.blog-card .blog-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.blog-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.2em;
}

.blog-card .blog-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-meta-item svg {
    display: block;
}

.blog-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.blog-footer .blog-meta {
    margin-top: 0;
}

.blog-read-more {
    font-weight: 600;
    margin-inline-end: 0;
}

.blog-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border: none;
    background: transparent;
    color: inherit;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
}

.blog-share-button:hover,
.blog-share-button:focus {
    color: #4f46e5;
}

.blog-share-button svg {
    pointer-events: none;
}

.blog-share-button.is-shared::after {
    content: attr(data-share-feedback);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 10px 20px -12px rgba(15, 23, 42, 0.65);
}

.blog-search-card .form-select {
    padding-right: 1rem;
    padding-left: 2.75rem;
    background-position: left 1rem center;
    background-size: 12px;
    text-align: right;
}

.blog-card .blog-link {
    font-weight: 600;
}

.blog-detail-layout {
    --bs-gutter-x: clamp(1.5rem, 3vw, 2.5rem);
    --bs-gutter-y: clamp(1.5rem, 3vw, 2.5rem);
}

.blog-detail-layout > [class*="col-"] {
    display: flex;
}

.blog-detail-layout > [class*="col-"] > * {
    width: 100%;
}

.blog-detail-layout > [class*="col-"] > .blog-detail-search {
    align-self: flex-start;
}

.blog-detail-card {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    overflow: hidden;
    isolation: isolate;
}

.blog-detail-header {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-items: center;
    text-align: center;
}

.blog-detail-summary {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
}

.blog-detail-excerpt {
    margin: 0;
}

.blog-detail-excerpt p {
    margin-bottom: 0;
}

.blog-detail-cover {
    border-radius: 1.5rem;
    box-shadow: 0 22px 46px -28px rgba(15, 23, 42, 0.35);
    max-width: min(640px, 100%);
    width: 100%;
}

@media (max-width: 576px) {
    .blog-search-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .blog-search-card .form-control,
    .blog-search-card .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    .blog-search-card .form-select {
        padding-right: 0.75rem;
        padding-left: 2.5rem;
        background-position: left 0.75rem center;
    }

    .blog-search-card .btn-glass-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 576px) {
    .blog-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-search-actions {
        grid-column: span 2;
    }
}

@media (min-width: 768px) {
    .blog-search-form:not(.blog-search-form--stacked) .blog-search-field--query {
        grid-column: span 2;
    }

    .blog-search-form:not(.blog-search-form--stacked) .blog-search-actions {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .blog-search-form:not(.blog-search-form--stacked) {
        grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(160px, 1fr)) minmax(140px, auto);
    }

    .blog-search-form:not(.blog-search-form--stacked) .blog-search-actions {
        justify-content: flex-end;
        grid-column: 1 / -1;
    }

    .blog-search-form:not(.blog-search-form--stacked) .blog-search-actions .btn-glass-primary {
        width: auto;
        min-width: 120px;
    }
}

.blog-detail-search {
    padding: clamp(1.5rem, 2.5vw, 2rem);
}

.blog-detail-search .blog-search-form {
    width: 100%;
    gap: 1rem;
}

.blog-detail-search .blog-search-actions {
    justify-content: flex-start;
}

.blog-detail-search .blog-search-actions .btn-glass-primary {
    min-height: 3rem;
    width: 100%;
}

.blog-detail-search .form-control,
.blog-detail-search .form-select {
    min-height: 3rem;
}

.blog-detail-content {
    display: flow-root;
    overflow-wrap: anywhere;
    word-break: break-word;
    width: 100%;
    box-sizing: border-box;
}

.blog-detail-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.blog-detail-content > * + * {
    margin-top: 1.5rem;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
}

.blog-detail-content pre {
    position: relative;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #0f172a;
    color: #e2e8f0;
    overflow: auto;
    direction: ltr;
    text-align: left;
    font-size: 0.9rem;
}

.blog-detail-content code {
    font-family: "Fira Code", "Courier New", monospace;
}

.code-toolbar {
    position: relative;
}

.code-toolbar .code-toolbar-header {
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.code-toolbar .code-language-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.code-toolbar .copy-code-button {
    border: 0;
    background: rgba(148, 163, 184, 0.25);
    color: #f8fafc;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.code-toolbar .copy-code-button:hover,
.code-toolbar .copy-code-button:focus {
    background: rgba(59, 130, 246, 0.45);
    outline: none;
}

.blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.blog-detail-content table tbody,
.blog-detail-content table thead,
.blog-detail-content table tr {
    width: 100%;
}

.blog-detail-content table th,
.blog-detail-content table td {
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-detail-content iframe,
.blog-detail-content video {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
}

.blog-empty-state {
    text-align: center;
    padding: 2.5rem;
    border-radius: 1.25rem;
    background: rgba(248, 250, 252, 0.75);
}

/* === Responsive ========================================================== */

@media (max-width: 991.98px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        align-items: stretch;
    }

    .dashboard-sidebar .dashboard-pane {
        height: 100%;
    }

    .dashboard-sidebar .dashboard-menu {
        grid-column: 1 / -1;
    }

    .dashboard-main {
        order: 1;
    }
}

@media (max-width: 767.98px) {
    .panel-subscription-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        padding: 1.25rem;
    }

    .panel-subscription-illustration {
        width: 56px;
        height: 56px;
        border-radius: 1.25rem;
        align-self: flex-start;
    }

    .panel-subscription-label {
        font-size: 0.8rem;
    }

    .panel-subscription-title {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .panel-subscription-meta {
        font-size: 0.8rem;
    }

    .panel-subscription-chip {
        font-size: 0.75rem;
        padding: 0.25rem 0.55rem;
    }

    .panel-subscription-link {
        font-size: 0.8rem;
    }

    .auth-secondary-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .auth-grid {
        text-align: start;
    }

    .auth-grid .glass-field,
    .auth-grid .glass-field label,
    .auth-grid .glass-input {
        text-align: right;
    }

    .auth-intro .badge {
        margin-inline: auto;
    }

    .auth-benefits {
        align-items: center;
    }

    .auth-benefits li {
        justify-content: center;
    }
}

