:root {
    --navy: #0f172a;
    --slate: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --green: #16a34a;
    --green-dark: #15803d;
    --gold: #f59e0b;
    --border: #e2e8f0;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--slate);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.nav {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--navy);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: white;
    border-radius: 16px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
    transition: .15s ease;
}

.btn-primary {
    background: var(--green);
    color: white;
    box-shadow: 0 10px 24px rgba(22,163,74,.18);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-dark {
    background: var(--navy);
    color: white;
}

.btn-light {
    background: white;
    border: 1px solid var(--border);
    color: var(--slate);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 42px;
    padding: 70px 0;
    align-items: center;
}

.badge {
    display: inline-flex;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 66px);
    line-height: .98;
    letter-spacing: -2px;
    color: var(--navy);
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1px;
    color: var(--navy);
}

.lead {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.note {
    color: var(--muted);
    font-size: 14px;
    margin-top: 16px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(15,23,42,.07);
}

.card-pad {
    padding: 24px;
}

.balance-card {
    background: var(--navy);
    color: white;
    border-radius: 24px;
    padding: 28px;
}

.balance-card small {
    color: #cbd5e1;
    font-weight: 800;
}

.balance-card strong {
    display: block;
    font-size: 46px;
    margin-top: 8px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.reward-card {
    padding: 24px;
}

.reward-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: var(--green);
    border-radius: 16px;
    font-size: 22px;
    margin-bottom: 14px;
}

.amount {
    color: var(--gold);
    font-size: 28px;
    font-weight: 1000;
}

.form-wrap {
    width: min(460px, calc(100% - 32px));
    margin: 54px auto;
}

.form {
    display: grid;
    gap: 14px;
}

label {
    font-weight: 800;
    font-size: 14px;
}

input, select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    background: white;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 800;
}

.alert-ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.dashboard {
    padding: 40px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 22px 0;
}

.stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    color: var(--navy);
}

.link-box {
    display: grid;
    gap: 10px;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 18px;
    margin-top: 16px;
}

.link-row {
    display: flex;
    gap: 10px;
}

.link-row input {
    flex: 1;
}

.section {
    padding: 64px 0;
}

.footer {
    padding: 34px 0;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: white;
}

@media (max-width: 840px) {
    .hero,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }
}
/* Better homepage structure + mobile fixes */

.landing-hero {
    padding-top: 48px;
    padding-bottom: 42px;
}

.landing-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -1.4px;
}

.landing-hero .lead {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.65;
}

.compact-section {
    padding-top: 42px;
    padding-bottom: 42px;
}

.section-title {
    max-width: 650px;
    margin-bottom: 18px;
}

.section-title h2 {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.section-title p {
    color: var(--muted);
    line-height: 1.6;
    margin-top: 8px;
}

.hero-summary-card {
    max-width: 420px;
    margin-left: auto;
}

.compact-balance {
    padding: 22px;
}

.compact-balance strong {
    font-size: 38px;
}

.compact-balance p {
    margin-bottom: 0;
    color: #cbd5e1;
    font-size: 14px;
}

.mini-reward-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.mini-reward {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.mini-reward span {
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

.mini-reward strong {
    color: var(--gold);
    font-size: 17px;
}

.compact-card {
    padding: 20px;
}

.compact-card h3 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 18px;
}

.compact-card .amount {
    font-size: 24px;
}

.reward-icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.trust-strip div {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.trust-strip strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
}

.trust-strip span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.testimonial-card {
    padding: 20px;
}

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #0f172a;
    color: white;
    font-weight: 900;
}

.testimonial-card h3 {
    margin: 0;
    font-size: 16px;
}

.testimonial-card small {
    color: var(--muted);
    font-size: 12px;
}

.testimonial-card p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
    margin-bottom: 0;
}

.testimonial-form-card {
    margin-top: 22px;
    max-width: 720px;
}

textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    resize: vertical;
}

.withdraw-box {
    background: #0f172a;
    color: white;
    border-radius: 28px;
    padding: 34px;
}

.withdraw-box h2 {
    color: white;
    font-size: clamp(24px, 4vw, 34px);
}

.withdraw-box p {
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 700px;
}

