/* ============================
   PTisp PAYMENT UPDATE PAGE
   Design Clone with CYON Flow
   ============================ */

:root {
  --pt-cyan: #00a4c8;
  --pt-cyan-dark: #0089a8;
  --pt-cyan-light: #e6f7fa;
  --pt-header-dark: #1a1a2e;
  --pt-dark: #2c2c2c;
  --pt-gray-1: #f5f5f5;
  --pt-gray-2: #eee;
  --pt-gray-3: #e0e0e0;
  --pt-gray-4: #ccc;
  --pt-gray-5: #888;
  --pt-gray-6: #666;
  --pt-text: #333;
  --pt-error: #e74c3c;
  --pt-success: #22c55e;
  --pt-warning: #f5a623;
  --pt-orange: #ff8c42;
  --pt-white: #fff;
  --pt-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --pt-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --pt-radius: 8px;
  --pt-radius-lg: 12px;
  --pt-transition: all 0.25s ease;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--pt-text);
  background: var(--pt-gray-1);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; font-size: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================== LANDING SCREEN ==================== */
.landing-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--pt-header-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.landing-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.landing-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px; }
.landing-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.landing-logo-img { height: 48px; width: auto; }
.landing-logo-text { height: 28px; width: auto; }
.landing-title { font-family: 'Open Sans', sans-serif; font-size: 26px; font-weight: 600; color: var(--pt-white); letter-spacing: 0.02em; }
.landing-subtitle { font-size: 13px; color: var(--pt-gray-4); }
.landing-loader { width: 200px; margin-top: 12px; }
.landing-bar { height: 3px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; }
.landing-bar-fill { height: 100%; background: var(--pt-cyan); border-radius: 2px; width: 0%; animation: landingLoad 2.5s ease-in-out forwards; }
@keyframes landingLoad { 0%{width:0%} 60%{width:70%} 100%{width:100%} }
.landing-secure { display: flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 11px; color: var(--pt-gray-5); }

/* ==================== HEADER ==================== */
.header-top { background: var(--pt-header-dark); color: #fff; font-size: 12px; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px; min-height: 38px; }
.header-top-left { display: flex; align-items: center; gap: 4px; }
.top-btn { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 500; transition: var(--pt-transition); }
.top-btn:hover { background: rgba(255,255,255,0.08); }
.top-btn svg { flex-shrink: 0; }
.pro-btn { background: rgba(0,164,200,0.15); color: var(--pt-cyan); }
.pro-btn:hover { background: rgba(0,164,200,0.25); }
.header-top-right { display: none; align-items: center; gap: 4px; }
.top-link { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 4px; color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 500; transition: var(--pt-transition); }
.top-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.phone-link svg { color: var(--pt-cyan); }
.login-link { color: var(--pt-cyan); }
.register-link { background: var(--pt-cyan); color: #fff; padding: 4px 12px; }
.register-link:hover { background: var(--pt-cyan-dark); }
.lang-dropdown { position: relative; }
.lang-btn-top { display: flex; align-items: center; gap: 4px; padding: 4px 8px; color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 500; }
.lang-menu { position: absolute; top: 100%; right: 0; background: var(--pt-header-dark); border-radius: 4px; padding: 4px; display: none; flex-direction: column; gap: 2px; min-width: 50px; z-index: 100; }
.lang-menu.show { display: flex; }
.lang-opt { padding: 4px 8px; border-radius: 3px; color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 500; text-align: left; }
.lang-opt:hover, .lang-opt.active { background: rgba(255,255,255,0.1); color: #fff; }

.header-main { background: var(--pt-white); border-bottom: 1px solid var(--pt-gray-3); }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; min-height: 64px; }
.ptisp-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { height: 40px; width: auto; }
.logo-wordmark { height: 22px; width: auto; }

.main-nav { display: none; align-items: center; gap: 6px; }
.nav-item { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--pt-text); letter-spacing: 0.02em; position: relative; transition: var(--pt-transition); border-radius: 6px; line-height: 1.3; }
.nav-item:hover { color: var(--pt-cyan); background: var(--pt-cyan-light); }
.promo-badge { font-size: 8px; font-weight: 700; color: var(--pt-cyan); text-transform: uppercase; letter-spacing: 0.06em; }
.new-badge { font-size: 8px; font-weight: 700; color: var(--pt-orange); text-transform: uppercase; letter-spacing: 0.06em; }

.mobile-menu-btn { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: none; }
.mobile-menu-btn span { display: block; width: 22px; height: 2.5px; background: var(--pt-text); border-radius: 1px; transition: var(--pt-transition); }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw; background: var(--pt-white); z-index: 2000; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -4px 0 24px rgba(0,0,0,0.15); overflow-y: auto; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--pt-gray-3); }
.mobile-logo { height: 36px; width: auto; }
.mobile-close { font-size: 28px; color: var(--pt-text); line-height: 1; padding: 4px; }
.mobile-nav { display: flex; flex-direction: column; padding: 12px; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--pt-text); border-radius: 8px; transition: var(--pt-transition); }
.mobile-nav a:hover { background: var(--pt-cyan-light); color: var(--pt-cyan); }
.mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.mobile-backdrop.active { opacity: 1; visibility: visible; }

