body, html {
    margin: 0;
    min-height: 100vh;
    background-color: #080B10 !important;
    background-image: none !important;
    background: #080B10 !important;
    color: #e2e8f0;
    overflow-x: hidden;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

* {
    box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #60a5fa;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page {
    position: relative;
    overflow: hidden;
    background-color: #080B10 !important;
    background-image: none !important;
    background: #080B10 !important;
}

.page-glow,
.page-glow-primary,
.page-glow-secondary {
    display: none !important;
}

.wrapper {
    position: relative;
    z-index: 10;
    background-color: #080B10 !important;
    background-image: none !important;
    background: #080B10 !important;
}

.site-footer {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Modern Edge-to-Edge Sticky Glassmorphism Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: 0;
    background: rgba(13, 20, 38, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

.wrapper,
.footer-inner {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
}

.header-inner {
    width: 100%;
    max-width: 1280px;
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.6rem 2rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #f8fafc;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.brandmark:hover,
.brandmark:focus {
    color: #f8fafc;
    opacity: 0.9;
}

.brandmark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: transparent;
    flex-shrink: 0;
    overflow: hidden;
}

.brandmark-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.brandmark-copy {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav .nav-link,
.site-nav a {
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav .nav-link:hover,
.site-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.site-nav .nav-link.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.limit-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 0.82rem;
    font-weight: 600;
    color: #38bdf8;
    white-space: nowrap;
}

.limit-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.header-dropdown {
    position: relative;
    z-index: 40;
}

.header-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    padding: 0.42rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-dropdown-btn:hover,
.header-dropdown-btn:focus {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.25);
}

.dropdown-chevron {
    color: #64748b;
    transition: transform 0.2s;
}

.header-dropdown:hover .dropdown-chevron,
.header-dropdown-btn:focus .dropdown-chevron {
    transform: rotate(180deg);
}

.user-dropdown-btn {
    padding: 0.35rem 0.6rem 0.35rem 0.4rem;
}

.user-avatar-micro {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-signin-btn {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-signin-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0b1329 !important;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.5);
    filter: brightness(1.06);
    color: #0b1329 !important;
}

.header-cta-btn:active {
    transform: translateY(0);
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 12rem;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.header-dropdown-menu-right {
    left: auto;
    right: 0;
}

.header-dropdown:hover .header-dropdown-menu,
.header-dropdown-btn:focus + .header-dropdown-menu,
.header-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-menu li {
    margin: 0;
}

.header-dropdown-menu li + li {
    margin-top: 0.2rem;
}

.header-dropdown-menu a,
.header-dropdown-menu .dropdown-form button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.8rem;
    color: #cbd5e1;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.header-dropdown-menu a:hover,
.header-dropdown-menu a:focus,
.header-dropdown-menu .dropdown-form button:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #eff6ff;
}

.dropdown-header {
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
}

.dropdown-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.dropdown-header strong {
    font-size: 0.95rem;
    color: #f8fafc;
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.12);
    margin: 0.4rem 0 !important;
}

.dropdown-form {
    margin: 0;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
}

.header-link:hover {
    color: #f8fafc;
}

.inline-form {
    margin: 0;
}

.wrapper {
    padding: 2rem 0 4rem;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flash {
    padding: 1rem 1.15rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.2);
}

.flash-success {
    background: rgba(22, 163, 74, 0.18);
    color: #dcfce7;
}

.flash-error {
    background: rgba(239, 68, 68, 0.18);
    color: #fee2e2;
}

.hero-grid,
.auth-layout {
    display: grid;
    gap: 1.5rem;
    position: relative;
    z-index: 20;
}

.hero-grid,
.auth-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    width: min(100%, 980px);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 18px 55px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.auth-panel-copy,
.auth-panel-form {
    padding: 2.25rem;
}

.auth-panel-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.36));
}

.auth-copy-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-copy-lead,
.auth-form-header p,
.auth-form-note,
.auth-panel-link {
    margin: 0;
    color: #94a3b8;
    line-height: 1.7;
}

.auth-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.auth-list li {
    padding: 0.9rem 1rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-panel-link {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.auth-panel-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.5rem;
}

.auth-form-header p {
    margin-top: 0.6rem;
}

.auth-form-note {
    margin-top: 1rem;
    font-size: 0.92rem;
}

.hero-copy,
.auth-copy,
.hero-card,
.auth-card,
.content-card,
.info-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 55px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.hero-copy,
.auth-copy {
    padding: 3rem;
}

.hero-card,
.auth-card,
.content-card {
    padding: 2rem;
}

.auth-card-simple {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 2rem;
}

.auth-intro {
    margin-bottom: 0.5rem;
}

.auth-title {
    margin: 1rem 0 0;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.1;
}

.auth-subtitle {
    margin: 0.9rem 0 0;
    color: #94a3b8;
    line-height: 1.65;
}

.content-card {
    width: 100%;
}

.narrow-card {
    width: min(680px, 100%);
    margin: 0 auto;
}

.eyebrow,
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(30, 41, 59, 0.72);
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title,
.content-title {
    margin: 1rem 0 0;
    color: #f8fafc;
    font-size: clamp(2.1rem, 5vw, 3.9rem);
    line-height: 1.08;
}

.content-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

.hero-text,
.content-text,
.card-text,
.helper-text,
.auth-footer {
    color: #94a3b8;
    line-height: 1.7;
}

.hero-text,
.content-text {
    margin: 1rem 0 0;
    max-width: 60ch;
}

.card-title {
    margin: 1rem 0 0.5rem;
    color: #f8fafc;
    font-size: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.feature-list,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.extractor-pill,
.info-card,
.checkbox-card,
.toggle-card {
    background: rgba(30, 41, 59, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
}

.feature-list li {
    padding: 0.85rem 1rem;
    color: #e2e8f0;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 700;
}

.input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.input::placeholder {
    color: #64748b;
}

.input:focus,
.header-dropdown-btn:focus,
.button:focus {
    outline: 2px solid rgba(96, 165, 250, 0.8);
    outline-offset: 2px;
}

.select-input {
    appearance: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #eff6ff;
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.24);
}

.button-primary:hover,
.button-primary:focus {
    color: #eff6ff;
}

.button-secondary {
    background: rgba(30, 41, 59, 0.74);
    border-color: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

.button-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

.button-admin {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    border: none;
}

.button-admin:hover,
.button-admin:focus {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
}

.button-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    border: none;
}

.button-danger:hover,
.button-danger:focus {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff !important;
}

.button-small {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

.button-block {
    width: 100%;
}

.toggle-card,
.checkbox-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.checkbox-card small,
.toggle-card p {
    display: block;
    margin-top: 0.25rem;
    color: #94a3b8;
}

.audio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch {
    display: inline-flex;
    cursor: pointer;
}

.switch-ui {
    position: relative;
    display: inline-flex;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 1);
    transition: background 0.2s ease;
}

.switch-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f8fafc;
    transition: transform 0.2s ease;
}

.audio:checked + .toggle-card .switch-ui {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.audio:checked + .toggle-card .switch-ui::after {
    transform: translateX(22px);
}

.seekOptions {
    display: none;
}

.audio:checked ~ .seekOptions {
    display: block;
}

.hero-links,
.auth-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.1rem;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
    color: #94a3b8;
    font-size: 0.92rem;
}

.text-link {
    color: #c4b5fd;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
}

.info-card {
    padding: 1.4rem;
}

.info-card h3 {
    margin: 0 0 0.75rem;
    color: #f8fafc;
}

.info-card p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.6;
}

