/* Ana Stiller */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-color);
}

/* Kart Stilleri */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;
}

/* Buton Stilleri */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #169b6b;
}

/* Form Stilleri */
.form-control {
    border-radius: 0.35rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d3e2;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Tablo Stilleri */
.table {
    color: #858796;
}

.table th {
    background-color: #f8f9fc;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Sipariş Durumu Renkleri */
.status-pending {
    color: var(--warning-color);
}

.status-completed {
    color: var(--secondary-color);
}

.status-cancelled {
    color: var(--danger-color);
}

.status-expired {
    color: var(--dark-color);
}

/* Sipariş Detay Kartı */
.order-detail-card {
    border-left: 0.25rem solid var(--primary-color);
}

.order-detail-card.completed {
    border-left: 0.25rem solid var(--secondary-color);
}

.order-detail-card.cancelled {
    border-left: 0.25rem solid var(--danger-color);
}

.order-detail-card.expired {
    border-left: 0.25rem solid var(--dark-color);
}

/* SMS Kutusu */
.sms-box {
    background-color: #f8f9fc;
    border-radius: 0.35rem;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e3e6f0;
}

.sms-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    border: 1px dashed #bac8f3;
    margin: 0.5rem 0;
    text-align: center;
}

/* Destek Mesajları */
.message-container {
    margin-bottom: 1.5rem;
}

.message {
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 80%;
}

.message-user {
    background-color: #e3e6f0;
    margin-right: auto;
}

.message-admin {
    background-color: #d4edda;
    margin-left: auto;
}

.message-meta {
    font-size: 0.8rem;
    color: #858796;
    margin-top: 0.25rem;
}

/* Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Servis Kartları */
.service-card {
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Fiyat Tablosu */
.price-table th,
.price-table td {
    text-align: center;
    vertical-align: middle;
}

/* Bakiye Göstergesi */
.balance-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2e59d9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.balance-display .balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.balance-display .btn-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.balance-display .btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Adım Göstergesi */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    padding: 0 1rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6b7280;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-color);
    color: white;
}

.step.completed {
    background: var(--secondary-color);
    color: white;
}

/* Operator Table */
.operator-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
}

.operator-table th,
.operator-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.operator-table th {
    background: #f9fafb;
    font-weight: 600;
}

.operator-table tr:last-child td {
    border-bottom: none;
}

.operator-table input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Price Container */
#priceContainer .card {
    border: none;
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
}

#priceContainer h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

#priceContainer p {
    margin-bottom: 0.75rem;
}

/* Buy Button */
#buyButton {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

#buyButton:hover:not(:disabled) {
    background: #2e59d9;
    transform: translateY(-1px);
}

#buyButton:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* How it Works Card */
.how-it-works ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.how-it-works li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.how-it-works li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .balance-display {
        margin: -1rem -1rem 1.5rem -1rem;
        border-radius: 0;
    }
    
    .step {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .operator-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .operator-table th,
    .operator-table td {
        padding: 0.75rem;
        white-space: nowrap;
    }
    
    #buyButton {
        width: 100%;
        max-width: none;
    }
    
    .how-it-works li {
        padding-left: 2.5rem;
    }
    
    .how-it-works li::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.875rem;
    }
}

/* Geri Sayım Timer */
.countdown-timer {
    font-size: 1.25rem;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.countdown-timer #countdown-display {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #28a745;
    transition: color 0.3s ease;
}

@media (max-width: 576px) {
    .countdown-timer {
        margin-top: 10px;
    }
}

/* Hero Section - Fixed Height to Prevent CLS */
.hero-content-section {
    padding: 60px 0;
    min-height: 400px;
}

.hero-title-section {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}

.hero-subtitle-section {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Auth Buttons - Premium Design */
.hero-auth-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
    min-height: 80px;
}

.btn-hero-primary,
.btn-hero-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 60px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 260px;
    text-transform: uppercase;
    font-family: 'Inter', 'Nunito', sans-serif;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6),
                0 0 50px rgba(118, 75, 162, 0.3);
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 60px rgba(102, 126, 234, 0.8),
                0 0 80px rgba(118, 75, 162, 0.5);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-hero-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-hero-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    color: #667eea !important;
    border: 3px solid #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 60px;
    z-index: -1;
}

.btn-hero-secondary:hover {
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 60px rgba(102, 126, 234, 0.7),
                0 0 80px rgba(118, 75, 162, 0.4);
    text-decoration: none;
}

.btn-hero-secondary:hover::after {
    opacity: 1;
}

.btn-hero-secondary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-hero-primary i,
.btn-hero-secondary i {
    font-size: 20px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i,
.btn-hero-secondary:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-auth-buttons {
        gap: 20px;
        margin-top: 40px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 18px 50px;
        font-size: 18px;
        min-width: 240px;
    }
    
    .btn-hero-primary i,
    .btn-hero-secondary i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-auth-buttons {
        flex-direction: column;
        gap: 18px;
        margin-top: 35px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        padding: 18px 45px;
        font-size: 17px;
    }
}