/* --- Amazon Discount Finder - Sleek Modern Styling --- */

.adf-card {
  max-width: 780px;
  margin: 24px auto;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(33, 50, 77, 0.15);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212a39;
  transition: transform 0.2s ease;
}
.adf-card:hover { transform: translateY(-2px); }

.adf-header { margin-bottom: 18px; text-align:center; }
.adf-title { font-size: 24px; margin: 0 0 8px; color: #1a273c; font-weight:700; }
.adf-desc { margin:0 auto; color:#66748a; font-size:15px; max-width: 600px; }

.adf-row { display:flex; gap:12px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.adf-input, .adf-select {
  flex:1; min-width:160px; padding:12px 14px;
  border-radius:10px; border:1px solid #d6dce7;
  background:#fff; font-size:15px;
  transition: border .2s, box-shadow .2s;
}
.adf-input:focus, .adf-select:focus {
  border-color:#1f6feb; box-shadow:0 0 0 3px rgba(31,111,235,0.18);
  outline:none;
}

.adf-price { width:180px; max-width:44%; }

.adf-discounts .adf-label {
  width:100%; font-weight:600; margin-bottom:8px; color:#334;
}
.adf-discount-buttons { display:flex; gap:10px; flex-wrap:wrap; }
.adf-discount-btn {
  background: linear-gradient(135deg,#f3f8ff,#e6efff);
  color:#1f6feb; padding:9px 16px;
  border-radius:22px; border:1px solid #d3e3ff;
  cursor:pointer; font-weight:600; font-size:14px;
  transition: all .25s ease;
}
.adf-discount-btn:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(31,111,235,0.15); }
.adf-discount-btn.active {
  background: linear-gradient(135deg,#1f6feb,#3b8aff);
  color:#fff; border-color:#1f6feb;
  box-shadow:0 6px 20px rgba(31,111,235,0.25);
}

.adf-inline { display:inline-flex; align-items:center; gap:8px; color:#334; font-size:14px; }

.adf-divider { text-align:center; margin:16px 0; position:relative; }
.adf-divider span {
  background:#fff; padding:0 14px; color:#8aa0c2;
  font-weight:600; font-size:13px; position:relative; z-index:1;
}
.adf-divider:before {
  content:""; position:absolute; left:0; right:0; top:50%;
  height:1px; background:#e5ebf4; transform:translateY(-50%);
}

.adf-advanced-toggle {
  margin-top:14px; padding:12px; border-radius:10px;
  background:#fafbff; border:1px dashed #ccd6eb;
  color:#1f6feb; text-align:center; cursor:pointer;
  font-weight:600; transition: background .25s;
}
.adf-advanced-toggle:hover { background:#f0f6ff; }
.adf-advanced {
  display:none; margin-top:12px; padding:14px;
  border-radius:10px; background:#fdfdff;
  border:1px solid #e5ebf4; animation: fadeIn .4s ease;
}
@keyframes fadeIn { from{opacity:0; transform:translateY(-6px);} to{opacity:1; transform:translateY(0);} }

.adf-actions { display:flex; gap:14px; margin-top:18px; flex-wrap:wrap; }
.adf-btn {
  padding:12px 20px; border-radius:10px; border:0; cursor:pointer;
  font-weight:600; font-size:15px; transition: all .25s ease;
}
.adf-primary { background:#7b3f00; color:#fff; }
.adf-primary:hover { background:#5d2f00; box-shadow:0 4px 16px rgba(123,63,0,0.3); }
.adf-ghost { background:#f4f6f9; color:#333; }
.adf-ghost:hover { background:#e8ecf2; }

.adf-note { margin-top:12px; color:#6c7b8f; font-size:13px; text-align:center; }

/* Responsive */
@media (max-width:640px) {
  .adf-card { padding:18px; }
  .adf-price { width:48%; }
  .adf-actions { flex-direction:column; }
}

/* --- Modal --- */
.adf-modal-backdrop {
  position:fixed; inset:0; background:rgba(18,22,30,0.55);
  display:flex; align-items:center; justify-content:center;
  z-index:99999; animation: fadeIn .3s ease;
}
.adf-modal {
  background:#fff; border-radius:14px; padding:28px;
  width:380px; max-width:94%; text-align:center;
  box-shadow:0 14px 40px rgba(18,30,60,0.25);
  animation: popIn .35s ease;
}
@keyframes popIn { from{opacity:0; transform:scale(0.92);} to{opacity:1; transform:scale(1);} }

.adf-loader {
  width:88px; height:88px; border-radius:50%;
  border:6px solid #f4f4f4; border-top-color:#ff7a00;
  animation: spin 1s linear infinite; margin:0 auto 12px;
}
@keyframes spin { to{ transform:rotate(360deg);} }

.adf-modal h3 { margin:6px 0 8px; font-size:20px; color:#222; }
.adf-modal p { margin:0; color:#555; font-size:14px; }

.adf-modal-footer { display:flex; justify-content:center; margin-top:14px; gap:12px; }
.adf-modal-btn {
  padding:9px 16px; border-radius:8px; border:0; cursor:pointer;
  font-weight:600; font-size:14px;
}
.adf-modal-ghost { background:#eef3fa; color:#222; }
.adf-modal-ghost:hover { background:#dde6f5; }


.adf-progress {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}
.adf-progress-bar {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #ff9900, #f90);
  transition: width 0.5s ease;
}
