/* 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;
    }
}