.info-layout-stacked {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #11141e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.media-panel-stacked {
    width: 100%;
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.media-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    aspect-ratio: auto;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(4px);
}

.details-panel-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge-ready {
    align-self: flex-start;
    display: inline-flex;
    padding: 0.35rem 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.content-title-italic {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(90deg, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.preview-facts-box {
    display: flex;
    flex-direction: column;
    background: #0f121b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
}

.fact-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fact-label {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fact-value {
    color: #f8fafc;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.text-success {
    color: #34d399;
}

.download-ready-panel {
    margin-top: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Custom Select UI */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper select {
    display: none; /* Hide the native select */
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(30, 41, 59, 0.8);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.custom-select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.custom-select-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: #94a3b8;
}

.custom-select-wrapper.open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #0f121b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-height: 250px;
    overflow-y: auto;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-group-title {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.02);
}

.custom-select-option {
    padding: 0.65rem 1rem 0.65rem 1.5rem;
    font-size: 0.85rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-option:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
}

.custom-select-option.selected {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-weight: 600;
}

/* Scrollbar for custom select */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.button-download-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background: linear-gradient(90deg, #6b66ff, #8b5cf6);
    border: none;
    font-weight: 600;
}

.download-ready-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.52);
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.playlist-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
}

.playlist-entry-title {
    margin: 0;
    font-size: 1rem;
}

.playlist-entry-title a {
    color: #f8fafc;
}

.playlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.extractor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.pricing-grid,
.docs-grid,
.profile-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.docs-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card,
.doc-section,
.profile-card {
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
}

.pricing-card h2,
.doc-section h2 {
    margin: 0.4rem 0 0.75rem;
    color: #f8fafc;
}

.pricing-copy,
.doc-section p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.65;
}

.doc-list {
    margin: 1rem 0 0;
    padding-left: 1.35rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.doc-list li + li {
    margin-top: 0.35rem;
}

.docs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.docs-hero-copy {
    display: grid;
    gap: 1rem;
}

.docs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.docs-hero-summary {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
}

.docs-summary-item {
    display: grid;
    gap: 0.35rem;
    color: #cbd5e1;
}

.docs-summary-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.docs-endpoint-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.docs-endpoint-card + .docs-endpoint-card {
    margin-top: 0.85rem;
}

.docs-endpoint-card strong {
    color: #f8fafc;
    display: block;
    margin-bottom: 0.35rem;
}

.docs-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
}

.docs-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.docs-mini-card {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.docs-mini-card p {
    margin-top: 0.45rem;
}

/* --- Professional API Playground UI --- */
.docs-playground {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.docs-playground::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.docs-playground-head {
    margin-bottom: 2.5rem;
}

.docs-playground-head h2 {
    margin: 0.6rem 0 0.5rem;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-playground-head p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 65ch;
}

.docs-playground-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.75rem;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-full {
    grid-column: 1 / -1;
}

.docs-playground-form .actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.status-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid transparent;
}

.status-idle { background: rgba(30, 41, 59, 0.5); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.15); }
.status-loading { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); }
.status-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
.status-error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