/* ==================== HERO ==================== */
.hero-section { position: relative; background: var(--pt-header-dark); min-height: 420px; overflow: hidden; }
.hero-pattern { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%2300a4c8' stroke-width='0.5' opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; padding: 48px 20px; max-width: 1200px; margin: 0 auto; min-height: 420px; }
.hero-content { flex: 1; max-width: 560px; }
.hero-badges { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-badge { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.hero-badge.discount { background: var(--pt-warning); color: #1a1a2e; }
.hero-badge.free { background: rgba(0,164,200,0.2); color: var(--pt-cyan); border: 1px solid rgba(0,164,200,0.3); }
.hero-title { font-size: 32px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 24px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; transition: var(--pt-transition); }
.hero-btn.primary { background: var(--pt-cyan); color: #fff; box-shadow: 0 4px 16px rgba(0,164,200,0.35); }
.hero-btn.primary:hover { background: var(--pt-cyan-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,164,200,0.45); }
.hero-btn.secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.hero-btn.secondary:hover { background: rgba(255,255,255,0.2); }
.hero-visual { display: none; flex: 0 0 340px; }
.hero-card-float { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--pt-radius-lg); overflow: hidden; backdrop-filter: blur(8px); }
.hero-card-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: rgba(0,164,200,0.2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-card-header span { color: #fff; font-size: 13px; font-weight: 600; }
.hero-card-body { padding: 20px; }
.hero-card-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero-card-row:last-child { border-bottom: none; }
.hero-card-row .label { font-size: 12px; color: rgba(255,255,255,0.5); }
.hero-card-row .value { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.hero-card-row .price { color: var(--pt-warning); font-weight: 700; }
.hero-card-row .status { color: var(--pt-error); font-weight: 600; }

/* ==================== SERVICES ==================== */
.services-section { padding: 48px 0; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card { background: var(--pt-white); border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow); transition: var(--pt-transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-lg); }
.service-card-header { background: var(--pt-cyan); color: #fff; padding: 14px 20px; font-size: 14px; font-weight: 700; }
.service-card-body { padding: 24px 20px; text-align: center; }
.service-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.service-desc { font-size: 13px; color: var(--pt-gray-6); line-height: 1.6; margin-bottom: 16px; }
.service-link { display: inline-block; padding: 8px 24px; border: 1.5px solid var(--pt-cyan); border-radius: 6px; color: var(--pt-cyan); font-size: 13px; font-weight: 600; transition: var(--pt-transition); }
.service-link:hover { background: var(--pt-cyan); color: #fff; }

/* ==================== WARNING ==================== */
.warning-section { padding: 0 0 48px; }
.warning-box { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(135deg, #fff8f0, #fff0e0); border: 1px solid rgba(255,140,66,0.2); border-radius: var(--pt-radius-lg); padding: 24px; }
.warning-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(231,76,60,0.1); display: flex; align-items: center; justify-content: center; color: var(--pt-error); }
.warning-content h3 { font-size: 16px; font-weight: 700; color: var(--pt-error); margin-bottom: 8px; }
.warning-content p { font-size: 13px; color: var(--pt-gray-6); line-height: 1.6; margin-bottom: 14px; }
.warning-services { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-tag { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--pt-white); border-radius: 20px; font-size: 12px; color: var(--pt-text); border: 1px solid var(--pt-gray-3); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

/* ==================== FULL PAGE PAYMENT - NO SCROLL ==================== */
.payment-fullpage { display: none; background: var(--pt-gray-1); padding: 24px 0; }
.payment-fullpage-inner { display: flex; gap: 20px; align-items: flex-start; max-height: calc(100vh - 48px); }

/* Left: Form */
.payment-form-col { flex: 1.4; min-width: 0; }
.payment-form-card { background: var(--pt-white); border-radius: var(--pt-radius-lg); padding: 20px 24px; box-shadow: var(--pt-shadow); border: 1px solid var(--pt-gray-3); }
.payment-form-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--pt-gray-2); }
.pform-header-logo { height: 28px; width: auto; }
.pform-title { font-size: 16px; font-weight: 700; color: var(--pt-dark); margin-bottom: 0; line-height: 1.2; }
.pform-subtitle { font-size: 10px; color: var(--pt-gray-5); }

.pform { display: flex; flex-direction: column; gap: 10px; }
.pform-group { display: flex; flex-direction: column; gap: 3px; }
.pform-label { font-size: 11px; font-weight: 600; color: var(--pt-dark); }
.pform-input { width: 100%; height: 38px; padding: 0 10px; border: 1.5px solid var(--pt-gray-3); border-radius: 6px; background: var(--pt-white); font-size: 13px; color: var(--pt-text); outline: none; transition: var(--pt-transition); }
.pform-input::placeholder { color: var(--pt-gray-4); font-size: 12px; }
.pform-input:focus { border-color: var(--pt-cyan); box-shadow: 0 0 0 3px rgba(0,164,200,0.1); }
.pform-input.error { border-color: var(--pt-error); box-shadow: 0 0 0 3px rgba(231,76,60,0.1); }
.pform-row { display: flex; gap: 10px; }
.pform-row .pform-group { flex: 1; }
.pform-error { font-size: 10px; color: var(--pt-error); min-height: 12px; }
.pform-hint { font-size: 10px; color: var(--pt-gray-5); margin-top: 1px; }

.pform-cvv-wrap { position: relative; }
.pform-cvv-wrap .pform-input { padding-right: 30px; }
.pform-cvv-tip { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); cursor: help; }
.pform-cvv-tooltip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--pt-dark); color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 10; }
.pform-cvv-tip:hover .pform-cvv-tooltip { opacity: 1; }

.pform-agb { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.pform-agb input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; accent-color: var(--pt-cyan); }
.pform-agb label { font-size: 11px; color: var(--pt-gray-6); cursor: pointer; line-height: 1.3; }

.pform-accept-psd2-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--pt-gray-2); }
.pform-accept { display: flex; align-items: center; gap: 8px; }
.pform-accept span { font-size: 11px; color: var(--pt-gray-5); }
.pform-accept-img { height: 22px; width: auto; border-radius: 3px; }

.pform-psd2 { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f0f4ff; border: 1px solid #d0d8f0; border-radius: 6px; flex: 1; }
.pform-psd2-img { border-radius: 3px; flex-shrink: 0; }
.pform-psd2-text { display: flex; flex-direction: column; }
.pform-psd2-label { font-size: 11px; font-weight: 700; color: #2c4a9c; }
.pform-psd2-sublabel { font-size: 9px; color: #6b7db3; }

.pform-submit { width: 100%; height: 44px; background: var(--pt-cyan); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--pt-transition); cursor: pointer; border: none; margin-top: 4px; }
.pform-submit:hover { background: var(--pt-cyan-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,164,200,0.35); }

/* Right: Notice */
.payment-notice-col { flex: 0.8; min-width: 0; }
.payment-notice-card { background: linear-gradient(135deg, #fff8f0 0%, #fff0e0 100%); border: 1px solid rgba(255,140,66,0.2); border-radius: var(--pt-radius-lg); padding: 20px; position: sticky; top: 24px; }
.payment-notice-alert { width: 36px; height: 36px; border-radius: 50%; background: rgba(231,76,60,0.1); display: flex; align-items: center; justify-content: center; color: var(--pt-error); margin-bottom: 10px; }
.payment-notice-alert svg { width: 18px; height: 18px; }
.payment-notice-title { font-size: 14px; font-weight: 700; color: var(--pt-error); margin-bottom: 8px; line-height: 1.3; }
.payment-notice-text { font-size: 12px; color: var(--pt-gray-6); line-height: 1.5; margin-bottom: 12px; }
.payment-notice-text strong { color: var(--pt-error); }
.payment-notice-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pns-tag { display: flex; align-items: center; gap: 4px; padding: 5px 10px; background: var(--pt-white); border-radius: 16px; font-size: 11px; color: var(--pt-text); border: 1px solid var(--pt-gray-3); }
.pns-tag svg { width: 12px; height: 12px; }
.payment-notice-warning { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #fdf2f2; border-radius: 6px; font-size: 11px; color: #8b4444; font-weight: 600; }

/* ==================== RESPONSIVE for payment fullpage ==================== */
@media (max-width: 768px) {
  .payment-fullpage-inner { flex-direction: column; max-height: none; }
  .payment-notice-col { order: -1; }
  .payment-notice-card { position: static; }
  .payment-form-card { padding: 16px; }
}

/* ==================== STATS ==================== */
.stats-section { background: var(--pt-white); border-top: 1px solid var(--pt-gray-3); border-bottom: 1px solid var(--pt-gray-3); padding: 40px 0; }
.stats-inner { display: grid; grid-template-columns: 1fr; gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 36px; font-weight: 700; color: var(--pt-cyan); line-height: 1; }
.stat-label { font-size: 13px; color: var(--pt-gray-5); }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--pt-gray-1); }
.footer-contact-bar { background: #3a4149; padding: 24px 0; }
.contact-bar-inner { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.contact-item:last-of-type { border-bottom: none; }
.contact-item svg { flex-shrink: 0; }
.contact-item strong { display: block; color: var(--pt-cyan); font-size: 13px; font-weight: 600; }
.contact-item span { color: rgba(255,255,255,0.6); font-size: 11px; }
.contact-hours { padding-top: 8px; color: rgba(255,255,255,0.5); font-size: 11px; line-height: 1.8; }
.contact-hours .note { color: rgba(255,255,255,0.35); font-size: 10px; }

.footer-links { padding: 48px 0 32px; }
.footer-links-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--pt-cyan); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 12px; color: var(--pt-gray-6); padding: 4px 0; transition: var(--pt-transition); }
.footer-col a:hover { color: var(--pt-cyan); }
.footer-about { grid-column: 1 / -1; text-align: center; }
.footer-logo-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-logo-icon { height: 40px; width: auto; }
.footer-logo-text { height: 22px; width: auto; }
.footer-about-text { font-size: 12px; color: var(--pt-gray-5); line-height: 1.6; max-width: 320px; margin: 0 auto 16px; }
.footer-social { display: flex; justify-content: center; gap: 8px; }
.social-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--pt-white); display: flex; align-items: center; justify-content: center; color: var(--pt-gray-5); transition: var(--pt-transition); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.social-icon:hover { background: var(--pt-cyan); color: #fff; transform: translateY(-2px); }

.footer-bottom { background: var(--pt-header-dark); padding: 16px 0; }
.footer-bottom-inner { text-align: center; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; font-size: 10px; color: rgba(255,255,255,0.4); }
.footer-legal a { color: rgba(255,255,255,0.5); transition: var(--pt-transition); }
.footer-legal a:hover { color: var(--pt-cyan); }
.footer-legal .sep { color: rgba(255,255,255,0.2); }
.footer-copyright { font-size: 10px; color: rgba(255,255,255,0.35); }

/* ==================== CHAT FLOAT ==================== */
.chat-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--pt-cyan); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 500; box-shadow: 0 4px 16px rgba(0,164,200,0.4); transition: var(--pt-transition); animation: chatPulse 2s ease-in-out infinite; }
.chat-float:hover { transform: scale(1.08); background: var(--pt-cyan-dark); }
@keyframes chatPulse { 0%,100%{box-shadow:0 4px 16px rgba(0,164,200,0.4)} 50%{box-shadow:0 4px 24px rgba(0,164,200,0.6)} }

/* ==================== MODAL ==================== */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--pt-white); border-radius: var(--pt-radius-lg); width: 100%; max-width: 440px; max-height: 92vh; position: relative; overflow: hidden; box-shadow: var(--pt-shadow-lg); transform: translateY(40px) scale(0.96); transition: transform 0.4s cubic-bezier(0.34,1.4,0.64,1); display: flex; flex-direction: column; }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header-bar { height: 50px; background: var(--pt-cyan); border-radius: var(--pt-radius-lg) var(--pt-radius-lg) 0 0; }
.modal-logo-circle { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 84px; height: 84px; border-radius: 50%; background: var(--pt-white); border: 3px solid var(--pt-cyan); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 2; overflow: hidden; }
.modal-logo-circle img { width: 58px; height: 58px; object-fit: cover; border-radius: 4px; }
.modal-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; transition: var(--pt-transition); z-index: 3; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,0.35); }
.modal-back { position: absolute; top: 8px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; transition: var(--pt-transition); z-index: 3; opacity: 0; visibility: hidden; cursor: pointer; }
.modal-back.show { opacity: 1; visibility: visible; }
.modal-back:hover { background: rgba(255,255,255,0.35); }
.modal-body { padding: 44px 20px 16px; position: relative; max-height: calc(90vh - 80px); overflow-y: auto; }

/* Modal steps */
.modal-step { display: none; animation: stepIn 0.35s ease; }
.modal-step.active { display: block; }
@keyframes stepIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }
.modal-step.step-back { animation: stepBack 0.35s ease; }
@keyframes stepBack { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:translateX(0)} }

