/**
 * Market Experts Custom Checkout - Styles
 * Matches buy-page design with dark theme, effects, and glassmorphism
 */

:root {
    --me-primary: #3b82f6;
    --me-secondary: #8b5cf6;
    --me-accent: #06b6d4;
    --me-success: #22c55e;
    --me-warning: #f59e0b;
    --me-danger: #ef4444;
    --me-text-white: #ffffff;
    --me-text-gray: #94a3b8;
    --me-text-dim: #64748b;
    --me-bg-dark: #030712;
    --me-bg-card: rgba(15, 23, 42, 0.8);
    --me-border: rgba(255, 255, 255, 0.1);
    --me-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --me-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--me-bg-dark) !important;
}

body.me-checkout-page {
    font-family: var(--me-font) !important;
    background: var(--me-bg-dark) !important;
    color: var(--me-text-white) !important;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== BACKGROUND EFFECTS ==================== */

/* Grid Background */
.me-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Glow Orbs */
.me-bg-glow {
    position: fixed;
    pointer-events: none;
    filter: blur(100px);
    z-index: 0;
    border-radius: 50%;
}

.me-bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.15);
    top: -200px;
    left: -200px;
    animation: me-pulse-glow 8s ease-in-out infinite;
}

.me-bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.12);
    bottom: -150px;
    right: -150px;
    animation: me-pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes me-pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Floating Orbs */
.me-floating-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

.me-orb-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    animation: me-orb-float 20s ease-in-out infinite;
}

.me-orb-2 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    animation: me-orb-float 25s ease-in-out infinite reverse;
    animation-delay: -5s;
}

.me-orb-3 {
    width: 350px;
    height: 350px;
    bottom: 5%;
    left: 30%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation: me-orb-float 18s ease-in-out infinite;
    animation-delay: -10s;
}

.me-orb-4 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 15%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    animation: me-orb-float 22s ease-in-out infinite reverse;
    animation-delay: -8s;
}

.me-orb-5 {
    width: 500px;
    height: 300px;
    bottom: -50px;
    left: 50%;
    margin-left: -250px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
    animation: me-orb-pulse 15s ease-in-out infinite;
}

@keyframes me-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

@keyframes me-orb-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Glow Lines (Trading Red/Green) */
.me-glow-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.me-glow-line {
    position: absolute;
    width: 2px;
    height: 120px;
    opacity: 0;
}

.me-glow-line.green {
    background: linear-gradient(to top, transparent, #22c55e, transparent);
    box-shadow: 0 0 20px #22c55e;
    animation: me-line-up 8s ease-in-out infinite;
}

.me-glow-line.red {
    background: linear-gradient(to bottom, transparent, #ef4444, transparent);
    box-shadow: 0 0 20px #ef4444;
    animation: me-line-down 8s ease-in-out infinite;
}

@keyframes me-line-up {
    0% { transform: translateY(100vh); opacity: 0; }
    10%, 40% { opacity: 0.8; }
    50%, 100% { transform: translateY(-150px); opacity: 0; }
}

@keyframes me-line-down {
    0% { transform: translateY(-150px); opacity: 0; }
    10%, 40% { opacity: 0.8; }
    50%, 100% { transform: translateY(100vh); opacity: 0; }
}

/* Glitch Numbers Container */
#me-glitch-numbers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Cursor Glow */
.me-cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.me-cursor-glow.active {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .me-cursor-glow { display: none; }
}

/* ==================== HEADER ==================== */

.me-checkout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--me-border);
}

/* Brand Logo */
.me-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 5;
}

.me-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.me-brand-text .me-name {
    display: flex;
    align-items: flex-end;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.me-brand-text .me-name span {
    background: linear-gradient(90deg, #64748b, #06b6d4, #22d3ee, #67e8f9, #22d3ee, #06b6d4, #64748b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-sweep 4s linear infinite;
    line-height: 1;
}

.me-brand-text .me-name .me-icon-a {
    height: 1.15em;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(6,182,212,0.3));
    margin: 0 -1px;
    display: block;
    margin-bottom: 0.03em;
}

.me-brand-text .me-trading {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 2px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #6d28d9, #7c3aed, #8b5cf6, #a78bfa, #c4b5fd, #a78bfa, #8b5cf6, #7c3aed, #6d28d9);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-sweep 3s linear infinite;
    filter: drop-shadow(0 0 12px rgba(139,92,246,0.5)) drop-shadow(0 0 25px rgba(124,58,237,0.25));
}

.me-trading-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.me-trading-line::before,
.me-trading-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}