.docs-playground-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) 1.25fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.docs-playground-panel {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.docs-playground-panel h3 {
    margin: 0 0 1.25rem;
    color: #f8fafc;
    font-size: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-preview-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: opacity 0.3s ease;
}

.docs-preview-card.is-empty {
    opacity: 0.6;
}

.docs-preview-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.docs-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-placeholder {
    color: #64748b;
    font-size: 0.9rem;
}

.docs-preview-copy h4 {
    margin: 0 0 0.4rem;
    color: #f8fafc;
    font-size: 1.15rem;
    line-height: 1.3;
}

.docs-preview-copy p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.access-summary {
    margin-top: 1rem;
    padding: 0.85rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.formats-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.formats-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.formats-section-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.count-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.count-pill-locked {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.formats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.formats-list.empty-state {
    display: block;
    color: #64748b;
    font-size: 0.95rem;
    font-style: italic;
    padding: 2rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
}

.format-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.format-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(148, 163, 184, 0.3);
}

.format-card.is-locked {
    opacity: 0.6;
    background: rgba(15, 23, 42, 0.4);
}

.format-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.format-heading-row h3 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
    word-break: break-all;
    font-family: monospace;
}

.format-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.format-badge-available { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.format-badge-locked { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.format-copy p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.format-actions {
    margin-top: auto;
}

.download-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.download-link:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.download-link.is-disabled {
    background: rgba(30, 41, 59, 0.5);
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.1);
    cursor: not-allowed;
}

.raw-response {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem;
    color: #a5b4fc;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 400px;
    margin: 0;
}

.code-block {
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.72);
    color: #dbeafe;
}

.code-block code {
    display: block;
    white-space: pre;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.65;
}

.pricing-plan,
.profile-label {
    display: inline-block;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-features {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.pricing-card-featured {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.12));
    border-color: rgba(96, 165, 250, 0.26);
}

.profile-card strong {
    display: block;
    margin-top: 0.55rem;
    color: #f8fafc;
    word-break: break-word;
}

.profile-card-wide {
    grid-column: 1 / -1;
}

.profile-copy {
    margin: 0.85rem 0 0;
    color: #94a3b8;
    line-height: 1.65;
}

.profile-secret {
    font-size: 0.98rem;
}

.profile-actions {
    display: flex;
    margin-top: 1rem;
}

.extractor-pill {
    padding: 0.95rem 1rem;
    color: #e2e8f0;
    text-align: center;
}

.site-footer {
    padding: 0 0 2.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.footer-copy {
    margin: 0;
    max-width: 32rem;
}

.footer-links {
    margin: 0;
    align-items: center;
}

.footer-links a,
.footer-links span {
    color: #94a3b8;
}

.small-font,
.smaller,
.helper-text {
    font-size: 0.85rem;
}

.monospace {
    font-family: monospace;
    word-break: break-all;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 960px) {
    .docs-playground-grid {
        grid-template-columns: 1fr;
    }
    .docs-playground-form {
        grid-template-columns: 1fr;
    }
    .response-column {
        min-width: 0;
    }
    
    .site-nav {
        display: none;
    }

    .docs-hero,
    .docs-playground-grid,
    .hero-grid,
    .auth-layout,
    .info-strip,
    .pricing-grid,
    .docs-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .auth-copy,
    .hero-card,
    .auth-card,
    .content-card {
        padding: 1.5rem;
    }

    .auth-card-simple {
        padding: 1.5rem;
    }

    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-panel-copy {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .field-row,
    .docs-playground-form,
    .docs-mini-grid,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 0;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .brandmark {
        width: 100%;
        gap: 0.75rem;
    }

    .brandmark-copy strong {
        font-size: 1rem;
    }

    .brandmark-copy span {
        display: none;
    }

    .hero-title,
    .content-title {
        font-size: 2rem;
    }

    .auth-shell {
        padding-top: 0.25rem;
    }
    .docs-title {
        font-size: 1.8rem;
    }
    .docs-subtitle {
        font-size: 0.95rem;
    }
    .user-titles h1 {
        font-size: 1.4rem;
    }

    .hero-grid,
    .info-strip,
    .auth-shell {
        gap: 1rem;
    }

    .hero-copy,
    .hero-card,
    .content-card,
    .auth-card-simple,
    .info-card,
    .dashboard-card,
    .docs-card,
    .docs-playground {
        padding: 1.25rem;
    }
    
    .docs-playground-form {
        padding: 1.25rem;
    }

    .dashboard-header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .dashboard-header-actions .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .dashboard-header-actions form {
        width: 100%;
        display: block !important;
    }

    .playground-actions {
        flex-direction: column;
        width: 100%;
    }
    .playground-actions .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .sdk-tab-buttons {
        flex-direction: column;
    }
    .sdk-tab-btn {
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        border-left: 2px solid transparent;
        text-align: left;
    }
    .sdk-tab-btn.active {
        border-left-color: #38bdf8;
        border-bottom-color: rgba(148, 163, 184, 0.1);
    }

    .dashboard-container, .docs-section-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 0.75rem;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .summary-item .val {
        text-align: left;
        width: 100%;
        word-break: break-all;
    }

    .hero-text,
    .content-text,
    .card-text,
    .auth-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hero-actions .button {
        width: 100%;
    }

    .docs-hero-actions {
        flex-direction: column;
    }

    .info-layout-stacked {
        padding: 1rem;
        gap: 1.25rem;
    }

    .media-thumb {
        max-height: 180px;
    }

    .auth-card-simple {
        width: 100%;
        max-width: 100%;
    }

    .auth-panel-copy,
    .auth-panel-form {
        padding: 1.35rem;
    }

    .auth-title {
        font-size: 1.85rem;
    }

    .auth-subtitle {
        font-size: 0.98rem;
    }

    .feature-list {
        gap: 0.65rem;
    }

    .feature-list li {
        width: 100%;
    }

    .hero-links,
    .auth-meta {
        gap: 0.75rem;
    }

    .playlist-entry {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .auth-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        padding: 1rem 0.25rem 0;
    }
}

@media all and (display-mode: standalone) {
    .bookmarklet_wrapper {
        display: none;
    }
}

/* --- Loading Animation --- */
#loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1.5rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.modal-card-pricing {
    position: relative;
    max-width: 1040px;
    padding: 2.2rem;
}

.modal-card-ad {
    position: relative;
    max-width: 720px;
    padding: 2rem;
}

.modal-header h3 {
    margin: 0 0 1rem;
    color: #f8fafc;
    font-size: 1.5rem;
}

.modal-header .eyebrow {
    margin-bottom: 1rem;
}

.modal-body p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 0.8rem;
}

.modal-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.ad-player-card {
    margin-top: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.52);
    padding: 1rem;
    border-radius: 8px;
}

.ad-player-screen {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.28), transparent 34%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.24), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #111827 58%, #172554 100%);
}

.ad-player-glow {
    position: absolute;
    inset: auto -10% -35% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.18);
    filter: blur(20px);
}

.ad-player-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(15, 23, 42, 0.74);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ad-player-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
    max-width: 26rem;
}

.ad-player-copy strong {
    color: #f8fafc;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.ad-player-copy span {
    color: #cbd5e1;
    line-height: 1.7;
}

.ad-play-button {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 1;
}

.ad-progress {
    margin-top: 1rem;
}

.ad-progress-bar {
    width: 100%;
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.85);
}

.ad-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    transition: width 0.35s ease;
}

.ad-progress-text {
    margin: 0.75rem 0 0;
    color: #94a3b8;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.92);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Limit Widget --- */
.limit-widget {
    display: inline-flex;
    align-items: center;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.limit-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .modal-pricing-grid {
        grid-template-columns: 1fr;
    }

    .modal-card-pricing {
        padding: 1.5rem;
    }

    .modal-card-ad {
        padding: 1.35rem;
    }
}

/* --- New Responsive Sidebar & Mobile Layout --- */

/* Hide mobile-specific elements on desktop */
.mobile-only {
    display: none;
}

/* Sidebar structure */
.sidebar-toggle-input {
    display: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.sidebar-toggle-input:checked ~ .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 86vw;
    height: 100%;
    background: #090e17;
    border-left: 1px solid rgba(148, 163, 184, 0.12);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.65);
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.2) transparent;
}

.sidebar-toggle-input:checked ~ .mobile-sidebar {
    right: 0;
}

body:has(.sidebar-toggle-input:checked) {
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.4);
}

.close-sidebar, .hamburger-menu {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-sidebar:hover, .hamburger-menu:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    transform: scale(1.04);
}

.sidebar-content {
    padding: 1.25rem 1.4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Modern Quota Card */
.sidebar-quota-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.quota-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quota-label-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quota-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.quota-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.quota-counter {
    font-size: 0.86rem;
    font-weight: 700;
    color: #38bdf8;
}

.quota-progress-track {
    height: 6px;
    width: 100%;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 99px;
    overflow: hidden;
}

.quota-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    transition: width 0.3s ease;
}