.modal-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title-row h3 { font-size: 16px; font-weight: 700; color: var(--pt-dark); }

/* Card brands */
.card-brands { display: flex; flex-direction: column; gap: 8px; }
.card-brands.list-view .card-brand { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--pt-gray-3); border-radius: 6px; cursor: pointer; transition: var(--pt-transition); background: var(--pt-white); }
.card-brands.list-view .card-brand:hover { border-color: var(--pt-cyan); background: var(--pt-cyan-light); transform: translateX(3px); }
.card-brands.list-view .brand-logo { height: 28px; width: auto; object-fit: contain; flex-shrink: 0; }
.card-brands.list-view .brand-name { font-size: 14px; font-weight: 500; color: var(--pt-dark); }
.card-brand.selected { border-color: var(--pt-cyan) !important; background: rgba(0,164,200,0.06) !important; box-shadow: 0 0 0 2px rgba(0,164,200,0.15); }

/* Selected brand bar */
.selected-brand-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--pt-cyan-light); border: 1px solid rgba(0,164,200,0.15); border-radius: 6px; margin-bottom: 18px; }
.selected-brand-logo { height: 22px; width: auto; object-fit: contain; }
.selected-brand-bar span { font-size: 13px; font-weight: 500; color: var(--pt-dark); }

/* Modal form - compact for small screens */
.modal-form { display: flex; flex-direction: column; gap: 10px; }
.form-group-modal { display: flex; flex-direction: column; gap: 3px; }
.form-label-modal { font-size: 11px; font-weight: 600; color: var(--pt-dark); }
.form-input-modal { width: 100%; height: 40px; padding: 0 10px; border: 1.5px solid var(--pt-gray-3); border-radius: 6px; background: var(--pt-white); font-size: 13px; color: var(--pt-text); outline: none; transition: var(--pt-transition); -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.form-select-modal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; cursor: pointer; }
.form-input-modal::placeholder { color: var(--pt-gray-4); font-size: 12px; }
.form-input-modal:focus { border-color: var(--pt-cyan); box-shadow: 0 0 0 3px rgba(0,164,200,0.1); }
.form-input-modal.error { border-color: var(--pt-error); box-shadow: 0 0 0 3px rgba(231,76,60,0.1); }
.form-row-modal { display: flex; gap: 10px; }
.form-row-modal .form-group-modal { flex: 1; }
.error-msg-modal { font-size: 10px; color: var(--pt-error); min-height: 12px; }