/* Phone fixes */
@media (max-width: 840px) {
    .hero {
        gap: 26px;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .landing-hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .landing-hero .lead {
        font-size: 15px;
        line-height: 1.6;
    }

    .actions {
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }

    .hero-summary-card {
        max-width: 100%;
    }

    .compact-balance strong {
        font-size: 34px;
    }

    .grid-3,
    .trust-strip,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .compact-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .card-pad,
    .reward-card,
    .testimonial-card {
        padding: 18px;
    }

    .withdraw-box {
        padding: 24px;
        border-radius: 22px;
    }

    .nav-inner {
        min-height: 64px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(100% - 22px, 1120px);
    }

    .landing-hero h1 {
        font-size: 30px;
    }

    .badge {
        font-size: 12px;
        padding: 8px 11px;
    }

    .note {
        font-size: 13px;
    }

    .mini-reward {
        padding: 12px;
    }

    .mini-reward span {
        font-size: 13px;
    }

    .mini-reward strong {
        font-size: 15px;
    }
}
/* Premium header */

.premium-nav {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

.premium-nav-inner {
    min-height: 78px;
    gap: 18px;
}

.premium-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.premium-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.premium-logo-svg {
    width: 48px;
    height: 48px;
    display: block;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.12));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.brand-title {
    color: var(--navy);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.4px;
}

.brand-tagline {
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
    margin-top: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.premium-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.premium-links a {
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    transition: color .15s ease;
}

.premium-links a:hover {
    color: var(--navy);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sm {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 12px;
}

.btn-ghost {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--slate);
}

.btn-ghost:hover {
    background: #f8fafc;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Tablet */

@media (max-width: 980px) {
    .premium-nav-inner {
        min-height: 70px;
    }

    .premium-links {
        display: none;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-tagline {
        font-size: 11px;
    }

    .premium-logo-svg {
        width: 44px;
        height: 44px;
    }

    .btn-sm {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* Small phones */

@media (max-width: 640px) {
    .premium-nav-inner {
        min-height: 64px;
        gap: 10px;
    }

    .premium-brand {
        gap: 10px;
    }

    .premium-logo-svg {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-tagline {
        font-size: 10px;
        margin-top: 3px;
    }

    .header-right {
        gap: 8px;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-sm {
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 10px;
    }
}

@media (max-width: 460px) {
    .brand-tagline {
        display: none;
    }

    .brand-title {
        font-size: 15px;
    }

    .premium-logo-svg {
        width: 38px;
        height: 38px;
    }

    .btn-sm {
        padding: 8px 9px;
        font-size: 10px;
    }
}
/* Premium index page */

.ael-main {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.10), transparent 32rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.10), transparent 28rem),
        #f8fafc;
}

.flash-wrap {
    margin-top: 14px;
}

.premium-hero {
    padding-top: 46px;
    padding-bottom: 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 30px;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(236, 253, 245, 0.95);
    border: 1px solid #bbf7d0;
    color: #047857;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
}

.premium-badge span {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.14);
}

.premium-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 1.02;
    letter-spacing: -1.8px;
}

.hero-text {
    margin-top: 16px;
    max-width: 610px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-note {
    margin-top: 16px;
    max-width: 610px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.hero-note strong {
    color: #0f172a;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(12px);
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    background: #0f172a;
    color: white;
    border-radius: 24px;
    padding: 22px;
}

.panel-top span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.panel-top strong {
    display: block;
    margin-top: 5px;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1px;
}

.secure-chip {
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(187, 247, 208, 0.35);
    color: #bbf7d0;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.progress-box {
    margin-top: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.progress-label strong {
    color: #0f172a;
}

.progress-track {
    height: 9px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    width: 86%;
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 999px;
}

.progress-box p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
}

.reward-stack {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
}

.reward-row span {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.reward-row small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.reward-row strong {
    color: #f59e0b;
    font-size: 16px;
    white-space: nowrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.hero-stats div {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 17px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.hero-stats span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.hero-stats strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.premium-section {
    padding-top: 44px;
    padding-bottom: 44px;
}

.premium-section-title {
    max-width: 660px;
    margin-bottom: 20px;
}

.premium-section-title > span,
.trust-copy > span,
.premium-cta span {
    display: inline-block;
    color: #16a34a;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.premium-section-title h2,
.trust-copy h2,
.premium-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.12;
    letter-spacing: -1px;
}

.premium-section-title p,
.trust-copy p,
.premium-cta p {
    margin-top: 10px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.premium-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.premium-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.055);
}

.premium-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #16a34a;
    border-radius: 15px;
    font-size: 19px;
    margin-bottom: 12px;
}

.premium-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
}

.premium-amount {
    display: block;
    color: #f59e0b;
    font-size: 25px;
    line-height: 1;
    margin-bottom: 10px;
}

.premium-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
}

.step-card span {
    display: inline-flex;
    color: #16a34a;
    font-size: 13px;
    font-weight: 1000;
    margin-bottom: 12px;
}

.step-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 16px;
}

.step-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.trust-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    background: #0f172a;
    border-radius: 30px;
    padding: 30px;
    color: white;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.trust-copy h2,
.trust-copy p {
    color: white;
}

.trust-copy p {
    color: #cbd5e1;
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.trust-list div {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 20px;
    padding: 17px;
}

.trust-list strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.trust-list span {
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.premium-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.premium-testimonial {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.testimonial-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    display: grid;
    place-items: center;
    font-weight: 1000;
    flex-shrink: 0;
}

.premium-testimonial h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
}

.premium-testimonial small {
    color: #64748b;
    font-size: 12px;
}

.premium-testimonial p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.testimonial-submit-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 22px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 24px;
    margin-top: 18px;
}

.testimonial-submit-panel h2 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.15;
}

.testimonial-submit-panel p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.testimonial-form {
    display: grid;
    gap: 13px;
}

.testimonial-form label {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    font-size: 14px;
    background: #ffffff;
}

.testimonial-form textarea {
    min-height: 112px;
    resize: vertical;
}

.premium-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    border-radius: 30px;
    padding: 32px;
    color: white;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.premium-cta h2 {
    color: white;
}

.premium-cta p {
    color: #cbd5e1;
    max-width: 720px;
}

/* Make everything smaller and cleaner on phones */

@media (max-width: 980px) {
    .hero-grid,
    .trust-panel,
    .testimonial-submit-panel {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 560px;
    }

    .hero-stats,
    .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-card-grid,
    .premium-testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .premium-hero {
        padding-top: 28px;
        padding-bottom: 18px;
    }

    .hero-grid {
        gap: 20px;
    }

    .premium-badge {
        font-size: 11px;
        padding: 7px 10px;
        margin-bottom: 12px;
    }

    .premium-badge span {
        width: 7px;
        height: 7px;
    }

    .premium-hero h1 {
        font-size: 29px;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 14px;
        line-height: 1.58;
        margin-top: 12px;
    }

    .hero-actions {
        margin-top: 18px;
        gap: 9px;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 11px 13px;
        font-size: 13px;
        border-radius: 12px;
    }

    .hero-note {
        font-size: 12px;
        line-height: 1.55;
        margin-top: 12px;
    }

    .hero-panel {
        border-radius: 22px;
        padding: 14px;
    }

    .panel-top {
        padding: 17px;
        border-radius: 18px;
    }

    .panel-top span {
        font-size: 11px;
    }

    .panel-top strong {
        font-size: 31px;
    }

    .secure-chip {
        font-size: 10px;
        padding: 6px 8px;
    }

    .progress-box {
        padding: 12px;
        border-radius: 16px;
    }

    .progress-label,
    .progress-box p {
        font-size: 12px;
    }

    .reward-row {
        padding: 12px;
        border-radius: 15px;
    }

    .reward-row span {
        font-size: 13px;
    }

    .reward-row small {
        font-size: 11px;
    }

    .reward-row strong {
        font-size: 14px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 18px;
    }

    .hero-stats div {
        padding: 13px;
        border-radius: 16px;
    }

    .hero-stats span {
        font-size: 10px;
    }

    .hero-stats strong {
        font-size: 17px;
    }

    .premium-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .premium-section-title {
        margin-bottom: 15px;
    }

    .premium-section-title > span,
    .trust-copy > span,
    .premium-cta span {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .premium-section-title h2,
    .trust-copy h2,
    .premium-cta h2 {
        font-size: 23px;
        letter-spacing: -0.6px;
    }

    .premium-section-title p,
    .trust-copy p,
    .premium-cta p {
        font-size: 13px;
        line-height: 1.58;
    }

    .premium-card,
    .step-card,
    .premium-testimonial,
    .testimonial-submit-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .premium-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 17px;
    }

    .premium-card h3,
    .step-card h3 {
        font-size: 15px;
    }

    .premium-card p,
    .step-card p,
    .premium-testimonial p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .premium-amount {
        font-size: 21px;
    }

    .step-grid,
    .trust-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .trust-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .trust-list div {
        padding: 14px;
        border-radius: 16px;
    }

    .trust-list strong {
        font-size: 13px;
    }

    .trust-list span {
        font-size: 12px;
    }

    .testimonial-head {
        gap: 10px;
    }

    .avatar {
        width: 37px;
        height: 37px;
        font-size: 14px;
    }

    .premium-testimonial h3 {
        font-size: 14px;
    }

    .premium-testimonial small {
        font-size: 11px;
    }

    .testimonial-submit-panel h2 {
        font-size: 22px;
    }

    .testimonial-submit-panel p,
    .testimonial-form input,
    .testimonial-form textarea {
        font-size: 13px;
    }

    .testimonial-form input,
    .testimonial-form textarea {
        padding: 11px 12px;
        border-radius: 12px;
    }

    .testimonial-form textarea {
        min-height: 100px;
    }

    .premium-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        border-radius: 22px;
    }

    .premium-cta .btn {
        width: 100%;
        padding: 11px 13px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .premium-hero h1 {
        font-size: 26px;
    }

    .hero-text {
        font-size: 13px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .panel-top strong {
        font-size: 28px;
    }

    .premium-section-title h2,
    .trust-copy h2,
    .premium-cta h2 {
        font-size: 21px;
    }

    .premium-card-grid,
    .premium-testimonials {
        gap: 12px;
    }
}
/* Premium footer */

.premium-footer {
    background: #0f172a;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    color: #ffffff;
    padding: 34px 0 18px;
    margin-top: 28px;
}

.premium-footer-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand strong {
    display: block;
    font-size: 20px;
    font-weight: 1000;
    letter-spacing: -0.4px;
    color: #ffffff;
}

.footer-brand p {
    margin: 8px 0 0;
    max-width: 420px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.footer-brand small {
    display: inline-flex;
    margin-top: 12px;
    background: rgba(22, 163, 74, 0.14);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.22);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .premium-footer {
        padding: 26px 0 16px;
        margin-top: 18px;
    }

    .premium-footer-wrap {
        flex-direction: column;
        gap: 18px;
    }

    .footer-brand strong {
        font-size: 17px;
    }

    .footer-brand p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .footer-brand small {
        font-size: 11px;
        padding: 6px 9px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 18px;
        padding-top: 14px;
        font-size: 11px;
    }
}
/* Premium dashboard */

.premium-dashboard {
    padding-top: 34px;
    padding-bottom: 44px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 18px;
}

.dashboard-hero > div:first-child {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.12), transparent 28rem),
        #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.dashboard-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.dashboard-hero p {
    margin: 12px 0 0;
    max-width: 650px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.dash-balance-card {
    background: #0f172a;
    color: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.dash-balance-card > span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 900;
}

.dash-balance-card > strong {
    display: block;
    margin-top: 8px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -1px;
}

.dash-balance-card p {
    color: #cbd5e1;
    font-size: 13px;
}

.dash-progress {
    margin-top: 20px;
}

.dash-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #cbd5e1;
    font-weight: 800;
}

.dash-progress-track {
    height: 9px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 9px;
}

.dash-progress-track div {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 999px;
}

.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.dash-stat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.dash-stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.dash-stat strong {
    display: block;
    margin-top: 7px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.dash-reward-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.dash-reward-card,
.dash-panel,
.dash-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.045);
}