.quota-progress-bar.exhausted {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.quota-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quota-subtext {
    font-size: 0.78rem;
    color: #64748b;
}

.quota-badge-exhausted {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.quota-card-reset {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.quota-reset-pill {
    color: #38bdf8;
    font-weight: 500;
}

/* User Card */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.sidebar-user-card .user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-card .user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-user-card .user-info strong {
    font-size: 0.95rem;
    color: #f8fafc;
}

.user-status-pill {
    font-size: 0.72rem;
    color: #34d399;
    font-weight: 600;
}

/* Auth Buttons */
.sidebar-auth-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sidebar-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.78rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.sidebar-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.sidebar-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.55) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-btn-secondary:hover {
    background: rgba(51, 65, 85, 0.7) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #f8fafc !important;
    transform: translateY(-1px);
}

/* Sidebar Navigation Items */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sidebar-section-title {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 0.25rem;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    color: #cbd5e1 !important;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-nav-item .nav-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(30, 41, 59, 0.6);
    color: #94a3b8;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-nav-item .nav-item-title {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar-nav-item .nav-chevron {
    color: #475569;
    transition: transform 0.2s, color 0.2s;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.12);
}

.sidebar-nav-item:hover .nav-icon-box {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.sidebar-nav-item:hover .nav-chevron {
    color: #94a3b8;
    transform: translateX(2px);
}

.sidebar-nav-item.active {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
    color: #38bdf8 !important;
}

.sidebar-nav-item.active .nav-icon-box {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.sidebar-nav-item.active .nav-chevron {
    color: #38bdf8;
}

.sidebar-btn-logout {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.3rem;
    transition: all 0.2s;
}

.sidebar-btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Sidebar Locales Grid */
.sidebar-locales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.sidebar-locale-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    min-width: 0;
}

.sidebar-locale-chip .locale-badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.12rem 0.32rem;
    border-radius: 5px;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.sidebar-locale-chip .locale-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.sidebar-locale-chip:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(56, 189, 248, 0.3);
    color: #f8fafc !important;
}

.sidebar-locale-chip.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8 !important;
}

.sidebar-locale-chip.active .locale-badge {
    background: #38bdf8;
    color: #020617;
}

/* Collapsible Sections */
details.collapsible-section {
    cursor: pointer;
}

details.collapsible-section summary {
    list-style: none;
    outline: none;
}

details.collapsible-section summary::-webkit-details-marker {
    display: none;
}

.collapsible-title {
    display: block;
    margin-top: 0.55rem;
    color: #f8fafc;
    word-break: break-word;
}

details.collapsible-section[open] summary {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 1.5rem;
}

.collapsible-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (max-width: 960px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex;
    }
    
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .user-chip-mobile {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: rgba(255, 255, 255, 0.06);
        padding: 0.3rem 0.6rem;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
    
    .user-chip-mobile::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #10b981;
        flex-shrink: 0;
    }

    .user-chip-mobile strong {
        font-size: 0.85rem;
        max-width: 85px;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
    
    @media (max-width: 480px) {
        .user-chip-mobile strong {
            max-width: 60px;
        }
    }
    
    @media (max-width: 360px) {
        .user-chip-mobile {
            display: none !important;
        }
    }
}

/* Mobile Adjustments */
@media (max-width: 720px) {
    /* Hide non-essential sections on mobile to focus on the main tool */
    .hero-copy {
        display: none;
    }
    
    .info-strip {
        display: none;
    }
    
    .header-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Ensure the brandmark takes up available space but doesn't break */
    .brandmark {
        width: auto;
    }
    
    .header-actions {
        display: none !important; /* Hide old header actions */
    }
    
    /* Make the download container the primary focus */
    .hero-grid {
        grid-template-columns: 1fr;
        display: block; /* Removing grid to let it naturally flow */
    }
    
    .hero-card {
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    /* Increase touch targets */
    .input {
        padding: 1.1rem;
        font-size: 1.05rem;
    }
    
    .button {
        padding: 1.1rem;
        font-size: 1.05rem;
    }

    .download-button-limit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Premium UI Enhancements & Animations
   ========================================================================== */

/* Typography Overrides */
body, button, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.hero-title, .content-title, .card-title, h1, h2, h3, h4, .brandmark-copy strong {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
}

/* Floating Glow Spheres */
.page-glow-primary {
    animation: floatGlowPrimary 25s ease-in-out infinite alternate;
}
.page-glow-secondary {
    animation: floatGlowSecondary 30s ease-in-out infinite alternate;
}

@keyframes floatGlowPrimary {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(5rem, 3rem) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-2rem, 8rem) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes floatGlowSecondary {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-6rem, -4rem) scale(0.85);
        opacity: 0.6;
    }
    100% {
        transform: translate(4rem, 2rem) scale(1.15);
        opacity: 0.3;
    }
}

/* Hero Content Styling & Entry Animations */
.hero-grid {
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
}

.hero-copy {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
}

.eyebrow {
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0.45rem 1rem;
    position: relative;
    overflow: hidden;
}

.eyebrow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
    transform: rotate(45deg);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translate(-30%, -30%) rotate(45deg); }
    100% { transform: translate(30%, 30%) rotate(45deg); }
}

.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 1.5rem;
}

.hero-text {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-top: 1.25rem;
}

.feature-list {
    margin-top: 2rem;
    gap: 1rem;
}