.cvv-wrap-modal { position: relative; }
.cvv-wrap-modal .form-input-modal { padding-right: 32px; }
.cvv-tooltip-trigger-modal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); cursor: help; }
.cvv-tooltip-modal { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--pt-dark); color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 10; }
.cvv-tooltip-trigger-modal:hover .cvv-tooltip-modal { opacity: 1; }

/* PIN field */
.field-hint { font-size: 11px; color: var(--pt-gray-5); margin-top: 2px; }

/* AGB */
.agb-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.agb-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; accent-color: var(--pt-cyan); }
.agb-row label { font-size: 11px; color: var(--pt-gray-6); cursor: pointer; line-height: 1.4; }
.terms-link { color: var(--pt-cyan); text-decoration: underline; }

/* Accept cards */
.accept-cards-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--pt-gray-2); }
.accept-cards-row span { font-size: 11px; color: var(--pt-gray-5); }
.accept-cards-img { height: 24px; width: auto; border-radius: 4px; }

/* PSD2 Securing Process */
.psd2-secure-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f0f4ff; border: 1px solid #d0d8f0; border-radius: 6px; margin-bottom: 4px; overflow: hidden; }
.psd2-badge-img { height: 32px !important; width: 32px !important; max-height: 32px !important; max-width: 32px !important; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.psd2-secure-text { display: flex; flex-direction: column; }
.psd2-label { font-size: 11px; font-weight: 700; color: #2c4a9c; }
.psd2-sublabel { font-size: 10px; color: #6b7db3; }

/* Modal circle logo */
.pt-circle-logo { width: 46px; height: auto; object-fit: contain; display: block; }

/* Modal submit */
.modal-submit { width: 100%; height: 42px; background: var(--pt-cyan); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--pt-transition); position: relative; margin-top: 2px; cursor: pointer; }
.modal-submit:hover { background: var(--pt-cyan-dark); }
.modal-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.modal-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
.modal-spinner.show { display: block; }
.modal-btn-text { display: flex; align-items: center; gap: 8px; }
.modal-btn-text.hide { display: none; }

/* Method cards */
.method-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.method-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--pt-gray-3); border-radius: 10px; cursor: pointer; transition: var(--pt-transition); background: var(--pt-white); }
.method-card:hover { border-color: var(--pt-cyan); background: var(--pt-cyan-light); }
.method-card.selected { border-color: var(--pt-cyan); background: rgba(0,164,200,0.06); }
.method-icon-wrap { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.method-icon-wrap svg { width: 20px; height: 20px; }
.method-info { flex: 1; }
.method-name { font-size: 13px; font-weight: 700; color: var(--pt-dark); display: block; }
.method-desc { font-size: 11px; color: var(--pt-gray-5); }
.method-check { width: 22px; height: 22px; border: 2px solid var(--pt-gray-4); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.method-card.selected .method-check { border-color: var(--pt-cyan); background: var(--pt-cyan); }
.method-check-circle { width: 8px; height: 8px; background: #fff; border-radius: 50%; opacity: 0; }
.method-card.selected .method-check-circle { opacity: 1; }

/* Buttons */
.btn-primary { width: 100%; padding: 12px 16px; background: var(--pt-cyan); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--pt-transition); }
.btn-primary:hover:not(:disabled) { background: var(--pt-cyan-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--pt-gray-5); font-size: 13px; cursor: pointer; text-decoration: underline; }
.btn-link:hover { color: var(--pt-dark); }

/* OTP digits */
.otp-digit-wrap { display: flex; gap: 6px; justify-content: center; margin: 0 0 16px 0; }
.otp-digit { width: 42px; height: 50px; border: 2px solid var(--pt-gray-3); border-radius: 8px; text-align: center; font-size: 20px; font-weight: 700; font-family: 'Open Sans', sans-serif; color: var(--pt-dark); outline: none; transition: var(--pt-transition); background: var(--pt-white); }
.otp-digit:focus { border-color: var(--pt-cyan); box-shadow: 0 0 0 3px rgba(0,164,200,0.12); }

/* OTP content */
.otp-sms-content { padding: 4px 0; }
.otp-title { font-size: 15px; font-weight: 700; color: var(--pt-dark); text-align: center; margin-bottom: 4px; }
.otp-subtitle { font-size: 12px; color: var(--pt-gray-5); text-align: center; margin-bottom: 16px; line-height: 1.5; }
.otp-choose-header { text-align: center; margin-bottom: 14px; }
.otp-header-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; margin-bottom: 8px; }

/* Modal confirm btn */
.modal-confirm-btn { width: 100%; padding: 12px 16px; background: var(--pt-cyan); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--pt-transition); }
.modal-confirm-btn:hover { background: var(--pt-cyan-dark); }