.dash-reward-card {
    padding: 20px;
}

.dash-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    border-radius: 14px;
    font-size: 18px;
    margin-bottom: 12px;
}

.dash-reward-card h3,
.dash-action-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.dash-reward-card strong {
    display: block;
    margin-top: 8px;
    color: #f59e0b;
    font-size: 24px;
    line-height: 1;
}

.dash-reward-card p,
.dash-action-card p,
.dash-empty p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 18px;
    align-items: start;
}

.dash-panel {
    padding: 22px;
}

.dash-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dash-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.dash-panel-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

.dash-link-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 15px;
    margin-top: 12px;
}

.dash-link-box label {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 9px;
}

.dash-link-box p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    margin: 9px 0 0;
}

.dash-link-row {
    display: flex;
    gap: 10px;
}

.dash-link-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 12px 13px;
    font-size: 13px;
}

.dash-link-row .btn {
    padding: 11px 14px;
    font-size: 13px;
    border-radius: 13px;
}

.dash-generate-form {
    margin-top: 14px;
}

.dash-generate-form .btn {
    padding: 12px 16px;
    font-size: 13px;
}

.dash-side {
    display: grid;
    gap: 14px;
}

.dash-action-card {
    padding: 20px;
}

.dash-action-card .btn {
    margin-top: 14px;
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
}

.telegram-card {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.13), transparent 16rem),
        #ffffff;
}

.warning-card {
    background: #fffbeb;
    border-color: #fde68a;
}

.warning-card h3 {
    color: #92400e;
}

.warning-card p {
    color: #92400e;
}

.dash-activity-panel {
    margin-top: 18px;
}

.dash-activity-list {
    display: grid;
    gap: 10px;
}

.dash-activity-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
}

.dash-activity-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.dash-activity-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.dash-activity-item b {
    white-space: nowrap;
    font-size: 14px;
}

.dash-activity-item .credit {
    color: #16a34a;
}

.dash-activity-item .debit {
    color: #dc2626;
}

.dash-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 16px;
}

.dash-empty strong {
    color: #0f172a;
    font-size: 14px;
}

/* Dashboard phone fixes */