.feature-list li {
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-list li::before {
    content: '✓';
    color: #34d399;
    font-weight: 900;
    background: rgba(52, 211, 153, 0.15);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.feature-list li:hover {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-2px);
}

.feature-list li:nth-child(1) { animation-delay: 0.15s; }
.feature-list li:nth-child(2) { animation-delay: 0.3s; }

/* Hero Download Card */
.hero-card {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(24px) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 40px rgba(139, 92, 246, 0.05) !important;
    padding: 2.5rem !important;
    border-radius: 16px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 50px rgba(139, 92, 246, 0.1) !important;
}

.hero-card .card-badge {
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.hero-card .card-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 1.25rem;
}

.hero-card .card-text {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* Premium Inputs */
.input {
    background: rgba(2, 6, 23, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    color: #f8fafc !important;
    padding: 1.1rem 1.25rem !important;
    border-radius: 10px !important;
    font-size: 0.98rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.15), 
        inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
}

/* Download Button Styling */
.button-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #6366f1 100%) !important;
    color: #ffffff !important;
    padding: 1.05rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.button-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #818cf8 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.button-primary:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4) !important;
}

.button-primary:hover::before {
    opacity: 1;
}

.button-primary:active {
    transform: translateY(0) scale(0.99) !important;
}

/* Loader Glow styling */
.loading-spinner {
    border-top-color: #8b5cf6 !important;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

/* Header Premium Polish */
.header-inner {
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.brandmark-icon {
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3) !important;
}

/* Info Strip Bottom Cards styling */
.info-strip {
    margin-top: 2.5rem;
    gap: 2rem;
}

.info-card {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.info-card:nth-child(1) { animation-delay: 0.3s; }
.info-card:nth-child(2) { animation-delay: 0.4s; }

.info-card:hover {
    border-color: rgba(56, 189, 248, 0.2) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    transform: translateY(-2px) !important;
}

.info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-card p {
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Antigravity Premium Redesign Styles
   ========================================================================== */

/* Typography */
body, button, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .brandmark-icon, .hero-title, .eyebrow, .pricing-main-title, .docs-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 700;
}
pre, code, kbd, samp, .monospace, [class*="monospace"] {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace !important;
}

/* Base resets & layout improvements */
.wrapper {
    padding-bottom: 5rem; /* Space for mobile bottom nav */
}

/* Homepage Hero & Unified Downloader (Modern Redesign) */
.homepage-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1rem 3rem;
}

.homepage-hero {
    text-align: center;
    padding: 2.5rem 0.5rem 1.5rem;
    margin: 0 auto;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #38bdf8;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.homepage-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.18;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.85rem;
    letter-spacing: -0.025em;
}

.homepage-hero .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #94a3b8;
    margin: 0 auto 2.2rem;
    max-width: 600px;
    line-height: 1.55;
}

/* Unified Download Hero Box */
.hero-download-wrapper {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.unified-download-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unified-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 0.4rem 0.45rem 0.4rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.unified-input-group:focus-within {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 15px 35px rgba(0, 0, 0, 0.4);
}

.unified-input-main {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.input-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.unified-input-group:focus-within .input-icon-wrap {
    color: #38bdf8;
}

.unified-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 0.5rem !important;
    color: #f8fafc !important;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none !important;
}

.unified-input::placeholder {
    color: #64748b;
    opacity: 0.9;
}

.unified-paste-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    margin-right: 0.45rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
}

.unified-paste-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.25);
}

.unified-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}

.unified-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5);
    filter: brightness(1.06);
}

.unified-submit-btn:active {
    transform: translateY(0);
}

.unified-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.unified-submit-btn.loading .btn-text {
    display: none;
}

.unified-submit-btn.loading .btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(15, 23, 42, 0.2);
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-spinner {
    display: none;
}

.unified-submit-btn .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* Inline Options & Quota Indicator */
.unified-options-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 0.5rem;
}

.compact-toggle-pill {
    cursor: pointer;
    user-select: none;
}

.toggle-pill-ui {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
}