/* Shimmer Line */
.me-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee, #67e8f9, #22d3ee, #06b6d4);
    background-size: 200% 100%;
    animation: shimmer-sweep 3s linear infinite;
}

@keyframes shimmer-sweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.me-checkout-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--me-success);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==================== MAIN CONTENT ==================== */

.me-checkout-main {
    padding: 120px 20px 60px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.me-checkout-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Page Title */
.me-checkout-title {
    text-align: center;
    margin-bottom: 48px;
}

.me-checkout-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.me-checkout-title p {
    font-size: 1.1rem;
    color: var(--me-text-gray);
}

/* Grid Layout - Two column with sticky order summary */
.me-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 32px;
    align-items: start;
}

/* Order summary sticky on right */
.me-checkout-grid .me-order-card {
    position: sticky;
    top: 100px;
    order: 2;
}

/* Payment form on left */
.me-checkout-grid .me-payment-card {
    order: 1;
}

/* ==================== CARDS ==================== */

.me-checkout-card {
    background: var(--me-bg-card);
    border: 1px solid var(--me-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.me-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--me-border);
}

.me-card-header svg {
    color: var(--me-primary);
}

.me-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--me-text-white);
    margin: 0;
}

/* ==================== CART ITEMS ==================== */

.me-cart-items {
    margin-bottom: 24px;
}

.me-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--me-border);
    border-radius: 14px;
    margin-bottom: 12px;
}

.me-cart-item:last-child {
    margin-bottom: 0;
}

.me-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 12px;
    flex-shrink: 0;
}

.me-item-icon svg {
    color: var(--me-primary);
}

.me-item-details {
    flex: 1;
    min-width: 0;
}

.me-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--me-text-white);
    line-height: 1.3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.me-item-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--me-primary);
}

.me-item-badge.sixmonth {
    background: rgba(139, 92, 246, 0.15);
    color: var(--me-secondary);
}

.me-item-badge.annual {
    background: rgba(34, 197, 94, 0.15);
    color: var(--me-success);
}

.me-item-badge.monthly {
    background: rgba(59, 130, 246, 0.15);
    color: var(--me-primary);
}

.me-item-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--me-text-white);
    white-space: nowrap;
}

.me-item-variant {
    display: block;
    font-size: 0.75rem;
    color: var(--me-text-dim);
    margin-bottom: 4px;
}

.me-item-badge.merch {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==================== UPSELLS ==================== */

.me-upsells {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
}

.me-upsells-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--me-success);
    margin-bottom: 16px;
}

.me-checkout-upsell-btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--me-border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: inherit;
    text-align: left;
}

.me-checkout-upsell-btn:last-of-type {
    margin-bottom: 0;
}

.me-checkout-upsell-btn:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateX(4px);
}

.me-checkout-upsell-btn.best-value {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.me-checkout-upsell-btn.best-value:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.6);
}

.me-upsell-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.me-upsell-left strong {
    font-size: 0.95rem;
    color: var(--me-text-white);
    line-height: 1.3;
}

.me-best-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #fff;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

.me-upsell-detail {
    font-size: 0.8rem;
    color: var(--me-text-gray);
}

.me-upsell-total {
    opacity: 0.7;
}

.me-upsell-savings {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(34, 197, 94, 0.2);
    color: var(--me-success);
    white-space: nowrap;
    flex-shrink: 0;
}

.me-crypto-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--me-text-dim);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== ORDER TOTALS ==================== */

.me-order-totals {
    border-top: 1px solid var(--me-border);
    padding-top: 20px;
}

.me-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--me-text-gray);
}

.me-total-row.me-total-final {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--me-text-white);
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--me-border);
}