@media (max-width: 980px) {
    .dashboard-hero,
    .dash-main-grid {
        grid-template-columns: 1fr;
    }

    .dash-stat-grid,
    .dash-reward-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .premium-dashboard {
        padding-top: 22px;
        padding-bottom: 30px;
    }

    .dashboard-hero {
        gap: 14px;
        margin-bottom: 14px;
    }

    .dashboard-hero > div:first-child,
    .dash-balance-card,
    .dash-panel,
    .dash-action-card,
    .dash-reward-card {
        border-radius: 18px;
    }

    .dashboard-hero > div:first-child {
        padding: 18px;
    }

    .dash-badge {
        font-size: 10px;
        padding: 7px 10px;
        margin-bottom: 10px;
    }

    .dashboard-hero h1 {
        font-size: 25px;
        letter-spacing: -0.6px;
    }

    .dashboard-hero p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .dash-balance-card {
        padding: 18px;
    }

    .dash-balance-card > span {
        font-size: 11px;
    }

    .dash-balance-card > strong {
        font-size: 32px;
    }

    .dash-balance-card p,
    .dash-progress-top {
        font-size: 11.5px;
    }

    .dash-stat-grid,
    .dash-reward-grid,
    .dash-side {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .dash-stat {
        padding: 14px;
        border-radius: 16px;
    }

    .dash-stat span {
        font-size: 10.5px;
    }

    .dash-stat strong {
        font-size: 20px;
    }

    .dash-reward-card,
    .dash-panel,
    .dash-action-card {
        padding: 16px;
    }

    .dash-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .dash-reward-card h3,
    .dash-action-card h3 {
        font-size: 14px;
    }

    .dash-reward-card strong {
        font-size: 20px;
    }

    .dash-reward-card p,
    .dash-action-card p,
    .dash-empty p {
        font-size: 12px;
        line-height: 1.5;
    }

    .dash-panel-head {
        margin-bottom: 12px;
    }

    .dash-panel-head h2 {
        font-size: 20px;
    }

    .dash-panel-head p {
        font-size: 12px;
    }

    .dash-link-box {
        padding: 13px;
        border-radius: 15px;
    }

    .dash-link-box label {
        font-size: 12px;
    }

    .dash-link-row {
        flex-direction: column;
        gap: 8px;
    }

    .dash-link-row input {
        font-size: 12px;
        padding: 11px 12px;
    }

    .dash-link-row .btn,
    .dash-generate-form .btn,
    .dash-action-card .btn {
        width: 100%;
        font-size: 12px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .dash-activity-panel {
        margin-top: 14px;
    }

    .dash-activity-item {
        align-items: flex-start;
        padding: 12px;
        border-radius: 14px;
    }

    .dash-activity-item strong {
        font-size: 12.5px;
    }

    .dash-activity-item span {
        font-size: 11px;
    }

    .dash-activity-item b {
        font-size: 12.5px;
    }

    .alert {
        font-size: 12px;
        padding: 12px 13px;
    }
}

@media (max-width: 420px) {
    .dashboard-hero h1 {
        font-size: 23px;
    }

    .dash-balance-card > strong {
        font-size: 29px;
    }

    .dash-stat strong {
        font-size: 18px;
    }

    .dash-panel-head h2 {
        font-size: 18px;
    }
}
/* Premium withdrawal page */

.premium-withdraw-page {
    padding-top: 32px;
    padding-bottom: 44px;
}

.withdraw-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
}

.withdraw-hero > div:first-child {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.12), transparent 26rem),
        #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
}

.withdraw-badge {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.withdraw-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.withdraw-hero p {
    margin: 12px 0 0;
    max-width: 650px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.withdraw-balance-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.withdraw-balance-card > span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 900;
}

.withdraw-balance-card > strong {
    display: block;
    margin-top: 8px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -1px;
}

.withdraw-progress {
    margin-top: 20px;
}

.withdraw-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #cbd5e1;
    font-weight: 800;
}

.withdraw-progress-track {
    height: 9px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 9px;
}

.withdraw-progress-track div {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 999px;
}

.withdraw-ready {
    color: #86efac !important;
    font-size: 13px !important;
}

.withdraw-muted {
    color: #cbd5e1 !important;
    font-size: 13px !important;
}

.withdraw-alert {
    margin-bottom: 18px;
}

.withdraw-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 18px;
    align-items: start;
}

.withdraw-panel,
.withdraw-info-card,
.withdraw-history {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.045);
}

.withdraw-panel {
    padding: 22px;
}

.withdraw-panel-head {
    margin-bottom: 16px;
}

.withdraw-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.withdraw-panel-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.withdraw-form {
    display: grid;
    gap: 13px;
}

.withdraw-form label {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 7px;
}

.withdraw-form input,
.withdraw-form select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 13px;
    font: inherit;
    font-size: 14px;
    background: #ffffff;
}

.withdraw-form input:focus,
.withdraw-form select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
}

.withdraw-form .btn {
    margin-top: 4px;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 13px;
}

.withdraw-form .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.withdraw-form-note {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.withdraw-side {
    display: grid;
    gap: 14px;
}

.withdraw-info-card {
    padding: 20px;
}

.withdraw-info-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.withdraw-info-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.75;
}

.withdraw-info-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.dark-info {
    background: #0f172a;
    border-color: #0f172a;
}

.dark-info h3 {
    color: #ffffff;
}

.dark-info p {
    color: #cbd5e1;
}

.withdraw-history {
    margin-top: 18px;
    padding: 22px;
}

.withdraw-history-list {
    display: grid;
    gap: 10px;
}

.withdraw-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
}

.withdraw-history-item strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.withdraw-history-item span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.withdraw-history-right {
    text-align: right;
}

.withdraw-history-right small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
}

.withdraw-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 900;
}

.status-pending {
    background: #fffbeb;
    color: #b45309;
}