.compact-toggle-pill input:checked + .toggle-pill-ui {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.compact-toggle-pill:hover .toggle-pill-ui {
    border-color: rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

.compact-toggle-pill input:checked:hover + .toggle-pill-ui {
    border-color: rgba(56, 189, 248, 0.6);
    color: #38bdf8;
}

.quota-pill-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 9999px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.quota-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.quota-text-muted {
    color: #64748b;
}

.quota-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.inline-seek {
    width: 100%;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.inline-seek-fields {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.seek-input {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    color: #f8fafc;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    outline: none;
    width: 130px;
    text-align: center;
}

.seek-input:focus {
    border-color: #38bdf8;
}

/* Modern Loading State */
.modern-loading-card {
    margin-top: 1.5rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.modern-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(56, 189, 248, 0.15);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-status-text {
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
}

.loading-bar-wrap {
    width: 180px;
    height: 3px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loading-bar-pulse {
    position: absolute;
    height: 100%;
    width: 40%;
    background: #38bdf8;
    border-radius: 3px;
    animation: loadingBarPulse 1.4s ease-in-out infinite;
}

@keyframes loadingBarPulse {
    0% { left: -40%; }
    50% { left: 100%; }
    100% { left: -40%; }
}

.modern-result-container {
    margin-top: 1.75rem;
    animation: fadeInUp 0.5s ease;
}

/* Clean Ad Slot */
.homepage-ad-slot {
    margin: 2.5rem auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    width: 100%;
    overflow: hidden;
}

/* Supported Platforms Ribbon */
.platforms-ribbon-section {
    margin-top: 2.5rem;
    text-align: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.ribbon-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.platforms-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    max-width: 780px;
    margin: 0 auto;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.platform-chip svg {
    color: #94a3b8;
    transition: color 0.25s, transform 0.25s;
}

.platform-chip:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    color: #f8fafc;
}

.platform-chip:hover svg {
    color: #38bdf8;
    transform: scale(1.1);
}

/* Modern Pricing Section & Full SaaS Redesign */
body.pricing-page-body .wrapper,
.wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
}

.pricing-page-container {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 5rem !important;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-hero .hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3b82f6 !important;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.pricing-hero .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6 !important;
    box-shadow: 0 0 8px #3b82f6 !important;
}

.pricing-main-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 0 0.85rem;
    letter-spacing: -0.03em;
    max-width: 820px;
}

.pricing-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: #94A3B8 !important;
    max-width: 620px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Pricing Grid */
.pricing-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 4.5rem;
}

@media (min-width: 640px) {
    .pricing-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1140px) {
    .pricing-cards-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Individual Plan Card */
.pricing-card-modern {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 22px !important;
    padding: 2.2rem 1.6rem !important;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card-modern:hover {
    transform: translateY(-4px) !important;
    border-color: #2A364F !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

/* Featured Card (Pro Premium) */
.pricing-card-modern.featured {
    background: #0F1624 !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(59, 130, 246, 0.15) !important;
}

.pricing-card-modern.featured:hover {
    transform: translateY(-6px) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(59, 130, 246, 0.25) !important;
}

.featured-badge-modern {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
    z-index: 2;
    white-space: nowrap;
}

/* Card Header */
.card-header-block {
    margin-bottom: 0.5rem;
}

.plan-type-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.plan-type-free {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.plan-type-starter {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.plan-type-professional {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.plan-type-enterprise {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
}

.price-container .currency {
    font-size: 1.45rem;
    font-weight: 700;
    color: #94a3b8;
    align-self: flex-start;
    margin-top: 0.15rem;
}

.price-container .price {
    font-size: 2.85rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-container .period {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 0.25rem;
}

.local-currency {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.currency-tag {
    display: inline-block;
    font-weight: 600;
    color: #cbd5e1;
}

.currency-tag.tag-free {
    color: #34d399;
    font-weight: 600;
}

.card-divider {
    border: 0;
    height: 1px;
    background: rgba(148, 163, 184, 0.12);
    margin: 1.25rem 0 1.35rem;
}

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.feature-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    flex-shrink: 0;
    margin-top: 1px;
}

.feature-icon-wrap.icon-glow {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.text-accent-api {
    color: #38bdf8;
    font-weight: 700;
}

.feature-badge-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    margin-left: 0.25rem;
    vertical-align: 1px;
}

.feature-badge-pill.pill-featured {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.feature-badge-pill.pill-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.pricing-card-footer {
    margin-top: 2rem;
}

/* Custom Action Buttons */
.btn-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
    box-sizing: border-box;
}

.btn-plan-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-plan-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    color: #ffffff !important;
}

.btn-plan-featured {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.45);
}

.btn-plan-featured:hover {
    background: linear-gradient(135deg, #818cf8 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6);
    color: #ffffff !important;
}

.btn-plan-outline {
    background: rgba(148, 163, 184, 0.08);
    color: #f8fafc !important;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-plan-outline:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #38bdf8 !important;
    transform: translateY(-2px);
}

.btn-plan-active {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
    cursor: default;
}

.btn-plan-secondary {
    background: rgba(148, 163, 184, 0.06);
    color: #64748b !important;
    border: 1px solid rgba(148, 163, 184, 0.1);
    cursor: not-allowed;
}

/* Developer Perks Section */
.api-perks-section {
    margin: 4.5rem 0 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.api-perks-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.eyebrow-accent {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    margin-bottom: 0.6rem;
}

.perks-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.22;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.perks-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.api-perks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .api-perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .api-perks-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.perk-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(16px);
    transition: border-color 0.25s, transform 0.25s;
}

.perk-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-4px);
}

.perk-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.perk-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.5rem;
}

.perk-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}

/* Terminal Showcase Card */
.api-code-showcase-card {
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-top: 2rem;
}

.code-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}

.terminal-doc-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s;
}

.terminal-doc-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.code-terminal-body {
    padding: 1.25rem 1.5rem;
}

.terminal-code {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.65;
    overflow-x: auto;
}

.code-comment { color: #64748b; font-style: italic; }
.code-cmd { color: #38bdf8; font-weight: 600; }
.code-opt { color: #f59e0b; }
.code-str { color: #34d399; }

/* FAQ Section */
.pricing-faq-section {
    margin: 4.5rem 0 2rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.faq-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.faq-main-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin: 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(16px);
    transition: border-color 0.2s, background-color 0.2s;
}

.faq-item[open] {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.02rem;
    font-weight: 600;
    color: #f8fafc;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    transition: transform 0.25s ease;
    color: #64748b;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #38bdf8;
}

.faq-answer {
    margin-top: 0.85rem;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 0.85rem;
}

.faq-answer p {
    margin: 0;
}

/* Documentation Design */
.docs-section-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.docs-header {
    text-align: center;
    margin-bottom: 3rem;
}
.docs-title {
    font-size: 2.5rem;
    color: #f8fafc;
    margin: 0.5rem 0;
}
.docs-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
}
.docs-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 2.2rem;
    margin-bottom: 2rem;
}
.docs-card h2 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin: 0 0 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 0.75rem;
}
.getting-started-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .getting-started-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}
.step-item {
    display: flex;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.2);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.05);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 99px;
    background: #38bdf8;
    color: #020617;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.step-content h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: #f8fafc;
}
.step-content p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}
.auth-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.25rem;
}
@media (min-width: 600px) {
    .auth-details {
        grid-template-columns: repeat(2, 1fr);
    }
}
.auth-method {
    background: rgba(2, 6, 23, 0.4);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.08);
}
.auth-method h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    color: #94a3b8;
}
.auth-method code {
    display: block;
    color: #38bdf8;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Endpoint tables */
.endpoint-category {
    margin-bottom: 2.2rem;
}
.endpoint-category h3 {
    font-size: 1.2rem;
    color: #f8fafc;
    margin: 0 0 0.5rem;
}
.endpoint-block {
    display: flex;
    align-items: center;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 1.25rem;
    overflow-x: auto;
}
.endpoint-block .method {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.75rem;
}
.endpoint-block .method.get {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
.endpoint-block .endpoint-url {
    font-family: monospace;
    font-size: 0.9rem;
    color: #cbd5e1;
    white-space: nowrap;
}
.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}
.params-table th, .params-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.params-table th {
    color: #94a3b8;
    font-weight: 600;
    background: rgba(30, 41, 59, 0.15);
}
.params-table td code {
    color: #f472b6;
    font-family: monospace;
}

/* Responses grid */
.responses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.response-column h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.response-column h3.text-success {
    color: #34d399;
}
.response-column h3.text-error {
    color: #ef4444;
}

/* SDK Tab controls */
.sdk-tabs {
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.4);
    overflow: hidden;
}
.sdk-tab-buttons {
    display: flex;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.6);
}
.sdk-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.sdk-tab-btn:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.02);
}
.sdk-tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
    background: rgba(255, 255, 255, 0.04);
}
.sdk-tab-content {
    display: none;
    padding: 1rem;
}
.sdk-tab-content.active {
    display: block;
}

/* Playground redesign details */
.playground-fields-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 600px) {
    .playground-fields-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.docs-playground-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.docs-playground-form label span {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}
.docs-playground-form input {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
}
.docs-playground-form input:focus {
    border-color: #38bdf8;
}
.playground-actions {
    display: flex;
    gap: 1rem;
}
.raw-json-panel {
    margin-top: 1.5rem;
}
.raw-response {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 300px;
    overflow: auto;
    color: #a78bfa;
}

/* Profile Dashboard Styling */
.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.dashboard-header-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}
.dashboard-hero-shell {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .dashboard-header-block {
        flex-direction: row;
        align-items: center;
    }
}
.user-meta-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.user-avatar-large {
    width: 4rem;
    height: 4rem;
    border-radius: 99px;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.25);
}
.user-titles h1 {
    font-size: 1.75rem;
    color: #f8fafc;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
    word-break: break-word;
}
.user-role-badge {
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    letter-spacing: 0.05em;
}
.user-role-badge.role-free {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}
.user-role-badge.role-premium {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
.user-role-badge.role-dev {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
.dashboard-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.dashboard-mobile-actions {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}
.dashboard-header-form {
    margin: 0;
}
.dashboard-header-actions .button,
.dashboard-mobile-actions .button {
    justify-content: center;
}

/* Dashboard Grid components */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid .card-wide {
        grid-column: span 2;
    }
}
.dashboard-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.dashboard-card h2 {
    font-size: 1.25rem;
    color: #f8fafc;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.summary-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}
.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.summary-item .label {
    color: #94a3b8;
}
.summary-item .val {
    color: #cbd5e1;
    text-align: right;
}
.days-remaining {
    font-size: 0.75rem;
    color: #38bdf8;
    margin-left: 0.25rem;
}
.days-remaining.expired {
    color: #ef4444;
}

/* Stats Metrics Cards */
.stats-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 600px) {
    .stats-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.metric-card {
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
}

/* Progress trackers */
.usage-progress-bars {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.progress-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #cbd5e1;
}
.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #38bdf8;
    border-radius: 99px;
}
.progress-fill.fill-purple {
    background: #a78bfa;
}

/* API Key Credentials Block */
.api-key-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.api-key-block label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 600;
}
.input-with-action {
    display: flex;
    gap: 0.5rem;
}
.input-with-action input {
    flex: 1;
    min-width: 0;
}

