:root {
    /* Brand Colors matching main site */
    --white: #ffffff;
    --snow: #f8fafc;
    --ice: #f1f5f9;
    --mist: #e2e8f0;
    --steel: #94a3b8;
    --slate: #64748b;
    --charcoal: #334155;
    --midnight: #0f172a;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;

    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --rose-500: #f43f5e;
    --emerald-500: #10b981;
    --gray-400: #9ca3af;

    /* Theme Mapping */
    --bg-main: var(--snow);
    --bg-card: var(--white);
    --text-main: var(--midnight);
    --text-muted: var(--slate);
    --border-color: var(--mist);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;

    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-heading);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--blue-600);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--blue-200), var(--cyan-400));
    top: -200px;
    right: -150px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--blue-300), var(--blue-100));
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(30px) scale(0.95);
    }
}

/* Layout */
.app-layout {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-minimal {
    margin-bottom: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--midnight);
    line-height: 1;
}

.brand-dot {
    color: var(--blue-600);
}

.brand-tagline {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-600);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Split Layout for Premium */
.premium-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    flex: 1;
}

.premium-info {
    flex: 1.2;
    padding-right: 20px;
}

.auth-panel-wrapper {
    flex: 1;
    max-width: 480px;
    width: 100%;
}

/* Typography Left Side */
.premium-info h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    color: var(--midnight);
}

.premium-info h1 span {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
    background: var(--white);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--midnight);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Auth Panel */
.auth-panel {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
    position: relative;
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--ice);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 2rem;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.85rem 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab.active {
    background: var(--white);
    color: var(--blue-600);
    box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) {
    color: var(--midnight);
}

/* Forms */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-form.active-form {
    display: flex;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--midnight);
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Selector */
.pricing-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.plan-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.plan-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: var(--snow);
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px var(--mist);
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.plan-name {
    font-weight: 700;
    color: var(--midnight);
    font-size: 1.05rem;
    transition: color var(--transition-fast);
}

.plan-info-left {
    display: flex;
    flex-direction: column;
}

.plan-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.plan-price {
    font-weight: 800;
    color: var(--midnight);
    font-size: 1.15rem;
}

.plan-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plan-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: #2cb2f0;
    /* specific blueish cyan from screenshot */
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(44, 178, 240, 0.3);
    z-index: 2;
    border: 2px solid var(--white);
    letter-spacing: 0.2px;
}

/* Hover and Checked States */
.plan-card:hover .plan-content {
    box-shadow: inset 0 0 0 1px var(--blue-200);
    background: var(--white);
}

.plan-card input:checked~.plan-content {
    border-color: var(--blue-600);
    box-shadow: none;
    background: var(--blue-50);
}

.plan-card input:checked~.plan-content .plan-name {
    color: var(--blue-600);
}

/* Inputs */
.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background: var(--snow);
    border: 1px solid var(--mist);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem 0.9rem 3rem;
    color: var(--midnight);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-wrapper input::placeholder {
    color: var(--steel);
}

.input-wrapper input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px var(--blue-100);
    background: var(--white);
}

.input-wrapper input:focus+i,
.input-wrapper input:focus~i {
    color: var(--blue-600);
}

.helper-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}

.checkbox-container input {
    accent-color: var(--blue-600);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-weight: 600;
    color: var(--blue-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--blue-800);
    text-decoration: underline;
}

/* Crypto Selection */
.crypto-payment-options {
    background: var(--snow);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--mist);
}

.crypto-payment-options p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.crypto-icons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.crypto-badge {
    position: relative;
    cursor: pointer;
    flex: 1;
}

.crypto-badge input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.crypto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    transition: all var(--transition-fast);
}

.crypto-img-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.crypto-color-btc {
    color: #f7931a;
}

.crypto-color-xmr {
    color: #ff6600;
}

.crypto-color-ltc {
    color: #bebebe;
}

.crypto-badge:hover .crypto-btn {
    background: var(--snow);
    border-color: var(--blue-200);
}

.crypto-badge input:checked+.crypto-btn {
    background: var(--white);
    border-color: var(--blue-600);
    color: var(--blue-600);
    box-shadow: 0 0 0 1px var(--blue-600), var(--shadow-sm);
}

/* Button */
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary i {
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.terms-text {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .premium-layout {
        flex-direction: column;
        gap: 40px;
    }

    .premium-info {
        text-align: center;
        padding-right: 0;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        text-align: left;
    }

    .auth-panel-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .app-layout {
        padding: 16px;
    }

    .navbar-minimal {
        margin-bottom: 30px;
    }

    .premium-info h1 {
        font-size: 2.2rem;
    }

    .auth-panel {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 420px;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mist);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--midnight);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--rose-500);
}

.modal-desc {
    color: var(--charcoal);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    background: var(--snow);
    border-radius: 12px;
    border: 1px solid var(--mist);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.address-box {
    margin-bottom: 1.5rem;
}

.address-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.copy-wrapper {
    display: flex;
    background: var(--snow);
    border: 1px solid var(--mist);
    border-radius: 12px;
    overflow: hidden;
}

.copy-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--midnight);
    outline: none;
}

.copy-wrapper button {
    background: var(--blue-50);
    border: none;
    border-left: 1px solid var(--mist);
    padding: 0 1.2rem;
    color: var(--blue-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-wrapper button:hover {
    background: var(--blue-600);
    color: var(--white);
}

.payment-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

.payment-status-indicator i {
    color: var(--blue-500);
}

/* Success Step */
#payment-step-success {
    text-align: center;
}

.success-icon {
    margin-bottom: 1rem;
}

#payment-step-success h3 {
    color: var(--midnight);
    margin-bottom: 0.5rem;
}

.key-box {
    text-align: left;
    margin-top: 1.5rem;
}

.key-box input {
    font-weight: 700;
    color: var(--rose-500);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ---------------------------------
   GENERIC PREMIUM DIALOG (MATCHING APP)
   --------------------------------- */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    /* Higher than other modals */
    animation: fadeIn 0.2s ease;
}

.dialog-box {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dialog-overlay.active {
    display: flex;
}

.dialog-overlay.active .dialog-box {
    transform: translateY(0);
    opacity: 1;
}

.dialog-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dialog-header i {
    font-size: 1.25rem;
}

.dialog-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.dialog-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
}

.dialog-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.dialog-btn-cancel {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.dialog-btn-cancel:hover {
    background: #f1f5f9;
}

.dialog-btn-action {
    background: var(--blue-600);
    border: none;
    color: white;
}

.dialog-btn-action:hover {
    background: var(--blue-700);
}

.dialog-btn-danger {
    background: #ef4444;
}

.dialog-btn-danger:hover {
    background: #dc2626;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}