.status-approved {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-paid {
    background: #ecfdf5;
    color: #047857;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.withdraw-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 16px;
}

.withdraw-empty strong {
    color: #0f172a;
    font-size: 14px;
}

.withdraw-empty p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

/* Withdrawal phone fixes */

@media (max-width: 980px) {
    .withdraw-hero,
    .withdraw-layout {
        grid-template-columns: 1fr;
    }

    .withdraw-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .premium-withdraw-page {
        padding-top: 22px;
        padding-bottom: 30px;
    }

    .withdraw-hero {
        gap: 14px;
        margin-bottom: 14px;
    }

    .withdraw-hero > div:first-child,
    .withdraw-balance-card,
    .withdraw-panel,
    .withdraw-info-card,
    .withdraw-history {
        border-radius: 18px;
    }

    .withdraw-hero > div:first-child,
    .withdraw-balance-card,
    .withdraw-panel,
    .withdraw-info-card,
    .withdraw-history {
        padding: 16px;
    }

    .withdraw-badge {
        font-size: 10px;
        padding: 7px 10px;
        margin-bottom: 10px;
    }

    .withdraw-hero h1 {
        font-size: 24px;
        letter-spacing: -0.6px;
    }

    .withdraw-hero p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .withdraw-balance-card > span {
        font-size: 11px;
    }

    .withdraw-balance-card > strong {
        font-size: 31px;
    }

    .withdraw-progress-top,
    .withdraw-ready,
    .withdraw-muted {
        font-size: 11.5px !important;
    }

    .withdraw-side {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .withdraw-panel-head {
        margin-bottom: 12px;
    }

    .withdraw-panel-head h2 {
        font-size: 20px;
    }

    .withdraw-panel-head p {
        font-size: 12px;
    }

    .withdraw-form {
        gap: 11px;
    }

    .withdraw-form label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .withdraw-form input,
    .withdraw-form select {
        font-size: 12.5px;
        padding: 11px 12px;
        border-radius: 12px;
    }

    .withdraw-form .btn {
        width: 100%;
        font-size: 12px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .withdraw-form-note {
        font-size: 11.5px;
    }

    .withdraw-info-card h3 {
        font-size: 14px;
    }

    .withdraw-info-card ul,
    .withdraw-info-card p {
        font-size: 12px;
        line-height: 1.55;
    }

    .withdraw-history {
        margin-top: 14px;
    }

    .withdraw-history-item {
        align-items: flex-start;
        padding: 12px;
        border-radius: 14px;
    }

    .withdraw-history-item strong {
        font-size: 12.5px;
    }

    .withdraw-history-item span {
        font-size: 11px;
    }

    .withdraw-history-right small {
        font-size: 10.5px;
    }

    .withdraw-status {
        font-size: 10px;
        padding: 5px 8px;
    }
}

@media (max-width: 420px) {
    .withdraw-hero h1 {
        font-size: 22px;
    }

    .withdraw-balance-card > strong {
        font-size: 28px;
    }

    .withdraw-panel-head h2 {
        font-size: 18px;
    }

    .withdraw-history-item {
        flex-direction: column;
        gap: 8px;
    }

    .withdraw-history-right {
        text-align: left;
    }
}
/* Global withdrawal slide alert */

.global-withdraw-toast {
    position: fixed;
    top: 88px;
    left: 50%;
    z-index: 999;
    width: min(92%, 430px);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    transform: translate(-50%, -140px);
    animation: withdrawSlideDown 7s ease-in-out forwards;
}

.global-withdraw-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(134, 239, 172, 0.24);
    border-radius: 15px;
    font-size: 20px;
}

.global-withdraw-toast strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
}

.global-withdraw-toast span {
    display: block;
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
}

@keyframes withdrawSlideDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -140px);
    }

    12% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    72% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 120px);
        pointer-events: none;
    }
}

@media (max-width: 640px) {
    .global-withdraw-toast {
        top: 72px;
        width: min(94%, 360px);
        padding: 12px 13px;
        border-radius: 15px;
        gap: 10px;
    }

    .global-withdraw-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 17px;
    }

    .global-withdraw-toast strong {
        font-size: 12.5px;
    }

    .global-withdraw-toast span {
        font-size: 11px;
    }
}
/* Dashboard premium upgrade - no video upload */

.upgraded-dashboard {
    padding-top: 30px;
}

.dash-welcome-card {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.12), transparent 26rem),
        #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
}

.premium-dash-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, max-content));
    gap: 12px;
    margin-top: 22px;
}

.premium-dash-actions .btn,
.premium-withdraw-actions .btn,
.dash-panel-head .btn {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 13px;
    border-radius: 14px;
    white-space: nowrap;
}

.premium-balance-card {
    position: relative;
    overflow: hidden;
}

.premium-balance-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    background: rgba(22, 163, 74, 0.16);
    border-radius: 50%;
}

.premium-withdraw-strip {
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid rgba(134, 239, 172, 0.18);
}

.premium-withdraw-actions {
    display: flex;
    gap: 12px;
}

.premium-earn-panel,
.premium-link-panel {
    border-radius: 26px;
}

.premium-earn-panel .dash-panel-head {
    align-items: center;
}

.premium-side-withdraw {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 16rem),
        #ffffff;
}

/* How-to modal cleanup */

.is-hidden {
    display: none !important;
}

.premium-howto-modal {
    border-radius: 28px;
}

.premium-howto-steps div {
    position: relative;
}

.premium-howto-steps span {
    display: inline-flex;
    color: #16a34a;
    font-size: 11px;
    font-weight: 1000;
    margin-bottom: 8px;
}

.howto-warning {
    margin-top: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 16px;
    padding: 13px 14px;
    font-size: 12.5px;
    line-height: 1.5;
}

.howto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.howto-footer .btn {
    min-width: 150px;
    min-height: 42px;
}

/* Better button sizing inside dashboard */

.premium-dashboard .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dash-action-card .btn {
    min-height: 44px;
}

.dash-generate-form .btn {
    min-height: 44px;
    padding-left: 18px;
    padding-right: 18px;
}

.dash-link-row .btn {
    min-width: 115px;
}

/* Mobile dashboard fixes */

@media (max-width: 980px) {
    .premium-dash-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .premium-withdraw-actions {
        width: 100%;
    }

    .premium-withdraw-actions .btn {
        flex: 1;
    }
}

@media (max-width: 720px) {
    .premium-dash-actions {
        grid-template-columns: 1fr;
    }

    .premium-dash-actions .btn,
    .premium-withdraw-actions .btn {
        width: 100%;
    }

    .premium-withdraw-actions {
        flex-direction: column;
    }

    .dash-welcome-card {
        padding: 18px;
        border-radius: 20px;
    }

    .dash-welcome-card h1 {
        font-size: 24px;
    }

    .dash-welcome-card p {
        font-size: 12.5px;
    }

    .premium-dash-actions .btn {
        min-height: 42px;
        font-size: 12.5px;
    }

    .premium-withdraw-strip {
        padding: 18px;
        border-radius: 20px;
    }

    .premium-withdraw-strip h2 {
        font-size: 20px;
    }

    .premium-withdraw-strip p {
        font-size: 12px;
    }

    .premium-earn-panel .dash-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dash-panel-head .btn {
        width: 100%;
        min-height: 40px;
    }

    .howto-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .howto-footer .btn {
        width: 100%;
        min-width: 0;
    }

    .dash-link-row .btn {
        min-width: 0;
    }
}
/* Premium how-to popup with SVG icons */

.is-hidden {
    display: none !important;
}

.howto-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.18), transparent 30rem),
        rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(10px);
}

.premium-howto-modal {
    width: min(100%, 780px);
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 30px 100px rgba(15, 23, 42, 0.35);
    animation: premiumHowToPop .22s ease-out;
}

@keyframes premiumHowToPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.premium-howto-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.howto-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.howto-brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
}

.howto-brand-icon svg {
    width: 25px;
    height: 25px;
}