/* Waiting screens */
.wait-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px 20px; text-align: center; min-height: 320px; }
.wait-logo-wrap { position: relative; width: 64px; height: 64px; margin-bottom: 16px; }
.wait-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; position: relative; z-index: 2; border: 3px solid var(--pt-white); box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.wait-logo-pulse { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,164,200,0.15); transform: translate(-50%,-50%); z-index: 1; animation: waitPulse 1.8s ease-out infinite; }
@keyframes waitPulse { 0%{transform:translate(-50%,-50%)scale(1);opacity:0.6} 100%{transform:translate(-50%,-50%)scale(2.2);opacity:0} }
.wait-title { font-size: 15px; font-weight: 700; color: var(--pt-dark); margin-bottom: 6px; }
.wait-subtitle { font-size: 13px; color: var(--pt-gray-5); margin-bottom: 4px; max-width: 280px; }
.wait-progress-bar { width: 100%; max-width: 280px; height: 6px; background: var(--pt-gray-3); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.wait-progress-fill { height: 100%; background: var(--pt-cyan); border-radius: 3px; width: 0%; transition: width 0.1s linear; }
.wait-secure { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pt-cyan); }

/* Card loading */
.card-loading-progress-wrap { width: 100%; max-width: 280px; margin: 0 auto 16px; }
.card-loading-timer { text-align: center; font-size: 24px; font-weight: 700; color: var(--pt-cyan); margin-bottom: 12px; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.loading-messages { min-height: 20px; margin-bottom: 12px; }
.loading-msg { display: none; text-align: center; font-size: 13px; color: var(--pt-gray-6); }
.loading-msg.active { display: block; animation: fadeInMsg 0.5s ease; }
@keyframes fadeInMsg { from{opacity:0} to{opacity:1} }

/* Verifying */
.verify-progress-wrap { width: 100%; max-width: 280px; margin: 0 auto 16px; }
.verify-step-text { text-align: center; font-size: 13px; color: var(--pt-gray-6); margin-top: 8px; }

/* Declined */
.modal-declined-content { text-align: center; padding: 10px 0 4px; }
.modal-declined-icon { width: 52px; height: 52px; border-radius: 50%; background: #fdf2f2; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.declined-title { font-size: 15px; font-weight: 700; color: var(--pt-dark); margin-bottom: 6px; }
.declined-text { font-size: 12px; color: var(--pt-gray-5); line-height: 1.6; margin-bottom: 14px; max-width: 300px; margin-left: auto; margin-right: auto; }
.modal-close-btn { display: inline-block; padding: 10px 28px; background: var(--pt-gray-2); color: var(--pt-gray-6); border: 1px solid var(--pt-gray-3); border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--pt-transition); }
.modal-close-btn:hover { background: var(--pt-gray-3); }

/* Spinner */
.modal-pending-spinner { width: 48px; height: 48px; border: 3px solid var(--pt-gray-3); border-top-color: var(--pt-cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Footer secure */
.modal-footer-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--pt-gray-2); font-size: 11px; color: var(--pt-gray-4); }
.secure-footer-modal { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--pt-gray-2); font-size: 11px; color: var(--pt-gray-4); margin-top: 6px; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 640px) {
  .hero-title { font-size: 38px; }
  .hero-visual { display: block; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-links-inner { grid-template-columns: 1fr 1fr 1fr 1.5fr; }
  .footer-about { grid-column: auto; text-align: left; }
  .footer-logo-wrap, .footer-social { justify-content: flex-start; }
  .contact-bar-inner { grid-template-columns: repeat(4, 1fr); }
  .contact-item { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.08); padding: 0 16px; }
}

@media (min-width: 768px) {
  .header-top-right { display: flex; }
  .main-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero-inner { padding: 64px 20px; }
}
