:root {
  --primary-color: #2563eb; /* Royal Blue */
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --bg-color: #f1f5f9;
  --surface-color: #ffffff;
  --text-main: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --error-color: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
}

/* Header */
.main-header {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.secure-badge-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  background: #f8fafc;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

h2 i {
  color: var(--primary-color);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin: 1.5rem 0 1rem;
}

/* Selection Grid */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.selection-card {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.selection-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.selection-card.active {
  border-color: var(--primary-color);
  background-color: #eff6ff;
}

.selection-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}


.selection-card.active i {
  color: var(--primary-color);
}

.selection-card .title {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.selection-card .subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
  background: rgba(78, 84, 200, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
}

.package-connection {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #f9fafb;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.package-connection > i {
  font-size: 1rem;
  margin-bottom: 0;
}

.selection-card.active .package-connection {
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary-color);
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background-color: #f8fafc;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Toggle */
.toggle-container {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.toggle-option.active {
  background: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Payment Methods */
/* Tab container */
.payment-tabs {
  border-bottom: none;
  gap: 0.5rem;
}

/* Normal tab */
.payment-tabs .nav-link {
  color: var(--text-light);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

/* Hover */
.payment-tabs .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.08);
}

/* Active tab */
.payment-tabs .nav-link.active {
  color: #fff;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* Active + hover */
.payment-tabs .nav-link.active:hover {
  background-color: var(--primary-dark);
}

/* Bootstrap focus border temizliği */
.payment-tabs .nav-link:focus {
  box-shadow: none;
}

#paymentTabs {
	padding-bottom: 10px;
	border-bottom: 2px solid var(--border-color);
}


.credit-card-form,
#transfer-info,
#crypto-info {
  display: none;
  animation: slideDown 0.3s ease-out;
}

.credit-card-form.active,
#transfer-info.active,
#crypto-info.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Transfer Box */
.transfer-details-container {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.bank-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.bank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-gradient);
}

.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-color);
}

.bank-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.bank-logo i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.order-badge {
  background: rgba(78, 84, 200, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.copy-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.copy-input input {
  background: white;
  border: 1px solid var(--border-color);
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  width: auto;
}

.copy-input button {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.copy-input button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(78, 84, 200, 0.05);
}

.transfer-steps {
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.step-icon {
  background: var(--success-color);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.btn-confirm-transfer {
  width: 100%;
  padding: 1rem;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-confirm-transfer:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
  height: fit-content;
}

.summary-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.summary-row span:last-child {
  color: var(--text-main);
  font-weight: 500;
}

.total-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--border-color);
  text-align: center;
}

.total-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.btn-pay-main {
  width: 100%;
  padding: 1.25rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-pay-main:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.support-btn {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.support-btn:hover {
  border-color: var(--success);
  color: var(--success);
  transform: translateY(-2px);
}

.support-btn i {
  color: var(--success-color);
  font-size: 1.5rem;
}

.order-status-btn {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.order-status-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.order-status-btn i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.info-note {
  background-color: #eff6ff;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }
  .container {
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 1rem;
  }
  .card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: hidden;
  }
  .main-content {
    overflow-x: hidden;
  }
  .payment-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .payment-tabs::-webkit-scrollbar {
    display: none;
  }
  .payment-method {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .summary-card {
    position: static;
  }
}

.discount-input-group {
  display: flex;
  align-items: stretch;
}

.discount-input-group input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.discount-input-group input:focus {
  border-right: 1px solid var(--primary-color);
}

.btn-apply-discount {
  padding: 0 1rem;
  background: var(--primary-gradient);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.btn-apply-discount:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  color: #fff;
}

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


.btn-create-order {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(78, 84, 200, 0.3);
}

.btn-create-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(78, 84, 200, 0.4);
}

.btn-payment-notification {
  width: 100%;
  padding: 1rem;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-payment-notification:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Upload alanı */
.file-upload-area {
  border: 2px dashed var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: var(--bs-body-bg);
}

/* Hover efekti */
.file-upload-area:hover {
  border-color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.03);
}

/* Icon */
.file-upload-icon i {
  font-size: 2.2rem;
  color: var(--bs-primary);
  margin-bottom: 0.75rem;
}

/* Metin */
.file-upload-text {
  font-size: 0.95rem;
  color: var(--bs-secondary-color);
  line-height: 1.4;
}

/* Seçilen dosya adı */
.file-name {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bs-success);
}

/* Input gizle */
#receipt-file {
  display: none;
}

/* Seçildiğinde alan */
.file-upload-area.active {
  border-color: var(--bs-success);
  background-color: rgba(var(--bs-success-rgb), 0.05);
}

/* Mobil uyum */
@media (max-width: 576px) {
  .file-upload-area {
    padding: 1.5rem 1rem;
  }
}
.iti {
	width: 100%;
}

.order-status-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
}

.status-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
}