/* Security Panels Grid */
.security-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .security-panel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.security-card h3 {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin: 0 0 1.25rem;
}
.security-status-indicators {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.status-indicator-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.2);
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.05);
}
.indicator-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.9rem;
}
.indicator-icon.secure {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
.indicator-icon.warning {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}
.indicator-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.indicator-info strong {
    font-size: 0.85rem;
    color: #cbd5e1;
}
.indicator-info span {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Security Dashboard Tables */
.security-data-table-wrapper {
    margin-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 2rem;
}
.security-data-table-wrapper h3 {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}
.responsive-table-container {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.2);
}
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}
.dashboard-table th, .dashboard-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.dashboard-table th {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.4);
    font-weight: 600;
}
.dashboard-table tr:last-child td {
    border-bottom: none;
}
.dashboard-table tr.current-session-row {
    background: rgba(56, 189, 248, 0.05);
}
.user-agent-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
}
.empty-state-cell {
    text-align: center;
    color: #64748b;
    padding: 2rem !important;
}

/* Invoice billing statuses */
.status-pill {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
}
.status-pill.status-completed {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
.status-pill.status-pending {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}
.status-pill.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Mobile Bottom Navigation Bar Position Fixed */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 4rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.25rem 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
}
.mobile-bottom-nav .nav-item span {
    font-size: 0.72rem;
    font-weight: 600;
}
.mobile-bottom-nav .nav-item svg {
    stroke-width: 2.2px;
}
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: #38bdf8;
}
.mobile-bottom-nav .nav-item.active svg {
    color: #38bdf8;
}

/* Utility Display Classes */
.mobile-only {
    display: none !important;
}
.desktop-only {
    display: flex !important;
}
@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }
    
    /* Optimize Homepage layout on mobile above the fold */
    .homepage-container {
        padding: 0.5rem 0.5rem 2rem;
    }
    .homepage-hero {
        padding: 1.25rem 0.25rem 1rem;
    }
    .homepage-hero .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    .homepage-hero .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }
    /* Modern Mobile Hero Downloader */
    .unified-download-form {
        width: 100%;
        max-width: 100%;
    }
    .unified-input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        gap: 0.65rem;
        width: 100%;
    }
    .unified-input-group:focus-within {
        background: transparent;
        box-shadow: none;
        border-color: transparent;
    }
    .unified-input-main {
        width: 100%;
        display: flex;
        align-items: center;
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 14px;
        padding: 0.35rem 0.45rem 0.35rem 0.85rem;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .unified-input-group:focus-within .unified-input-main {
        border-color: rgba(56, 189, 248, 0.55);
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 8px 24px rgba(0, 0, 0, 0.45);
    }
    .input-icon-wrap {
        display: flex;
        align-items: center;
        color: #64748b;
        margin-right: 0.4rem;
        flex-shrink: 0;
    }
    .unified-input {
        width: 100%;
        flex: 1;
        min-width: 0;
        font-size: 0.95rem;
        padding: 0.6rem 0.4rem !important;
        border: none !important;
        background: transparent !important;
        color: #f8fafc !important;
    }
    .unified-input::placeholder {
        color: #64748b;
        font-size: 0.9rem;
    }
    .unified-paste-btn {
        margin-left: auto;
        padding: 0.45rem 0.7rem;
        border-radius: 10px;
        flex-shrink: 0;
        font-size: 0.82rem;
    }
    .unified-submit-btn {
        width: 100%;
        height: 50px;
        padding: 0.8rem 1.25rem;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 600;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
    }
    .unified-submit-btn .btn-text {
        font-size: 1rem;
        gap: 0.55rem;
    }
    .unified-options-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    /* Modern Mobile Platform Chips: Clean 4-Column Grid */
    .platforms-ribbon {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.45rem;
        width: 100%;
        max-width: 100%;
    }
    .platform-chip {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.6rem 0.2rem;
        font-size: 0.72rem;
        font-weight: 500;
        text-align: center;
        border-radius: 12px;
        background: rgba(30, 41, 59, 0.4);
        border: 1px solid rgba(148, 163, 184, 0.1);
        width: 100%;
    }
    .platform-chip svg {
        width: 18px;
        height: 18px;
    }

    .dashboard-container {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.75rem;
        box-sizing: border-box;
    }
    .dashboard-header-block {
        width: 100%;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .dashboard-hero-shell {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .dashboard-grid .dashboard-card,
    .security-panel-grid .security-card {
        min-width: 0;
    }
    .responsive-table-container {
        width: 100%;
        max-width: 100%;
    }
    .user-meta-header {
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    .user-avatar-large {
        width: 3.75rem;
        height: 3.75rem;
        flex-shrink: 0;
    }
    .user-titles {
        min-width: 0;
        flex: 1;
    }
    .user-titles h1 {
        font-size: 1.5rem;
        line-height: 1.1;
        margin-bottom: 0.45rem;
        word-break: break-word;
    }
    .user-role-badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
    }
    .dashboard-mobile-actions {
        display: flex !important;
    }
    .dashboard-mobile-actions .button,
    .dashboard-mobile-actions .dashboard-header-form,
    .dashboard-mobile-actions .dashboard-header-form .button {
        width: 100%;
    }
    .dashboard-grid {
        gap: 1rem;
    }
    .dashboard-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .dashboard-card h2 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .summary-item .val {
        width: 100%;
        text-align: left;
        word-break: break-word;
    }
    .stats-metrics-grid {
        grid-template-columns: 1fr;
    }
    .metric-card {
        padding: 1rem;
    }
    .metric-value {
        font-size: 1.3rem;
    }
    .progress-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .input-with-action {
        flex-direction: column;
    }
    .input-with-action .button {
        width: 100%;
    }
    .security-card,
    .status-indicator-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .dashboard-table th,
    .dashboard-table td {
        padding: 0.75rem;
    }
    
    .docs-playground-panel {
        padding: 1rem;
    }
    .formats-list {
        grid-template-columns: 1fr;
    }
    .code-block code {
        font-size: 0.82rem;
    }

    /* Layout Wrapper spacing for Mobile Bottom Nav bar */
    .wrapper {
        padding-bottom: 5.5rem;
    }
}

/* Global Advertisement Layout Optimization */
:root {
    --ad-left-width: 160px;
    --ad-left-height: 300px;
    --ad-right-width: 160px;
    --ad-right-height: 300px;
    --ad-mobile-width: 320px;
    --ad-mobile-height: 50px;
}

.ad-sidebar-left,
.ad-sidebar-right {
    display: none;
}

@media (min-width: 1200px) {
    /* Case 1: Both Left and Right ads enabled */
    body.has-left-ad.has-right-ad .header-inner,
    body.has-left-ad.has-right-ad .wrapper,
    body.has-left-ad.has-right-ad .footer-inner {
        width: min(1080px, calc(100% - (var(--ad-left-width) + var(--ad-right-width) + 40px))) !important;
    }
    body.has-left-ad.has-right-ad .ad-sidebar-left {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        left: calc(50% - (min(1080px, calc(100% - (var(--ad-left-width) + var(--ad-right-width) + 40px))) / 2) - var(--ad-left-width) - 20px);
        width: var(--ad-left-width);
        height: var(--ad-left-height);
        z-index: 100;
        display: block;
    }
    body.has-left-ad.has-right-ad .ad-sidebar-right {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        right: calc(50% - (min(1080px, calc(100% - (var(--ad-left-width) + var(--ad-right-width) + 40px))) / 2) - var(--ad-right-width) - 20px);
        width: var(--ad-right-width);
        height: var(--ad-right-height);
        z-index: 100;
        display: block;
    }

    /* Case 2: Only Left ad enabled */
    body.has-left-ad:not(.has-right-ad) .header-inner,
    body.has-left-ad:not(.has-right-ad) .wrapper,
    body.has-left-ad:not(.has-right-ad) .footer-inner {
        width: min(1120px, calc(100% - (var(--ad-left-width) + 20px))) !important;
    }
    body.has-left-ad:not(.has-right-ad) .ad-sidebar-left {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        left: calc(50% - (min(1120px, calc(100% - (var(--ad-left-width) + 20px))) / 2) - var(--ad-left-width) - 20px);
        width: var(--ad-left-width);
        height: var(--ad-left-height);
        z-index: 100;
        display: block;
    }

    /* Case 3: Only Right ad enabled */
    body.has-right-ad:not(.has-left-ad) .header-inner,
    body.has-right-ad:not(.has-left-ad) .wrapper,
    body.has-right-ad:not(.has-left-ad) .footer-inner {
        width: min(1120px, calc(100% - (var(--ad-right-width) + 20px))) !important;
    }
    body.has-right-ad:not(.has-left-ad) .ad-sidebar-right {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        right: calc(50% - (min(1120px, calc(100% - (var(--ad-right-width) + 20px))) / 2) - var(--ad-right-width) - 20px);
        width: var(--ad-right-width);
        height: var(--ad-right-height);
        z-index: 100;
        display: block;
    }
}

/* Mobile Banner Ads placements */
.ad-container-horizontal {
    display: none !important;
}

@media (max-width: 1199px) {
    .ad-container-horizontal {
        display: flex !important;
        justify-content: center;
        margin: 1.5rem 0;
        width: 100%;
        min-height: var(--ad-mobile-height, 50px);
    }
    
    /* Layout Spacing Adjustment for mobile ads when enabled */
    body.has-mobile-ad .supported-platforms {
        margin-top: 5rem !important;
    }
}

@media (max-width: 768px) {
    /* Layout Spacing at the bottom of the page to protect from the mobile bottom navigation bar */
    .site-footer {
        padding-bottom: 5.5rem !important;
    }
}

/* ==========================================================================
   MODERN PROFESSIONAL SPONSORED ACCESS MODAL
   ========================================================================== */
.ad-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: adModalFadeIn 0.25s ease-out;
}

@keyframes adModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modern-ad-modal {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.99) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px -5px rgba(2, 132, 199, 0.18);
    animation: adModalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes adModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ad-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.ad-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ad-modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.ad-modal-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.ad-badge-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.ad-badge-unlock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.ad-modal-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.ad-modal-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 440px;
}