/* Shipping row */
.me-shipping-row {
    color: var(--me-text-gray);
}

.me-shipping-pending {
    font-size: 0.85rem;
    color: var(--me-text-dim);
    font-style: italic;
}

.me-shipping-loading {
    color: var(--me-primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== SHIPPING ADDRESS SECTION ==================== */

.me-shipping-section {
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
}

.me-shipping-section .me-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--me-primary);
}

.me-shipping-section .me-section-label svg {
    stroke: var(--me-primary);
}

/* Shipping Options */
.me-shipping-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.me-shipping-options-label {
    margin-bottom: 12px !important;
}

.me-shipping-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--me-border);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.me-shipping-option:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.me-shipping-option.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--me-primary);
}

.me-shipping-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    accent-color: var(--me-primary);
}

.me-ship-opt-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.me-ship-opt-name {
    font-size: 0.95rem;
    color: var(--me-text-white);
}

.me-ship-opt-price {
    font-weight: 600;
    color: var(--me-primary);
}

/* ==================== PAYMENT FORM ==================== */

.me-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.me-form-section {
    margin-bottom: 28px;
}

.me-section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--me-text-gray);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Login Box */
.me-login-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--me-border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.me-login-box span {
    font-size: 0.9rem;
    color: var(--me-text-gray);
}

.me-login-box a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--me-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.me-login-box a:hover {
    color: var(--me-accent);
}

/* Divider */
.me-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.me-divider::before,
.me-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--me-border);
}

.me-divider span {
    padding: 0 16px;
    font-size: 0.8rem;
    color: var(--me-text-dim);
}

/* Form Grid */
.me-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.me-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.me-form-field.full {
    grid-column: span 2;
}

.me-form-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--me-text-gray);
}

.me-form-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--me-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--me-text-white);
    transition: all 0.3s;
}

.me-form-field input::placeholder {
    color: var(--me-text-dim);
}

.me-form-field input:focus {
    outline: none;
    border-color: var(--me-primary);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* User Box (Logged In) */
.me-user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    margin-bottom: 24px;
}

.me-user-box svg {
    color: var(--me-success);
    flex-shrink: 0;
}

.me-user-box span {
    font-size: 0.9rem;
    color: var(--me-text-gray);
}

.me-user-box strong {
    color: var(--me-text-white);
}

/* ==================== PAYMENT METHODS ==================== */

.me-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.me-payment-option {
    display: block;
    cursor: pointer;
}

.me-payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.me-option-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--me-border);
    border-radius: 14px;
    transition: all 0.3s;
}

.me-payment-option:hover .me-option-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.me-payment-option.selected .me-option-content,
.me-payment-option input:checked + .me-option-content {
    border-color: var(--me-primary);
    background: rgba(59, 130, 246, 0.1);
}

.me-option-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.me-option-icon svg {
    color: var(--me-text-gray);
}

.me-option-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.me-option-info {
    flex: 1;
    min-width: 0;
}

.me-option-info strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--me-text-white);
    margin-bottom: 3px;
}

.me-option-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--me-text-dim);
}

.me-option-check {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--me-border);
    transition: all 0.3s;
    flex-shrink: 0;
}

.me-option-check svg {
    display: none;
    color: #fff;
}

.me-payment-option.selected .me-option-check,
.me-payment-option input:checked + .me-option-content .me-option-check {
    background: var(--me-success);
    border-color: var(--me-success);
}

.me-payment-option.selected .me-option-check svg,
.me-payment-option input:checked + .me-option-content .me-option-check svg {
    display: block;
}

/* Stripe Notice */
.me-stripe-notice {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    margin-bottom: 24px;
}

.me-stripe-notice svg {
    flex-shrink: 0;
    color: var(--me-primary);
    margin-top: 2px;
}

.me-stripe-notice p {
    font-size: 0.85rem;
    color: var(--me-text-gray);
    margin: 0;
    line-height: 1.5;
}

/* ==================== SUBMIT BUTTON ==================== */

.me-submit-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.me-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 18px 32px;
    background: var(--me-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 25px -4px rgba(59, 130, 246, 0.5);
}