.premium-howto-head span {
    display: inline-block;
    color: #16a34a;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.premium-howto-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.7px;
}

.premium-howto-head p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.howto-close-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
}

.howto-close-btn svg {
    width: 18px;
    height: 18px;
}

.premium-howto-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.premium-howto-steps > div {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.10), transparent 13rem),
        #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 17px;
}

.howto-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 15px;
    margin-bottom: 12px;
}

.howto-icon svg {
    width: 23px;
    height: 23px;
}

.premium-howto-steps small {
    display: block;
    color: #16a34a;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.premium-howto-steps strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.premium-howto-steps p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.55;
}

.premium-howto-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 18px;
    padding: 14px;
}

.premium-howto-warning svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.premium-howto-warning p {
    margin: 0;
    color: #92400e;
    font-size: 12.5px;
    line-height: 1.5;
}

.premium-howto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.premium-howto-footer .howto-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 800;
}

.premium-howto-footer .btn {
    min-width: 150px;
    min-height: 42px;
    font-size: 13px;
}

/* Hide old removed dashboard sections if old CSS still exists */
.withdraw-top-panel,
.how-earn-panel {
    display: none !important;
}

@media (max-width: 700px) {
    .premium-howto-modal {
        padding: 17px;
        border-radius: 22px;
    }

    .premium-howto-head {
        gap: 12px;
        margin-bottom: 14px;
    }

    .howto-title-wrap {
        gap: 11px;
    }

    .howto-brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .premium-howto-head h2 {
        font-size: 21px;
    }

    .premium-howto-head p {
        font-size: 12px;
    }

    .premium-howto-steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .premium-howto-steps > div {
        padding: 14px;
        border-radius: 17px;
    }

    .howto-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        margin-bottom: 10px;
    }

    .howto-icon svg {
        width: 20px;
        height: 20px;
    }

    .premium-howto-steps strong {
        font-size: 13.5px;
    }

    .premium-howto-steps p {
        font-size: 11.8px;
    }

    .premium-howto-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .premium-howto-footer .btn {
        width: 100%;
    }
}
/* Saved withdrawal number */

.saved-momo-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.045);
    margin-bottom: 18px;
}

.saved-momo-head {
    margin-bottom: 16px;
}

.saved-momo-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.15;
}

.saved-momo-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

.saved-momo-card,
.saved-withdraw-target {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.saved-momo-card div,
.saved-withdraw-target div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
}

.saved-momo-card span,
.saved-withdraw-target span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 5px;
}

.saved-momo-card strong,
.saved-withdraw-target strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    word-break: break-word;
}

.saved-momo-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 12px;
}

.saved-momo-warning {
    margin: 12px 0 0;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 14px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.saved-momo-form {
    display: grid;
    grid-template-columns: 1fr 1fr 180px auto;
    gap: 12px;
    align-items: end;
}

.saved-momo-form label {
    display: block;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.saved-momo-form input,
.saved-momo-form select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 11px 12px;
    font: inherit;
    font-size: 13px;
}

.saved-momo-form .btn {
    min-height: 42px;
    white-space: nowrap;
}

.saved-withdraw-target {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .saved-momo-form,
    .saved-momo-card,
    .saved-withdraw-target {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .saved-momo-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .saved-momo-head h2 {
        font-size: 20px;
    }

    .saved-momo-head p,
    .saved-momo-note,
    .saved-momo-warning {
        font-size: 12px;
    }

    .saved-momo-card div,
    .saved-withdraw-target div {
        padding: 12px;
        border-radius: 13px;
    }

    .saved-momo-card strong,
    .saved-withdraw-target strong {
        font-size: 12.5px;
    }

    .saved-momo-form input,
    .saved-momo-form select {
        font-size: 12px;
        padding: 10px 11px;
    }

    .saved-momo-form .btn {
        width: 100%;
        font-size: 12px;
    }
}
/* Premium My Withdrawals page */

.myw-page {
    padding-top: 28px;
    padding-bottom: 42px;
}

.myw-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.12), transparent 24rem),
        #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
    margin-bottom: 16px;
}

.myw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 1000;
    margin-bottom: 11px;
}

.myw-badge span {
    width: 7px;
    height: 7px;
    background: #16a34a;
    border-radius: 999px;
}

.myw-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.myw-hero p {
    margin: 9px 0 0;
    max-width: 620px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.myw-hero-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.myw-hero-actions .btn {
    min-height: 42px;
    padding: 11px 15px;
    font-size: 13px;
    border-radius: 13px;
    white-space: nowrap;
}

.myw-alert {
    margin-bottom: 14px;
}

.myw-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.myw-stats div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.myw-stats span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 1000;
}

.myw-stats strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 21px;
    line-height: 1;
}

.myw-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.myw-card,
.myw-side-card,
.myw-history-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.045);
}

.myw-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.myw-card-head span {
    display: inline-block;
    color: #16a34a;
    font-size: 10.5px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
}

.myw-card-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.myw-card-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.myw-lock-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #0f172a;
    color: #ffffff;
    border-radius: 15px;
}

.myw-lock-icon svg {
    width: 22px;
    height: 22px;
}

.myw-saved-number {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.myw-saved-number div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 12px;
}

.myw-saved-number span,
.myw-item-details span,
.myw-item-top span {
    display: block;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 1000;
    margin-bottom: 5px;
}

.myw-saved-number strong,
.myw-item-details strong {
    display: block;
    color: #0f172a;
    font-size: 12.5px;
    line-height: 1.35;
    word-break: break-word;
}

.myw-locked {
    color: #16a34a !important;
}

.myw-security-note {
    margin-top: 11px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
    border-radius: 14px;
    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
}

.myw-save-form {
    display: grid;
    grid-template-columns: 1fr 1fr 160px auto;
    gap: 10px;
    align-items: end;
}

.myw-save-form label {
    display: block;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 900;
    margin-bottom: 6px;
}

.myw-save-form input,
.myw-save-form select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 10px 11px;
    font: inherit;
    font-size: 12.5px;
    background: #ffffff;
}

.myw-save-form input:focus,
.myw-save-form select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
}

.myw-save-form .btn {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 12.5px;
    border-radius: 13px;
    white-space: nowrap;
}

.myw-warning-note {
    margin-top: 11px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 14px;
    padding: 11px 12px;
    font-size: 11.8px;
    line-height: 1.5;
    font-weight: 700;
}

.myw-side-card {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.10), transparent 14rem),
        #ffffff;
}