/* Sponsor Showcase Box */
.ad-showcase-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem;
    margin: 1.25rem 0;
    position: relative;
    overflow: hidden;
}

.ad-showcase-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.ad-sponsor-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: sponsorPulseDot 1.8s infinite;
}

@keyframes sponsorPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.ad-countdown-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: monospace;
    transition: all 0.3s ease;
}

.ad-countdown-pill.ready {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.ad-preview-box {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ad-preview-box:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.ad-creative-link {
    display: block;
    width: 100%;
    text-align: center;
}

.ad-creative-img {
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
    border-radius: 8px;
    display: inline-block;
}

/* Progress & Status */
.ad-showcase-progress {
    margin-top: 0.85rem;
    padding: 0 0.25rem;
}

.ad-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.9);
    overflow: hidden;
}

.ad-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 60%, #818cf8 100%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: width 0.35s ease;
}

.ad-progress-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.ad-progress-status .status-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.ad-progress-text {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s;
}

.ad-progress-text.text-ready {
    color: #34d399;
    font-weight: 600;
}

/* Actions */
.ad-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.ad-action-button {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.ad-action-button:disabled {
    background: rgba(30, 41, 59, 0.7) !important;
    color: #64748b !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

.ad-action-button.btn-ready {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px -4px rgba(56, 189, 248, 0.45) !important;
    cursor: pointer;
}

.ad-action-button.btn-ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(56, 189, 248, 0.6) !important;
}

.ad-action-button .btn-icon {
    transition: transform 0.2s;
}

.ad-action-button.btn-ready:hover .btn-icon {
    transform: translateY(2px);
}

.ad-upsell-note {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ad-upsell-link {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.ad-upsell-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Responsive Mobile Modal */
@media (max-width: 640px) {
    .modern-ad-modal {
        padding: 1.5rem 1.15rem;
        border-radius: 20px;
    }
    
    .ad-modal-title {
        font-size: 1.3rem;
    }
    
    .ad-modal-subtitle {
        font-size: 0.82rem;
    }
    
    .ad-preview-box {
        min-height: 150px;
        padding: 0.5rem;
    }
    
    .ad-action-button {
        height: 48px;
        font-size: 0.92rem;
    }
    
    .ad-modal-close {
        top: 0.85rem;
        right: 0.85rem;
        width: 32px;
        height: 32px;
    }
}