.me-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px -4px rgba(59, 130, 246, 0.6);
}

.me-submit-btn:active {
    transform: translateY(0);
}

.me-submit-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.me-submit-btn .me-btn-loading {
    display: none;
}

.me-submit-btn.loading .me-btn-text {
    display: none;
}

.me-submit-btn.loading .me-btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.me-spinner {
    animation: me-spin 1s linear infinite;
}

@keyframes me-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Terms */
.me-terms {
    font-size: 0.75rem;
    color: var(--me-text-dim);
    text-align: center;
    margin-top: 18px;
    line-height: 1.6;
}

.me-terms a {
    color: var(--me-text-gray);
    text-decoration: underline;
    transition: color 0.2s;
}

.me-terms a:hover {
    color: var(--me-text-white);
}

/* ==================== TRUST ROW ==================== */

.me-trust-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--me-border);
    border-radius: 16px;
}

.me-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--me-text-gray);
}

.me-trust-item svg {
    color: var(--me-success);
    flex-shrink: 0;
}

/* Back Link */
.me-back-link {
    text-align: center;
    margin-top: 28px;
}

.me-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--me-text-gray);
    text-decoration: none;
    transition: all 0.2s;
}

.me-back-link a:hover {
    color: var(--me-text-white);
    transform: translateX(-4px);
}

/* ==================== ACCEPTED PAYMENTS ==================== */

.me-accepted-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-top: 8px;
}

.me-accepted-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--me-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.me-payment-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.me-logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.me-logo-divider {
    width: 1px;
    height: 28px;
    background: var(--me-border);
}

.me-card-logo,
.me-crypto-logo {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.me-card-logo:hover,
.me-crypto-logo:hover {
    opacity: 1;
}

/* ==================== FOOTER ==================== */

.me-checkout-footer {
    padding: 28px 40px;
    border-top: 1px solid var(--me-border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.me-checkout-footer p {
    font-size: 0.8rem;
    color: var(--me-text-dim);
    margin: 0;
}

/* ==================== NO PAYMENT METHODS ==================== */

.me-no-methods {
    padding: 24px;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
}

.me-no-methods p {
    color: var(--me-danger);
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet - stack to single column */
/* Tablet - stack to single column */
@media (max-width: 1200px) {
    .me-checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 580px;
        margin: 0 auto;
    }

    .me-checkout-grid .me-order-card {
        position: relative;
        top: 0;
        order: 1;  /* Order summary first on mobile */
    }

    .me-checkout-grid .me-payment-card {
        order: 2;  /* Payment second on mobile */
    }

    .me-checkout-title h1 {
        font-size: 2rem;
    }

    .me-trust-row {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .me-checkout-header {
        padding: 12px 16px;
    }

    .me-checkout-header .me-brand-text .me-name {
        font-size: 1.1rem;
    }

    .me-checkout-header .me-brand-text .me-trading {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .me-checkout-secure span {
        display: none;
    }

    .me-checkout-main {
        padding: 90px 14px 40px;
    }

    .me-checkout-title {
        margin-bottom: 32px;
    }

    .me-checkout-title h1 {
        font-size: 1.6rem;
    }

    .me-checkout-title p {
        font-size: 0.95rem;
    }

    .me-checkout-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .me-card-header {
        margin-bottom: 22px;
        padding-bottom: 16px;
    }

    .me-card-header h2 {
        font-size: 1.1rem;
    }

    .me-form-grid {
        grid-template-columns: 1fr;
    }

    .me-form-field.full {
        grid-column: span 1;
    }

    .me-login-box {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .me-trust-row {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .me-trust-item {
        font-size: 0.8rem;
    }

    .me-option-content {
        padding: 14px;
        gap: 12px;
    }

    .me-option-icon {
        width: 44px;
        height: 44px;
    }

    .me-submit-btn {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .me-cart-item {
        padding: 14px;
    }

    .me-item-icon {
        width: 42px;
        height: 42px;
    }

    .me-checkout-upsell-btn {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .me-upsell-savings {
        align-self: flex-start;
    }
}