.myw-side-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.myw-side-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.7;
}

.myw-list {
    display: grid;
    gap: 12px;
}

.myw-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
}

.myw-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.myw-item-top strong {
    display: block;
    color: #0f172a;
    font-size: 19px;
    line-height: 1;
}

.myw-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 10.5px;
    font-weight: 1000;
    white-space: nowrap;
}

.myw-item-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.myw-item-details div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 10px;
}

.myw-admin-note {
    margin-top: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 13px;
    padding: 10px 11px;
    font-size: 11.8px;
    line-height: 1.5;
}

.myw-admin-note span {
    font-weight: 1000;
}

.myw-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 17px;
    padding: 16px;
}

.myw-empty strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.myw-empty p {
    margin: 7px 0 13px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.55;
}

.status-pending {
    background: #fffbeb;
    color: #b45309;
}

.status-approved {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-paid {
    background: #ecfdf5;
    color: #047857;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 980px) {
    .myw-grid {
        grid-template-columns: 1fr;
    }

    .myw-save-form {
        grid-template-columns: 1fr 1fr;
    }

    .myw-saved-number,
    .myw-item-details,
    .myw-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .myw-page {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .myw-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .myw-badge {
        font-size: 10px;
        padding: 6px 9px;
        margin-bottom: 9px;
    }

    .myw-hero h1 {
        font-size: 23px;
        letter-spacing: -0.5px;
    }

    .myw-hero p {
        font-size: 12px;
        line-height: 1.5;
    }

    .myw-hero-actions {
        flex-direction: column;
        gap: 8px;
    }

    .myw-hero-actions .btn {
        width: 100%;
        min-height: 39px;
        font-size: 12px;
        padding: 10px 12px;
    }

    .myw-alert {
        font-size: 12px;
        padding: 11px 12px;
    }

    .myw-stats {
        gap: 9px;
        margin-bottom: 12px;
    }

    .myw-stats div {
        padding: 12px;
        border-radius: 15px;
    }

    .myw-stats span {
        font-size: 9.8px;
    }

    .myw-stats strong {
        font-size: 16px;
    }

    .myw-card,
    .myw-side-card,
    .myw-history-card {
        padding: 14px;
        border-radius: 18px;
    }

    .myw-card-head {
        margin-bottom: 12px;
    }

    .myw-card-head span {
        font-size: 9.8px;
        margin-bottom: 4px;
    }

    .myw-card-head h2 {
        font-size: 18px;
    }

    .myw-card-head p {
        font-size: 11.5px;
    }

    .myw-lock-icon {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .myw-lock-icon svg {
        width: 19px;
        height: 19px;
    }

    .myw-save-form,
    .myw-saved-number,
    .myw-item-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .myw-save-form label {
        font-size: 11px;
    }

    .myw-save-form input,
    .myw-save-form select {
        padding: 10px;
        font-size: 12px;
        border-radius: 11px;
    }

    .myw-save-form .btn {
        width: 100%;
        min-height: 39px;
        font-size: 12px;
    }

    .myw-warning-note,
    .myw-security-note,
    .myw-admin-note {
        font-size: 11.2px;
        padding: 10px;
        border-radius: 12px;
    }

    .myw-side-card h3 {
        font-size: 14px;
    }

    .myw-side-card ul {
        font-size: 11.5px;
        line-height: 1.6;
    }

    .myw-item {
        padding: 12px;
        border-radius: 15px;
    }

    .myw-item-top {
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .myw-item-top strong {
        font-size: 16px;
    }

    .myw-status {
        font-size: 9.8px;
        padding: 5px 8px;
    }

    .myw-saved-number div,
    .myw-item-details div {
        padding: 9px 10px;
        border-radius: 11px;
    }

    .myw-saved-number span,
    .myw-item-details span,
    .myw-item-top span {
        font-size: 9.8px;
    }

    .myw-saved-number strong,
    .myw-item-details strong {
        font-size: 11.5px;
    }

    .myw-empty {
        padding: 13px;
        border-radius: 14px;
    }

    .myw-empty strong {
        font-size: 13px;
    }

    .myw-empty p {
        font-size: 11.5px;
    }
}

@media (max-width: 390px) {
    .myw-hero h1 {
        font-size: 21px;
    }

    .myw-stats {
        grid-template-columns: 1fr;
    }

    .myw-item-top {
        flex-direction: column;
        gap: 8px;
    }
}
/* Premium Withdraw page */

.pw-page {
    padding-top: 26px;
    padding-bottom: 42px;
}

.pw-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.pw-hero-copy,
.pw-balance-card,
.pw-card,
.pw-side-card,
.pw-history {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .045);
}

.pw-hero-copy {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, .12), transparent 24rem),
        #fff;
    padding: 24px;
}

.pw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 1000;
    margin-bottom: 12px;
}

.pw-badge span {
    width: 7px;
    height: 7px;
    background: #16a34a;
    border-radius: 999px;
}

.pw-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -.8px;
}

.pw-hero p {
    margin: 9px 0 0;
    max-width: 650px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.pw-balance-card {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
    padding: 22px;
}

.pw-balance-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -70px;
    top: -70px;
    background: rgba(22, 163, 74, .16);
    border-radius: 50%;
}

.pw-balance-card > span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
}

.pw-balance-card > strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1px;
}

.pw-progress {
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.pw-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.pw-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.pw-progress-track div {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 999px;
}

.pw-ready,
.pw-muted {
    position: relative;
    z-index: 1;
    font-size: 12px !important;
    font-weight: 800;
}

.pw-ready {
    color: #86efac !important;
}

.pw-muted {
    color: #cbd5e1 !important;
}

.pw-alert {
    margin-bottom: 14px;
}

.pw-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.pw-card,
.pw-history {
    background: #fff;
    padding: 20px;
}

.pw-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 15px;
}

.pw-card-head span {
    display: inline-block;
    color: #16a34a;
    font-size: 10.5px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
}

.pw-card-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.4px;
}

.pw-card-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.pw-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #0f172a;
    color: #fff;
    border-radius: 15px;
}

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

.pw-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 17px;
    padding: 16px;
}

.pw-empty strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.pw-empty p {
    margin: 7px 0 13px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.55;
}

.pw-target {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.pw-target div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 12px;
}

.pw-target span,
.pw-history-item span {
    display: block;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 1000;
    margin-bottom: 5px;
}

.pw-target strong {
    display: block;
    color: #0f172a;
    font-size: 12.5px;
    line-height: 1.35;
    word-break: break-word;
}

