/* ===================================================================
   POFUDUK OMS — SINEMATIK & ULTRA-LÜKS TASARIM SISTEMI (CSS)
   Awwwards / Stripe / Apple Standartlarında Arayüz Mimarisi
   =================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(15, 20, 32, 0.75);
    --bg-card-hover: rgba(22, 29, 46, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.5);
    --border-glow: rgba(99, 102, 241, 0.3);
    
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --primary-glow: rgba(99, 102, 241, 0.35);
    
    --emerald: #10b981;
    --emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --emerald-glow: rgba(16, 185, 129, 0.3);
    
    --amber: #f59e0b;
    --amber-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Arka Plan Işıkları (Cinematic Glows) */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    animation: floatGlow 18s ease-in-out infinite alternate;
}

.glow-indigo {
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
}

.glow-emerald {
    bottom: 5%;
    right: 10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
}

.glow-rose {
    top: 30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e11d48 0%, transparent 70%);
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* İnce Grain Dokusu */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 36px;
    align-items: start;
}

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

/* Brand Navbar */
.brand-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 36px 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 36px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 25px var(--primary-glow);
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 40px;
    backdrop-filter: blur(12px);
}

.brand-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
}

/* Hero Title */
.hero-header {
    text-align: center;
    margin-bottom: 40px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 30px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.25;
    background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Package Switcher Grid */
.package-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .package-options {
        grid-template-columns: 1fr;
    }
}

.package-card {
    position: relative;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.package-card.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25), inset 0 0 20px rgba(99, 102, 241, 0.08);
}

.package-badge-top {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.package-badge-lifetime {
    background: var(--amber-gradient);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #000;
}

.package-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.package-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.package-card.active .custom-radio {
    border-color: var(--primary);
}

.package-card.active .custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.package-price {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.package-price-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.package-features {
    list-style: none;
    font-size: 13px;
    color: var(--text-secondary);
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.package-features li svg {
    color: var(--emerald);
    flex-shrink: 0;
}

/* Year Selector Bar (Standart Lisans İndirim Alanı) */
.year-selector-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
}

.year-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 640px) {
    .year-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.year-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.year-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.year-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.year-btn .y-num {
    font-size: 15px;
    font-weight: 700;
    display: block;
}

.year-btn .y-discount {
    font-size: 11px;
    font-weight: 800;
    color: #34d399;
    margin-top: 2px;
    display: block;
}

.discount-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-top: 16px;
    animation: pulseBorder 3s infinite;
}

@keyframes pulseBorder {
    0%, 100% { border-color: rgba(16, 185, 129, 0.3); }
    50% { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
}

/* Subdomain Input */
.subdomain-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2px 14px;
    transition: border-color 0.2s;
}

.subdomain-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.subdomain-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 0;
    width: 100%;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
}

.subdomain-suffix {
    font-family: 'JetBrains Mono', monospace;
    color: #6366f1;
    font-weight: 700;
    font-size: 15px;
    padding-left: 8px;
}

/* Form Styles & Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label .req {
    color: #f43f5e;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    background: rgba(0, 0, 0, 0.5);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Tab Switcher (Bireysel / Kurumsal) */
.billing-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
}

.billing-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.billing-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Canlı İnteraktif Kredi Kartı Görseli (Live Interactive Card) */
.card-visual-wrapper {
    perspective: 1000px;
    margin-bottom: 24px;
}

.interactive-credit-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    height: 220px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.interactive-credit-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.card-chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-brand-logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-number-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.card-holder-label, .card-expiry-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.card-holder-val {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-expiry-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Sticky Sipariş Özeti Kartı */
.sticky-summary {
    position: sticky;
    top: 24px;
}

.summary-card {
    background: rgba(18, 24, 38, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.summary-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.highlight {
    color: #34d399;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 16px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0 20px 0;
}

.total-label {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.total-amount {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.btn-pay {
    width: 100%;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: all 0.25s ease;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

.security-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Loading Modal & 3D Frame */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Boxes */
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.alert-error.active {
    display: block;
}