.pw-form {
    display: grid;
    gap: 11px;
}

.pw-form label {
    display: block;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 900;
    margin-bottom: 6px;
}

.pw-form input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 10px 11px;
    font: inherit;
    font-size: 12.5px;
    background: #fff;
}

.pw-form input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .10);
}

.pw-form .btn {
    min-height: 41px;
    padding: 10px 13px;
    font-size: 12.5px;
    border-radius: 13px;
}

.pw-form .btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pw-form-note {
    margin: 0;
    color: #64748b;
    font-size: 11.8px;
    line-height: 1.5;
}

.pw-side {
    display: grid;
    gap: 12px;
}

.pw-side-card {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, .10), transparent 14rem),
        #fff;
    padding: 18px;
}

.pw-side-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
}

.pw-side-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #64748b;
    font-size: 12.3px;
    line-height: 1.7;
}

.pw-side-card p {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 12.3px;
    line-height: 1.55;
}

.pw-dark-card {
    background: #0f172a;
    border-color: #0f172a;
}

.pw-dark-card h3 {
    color: #fff;
}

.pw-dark-card p {
    color: #cbd5e1;
}

.pw-history-list {
    display: grid;
    gap: 10px;
}

.pw-history-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px;
}

.pw-history-item strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    line-height: 1;
}

.pw-history-item p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 11.5px;
}

.pw-history-right {
    text-align: right;
}

.pw-history-right small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 10.5px;
}

.pw-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 10.5px;
    font-weight: 1000;
}

.status-pending {
    background: #fffbeb;
    color: #b45309;
}

.status-approved {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-paid {
    background: #ecfdf5;
    color: #047857;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 980px) {
    .pw-hero,
    .pw-grid {
        grid-template-columns: 1fr;
    }

    .pw-target {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .pw-page {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .pw-hero {
        gap: 12px;
        margin-bottom: 12px;
    }

    .pw-hero-copy,
    .pw-balance-card,
    .pw-card,
    .pw-side-card,
    .pw-history {
        border-radius: 18px;
    }

    .pw-hero-copy,
    .pw-balance-card,
    .pw-card,
    .pw-side-card,
    .pw-history {
        padding: 15px;
    }

    .pw-badge {
        font-size: 10px;
        padding: 6px 9px;
        margin-bottom: 9px;
    }

    .pw-hero h1 {
        font-size: 23px;
        letter-spacing: -.5px;
    }

    .pw-hero p {
        font-size: 12px;
        line-height: 1.5;
    }

    .pw-balance-card > span {
        font-size: 10.5px;
    }

    .pw-balance-card > strong {
        font-size: 29px;
    }

    .pw-progress-top,
    .pw-ready,
    .pw-muted {
        font-size: 11px !important;
    }

    .pw-card-head {
        margin-bottom: 12px;
    }

    .pw-card-head span {
        font-size: 9.8px;
        margin-bottom: 4px;
    }

    .pw-card-head h2 {
        font-size: 18px;
    }

    .pw-card-head p {
        font-size: 11.5px;
    }

    .pw-icon {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .pw-icon svg {
        width: 19px;
        height: 19px;
    }

    .pw-target {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pw-target div {
        padding: 10px;
        border-radius: 12px;
    }

    .pw-target span,
    .pw-history-item span {
        font-size: 9.8px;
    }

    .pw-target strong {
        font-size: 11.5px;
    }

    .pw-form label {
        font-size: 11px;
    }

    .pw-form input {
        padding: 10px;
        font-size: 12px;
        border-radius: 11px;
    }

    .pw-form .btn,
    .pw-empty .btn {
        width: 100%;
        min-height: 39px;
        font-size: 12px;
    }

    .pw-form-note,
    .pw-empty p,
    .pw-side-card ul,
    .pw-side-card p {
        font-size: 11.5px;
    }

    .pw-empty {
        padding: 13px;
        border-radius: 14px;
    }

    .pw-empty strong {
        font-size: 13px;
    }

    .pw-side-card h3 {
        font-size: 14px;
    }

    .pw-history-item {
        align-items: flex-start;
        padding: 12px;
        border-radius: 14px;
    }

    .pw-history-item strong {
        font-size: 15px;
    }

    .pw-history-item p {
        font-size: 11px;
    }

    .pw-status {
        font-size: 9.8px;
        padding: 5px 8px;
    }
}

@media (max-width: 390px) {
    .pw-hero h1 {
        font-size: 21px;
    }

    .pw-balance-card > strong {
        font-size: 26px;
    }

    .pw-history-item {
        flex-direction: column;
        gap: 8px;
    }

    .pw-history-right {
        text-align: left;
    }
}
/* Fix popup footer + "Don't show this again" on small screens */

.premium-howto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.premium-howto-footer .howto-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #475569;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.3;
}

.premium-howto-footer .howto-check input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: #16a34a;
}

.premium-howto-footer .btn {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 13px;
    border-radius: 13px;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .premium-howto-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 14px;
    }

    .premium-howto-footer .howto-check {
        width: 100%;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 13px;
        padding: 11px 12px;
        font-size: 11.5px;
    }

    .premium-howto-footer .btn {
        width: 100%;
        min-height: 40px;
        font-size: 12px;
        padding: 10px 12px;
    }
}
/* FINAL FIX: How-to popup footer on small screens */

#howtoModal .premium-howto-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

#howtoModal .premium-howto-footer .howto-check {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

#howtoModal .premium-howto-footer .howto-check input {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    flex: 0 0 15px !important;
    margin: 0 !important;
    accent-color: #16a34a !important;
}

#howtoModal .premium-howto-footer .howto-check span {
    display: block !important;
    min-width: 0 !important;
}

#howtoModal .premium-howto-footer .btn {
    min-height: 40px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

@media (max-width: 520px) {
    #howtoModal .premium-howto-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 9px !important;
    }

    #howtoModal .premium-howto-footer .howto-check {
        width: 100% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 10px 11px !important;
        font-size: 11px !important;
    }

    #howtoModal .premium-howto-footer .btn {
        width: 100% !important;
        min-height: 38px !important;
        font-size: 11.5px !important;
        padding: 9px 11px !important;
    }
}

@media (max-width: 360px) {
    #howtoModal .premium-howto-footer .howto-check {
        font-size: 10.5px !important;
        padding: 9px 10px !important;
    }

    #howtoModal .premium-howto-footer .btn {
        font-size: 11px !important;
        min-height: 36px !important;
    }
}