/* ============================================================
   DotCity Pay — Stylesheet
   Theme: Purple/Dark matching DotCity Marketplace
   ============================================================ */

:root {
    --primary:         #7c3aed;
    --primary-dark:    #6d28d9;
    --primary-darker:  #5b21b6;
    --primary-light:   #ede9fe;
    --primary-lighter: #f5f3ff;
    --secondary:       #111827;
    --accent:          #a855f7;
    --success:         #16a34a;
    --warning:         #d97706;
    --danger:          #dc2626;
    --white:           #ffffff;
    --bg-light:        #f9fafb;
    --text-dark:       #111827;
    --text-mid:        #4b5563;
    --text-light:      #9ca3af;
    --border:          #e5e7eb;
    --radius:          0.75rem;
    --radius-sm:       0.5rem;
    --shadow:          0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
    --shadow-md:       0 4px 6px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.05);
    --shadow-lg:       0 10px 15px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);
    --bottom-nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--white); padding-bottom: var(--bottom-nav-height); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Typography */
h1,h2,h3,h4,h5 { font-weight: 800; line-height: 1.25; color: var(--secondary); }
p { line-height: 1.7; }
.gradient-text { background: linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.3rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-lighter); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #15803d; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
.w-full { width: 100%; justify-content: center; }

/* Section */
.section { padding: 4rem 1.25rem; }
.section-alt { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-mid); max-width: 540px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; display: block; }

/* Top Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 1.25rem; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-mid); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; gap: 0.65rem; align-items: center; }
.hamburger { display: none; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--text-dark); }
.mobile-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; flex-direction: column; gap: 0.75rem; z-index: 99; box-shadow: var(--shadow-md); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.9rem; font-weight: 500; color: var(--text-mid); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--secondary) 0%, #1e1b4b 50%, #4c1d95 100%); color: white; padding: 5rem 1.25rem 4rem; position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; inset:0; background: 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 fill='%239c92ac' fill-opacity='0.06'%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: 1; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(124,58,237,.3); border: 1px solid rgba(167,139,250,.4); padding: 0.35rem 0.9rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700; color: #c4b5fd; margin-bottom: 1.25rem; }
.hero h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 1rem; }
.hero p { color: #d1d5db; line-height: 1.8; margin-bottom: 2rem; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Calculator Card */
.calc-card { background: var(--white); border-radius: 1rem; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--text-dark); }
.calc-card h3 { font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--secondary); }
.calc-label { font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.calc-input-row { display: flex; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 0.75rem; background: var(--white); }
.calc-input-row input { flex: 1; padding: 0.75rem 0.85rem; border: none; outline: none; font-size: 1.1rem; font-weight: 700; font-family: 'Inter',sans-serif; }
.calc-input-row select { border: none; outline: none; padding: 0.75rem 0.6rem; background: var(--bg-light); font-size: 0.875rem; font-weight: 600; cursor: pointer; font-family: 'Inter',sans-serif; border-left: 1px solid var(--border); }
.calc-result { background: var(--primary-lighter); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; }
.calc-result .amount { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.calc-result .label { font-size: 0.78rem; color: var(--text-light); }
.fee-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-mid); padding: 0.2rem 0; }
.fee-row.total { font-weight: 700; color: var(--text-dark); border-top: 1px dashed var(--border); margin-top: 0.35rem; padding-top: 0.45rem; }

/* Steps / How it works */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2rem; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; background: linear-gradient(135deg,var(--primary),var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; font-weight: 800; margin: 0 auto 1rem; }
.step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-mid); }

/* Rate Cards */
.rates-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; }
.rate-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: .2s; cursor: pointer; }
.rate-card:hover, .rate-card.selected { border-color: var(--primary); background: var(--primary-lighter); }
.rate-card .flag { font-size: 1.8rem; margin-bottom: 0.5rem; }
.rate-card .currency { font-weight: 800; font-size: 1.05rem; }
.rate-card .rate-val { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.rate-card .rate-label { font-size: 0.72rem; color: var(--text-light); }

/* Feature Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.5rem; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.feature-icon { width: 48px; height: 48px; background: var(--primary-lighter); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); margin-bottom: 1rem; }
.feature-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.83rem; color: var(--text-mid); }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-mid); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.4px; }
.form-control { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; font-family: 'Inter',sans-serif; background: var(--white); color: var(--text-dark); transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 110px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.9rem; pointer-events: none; }
.input-icon-wrap .form-control { padding-left: 2.5rem; }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-info    { background: var(--primary-lighter); border: 1px solid #c4b5fd; color: var(--primary-dark); }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: var(--warning); }

/* Auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--secondary),#1e1b4b); padding: 2rem 1.25rem; }
.auth-card { background: var(--white); border-radius: 1rem; padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: 0 25px 50px rgba(0,0,0,.4); }
.auth-card h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.auth-sub { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 64px - var(--bottom-nav-height)); }
.sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 1.5rem; position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; }
.user-info { text-align: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.avatar { width: 52px; height: 52px; background: linear-gradient(135deg,var(--primary),var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.1rem; margin: 0 auto 0.65rem; }
.user-name { font-weight: 700; font-size: 0.95rem; }
.user-email { font-size: 0.75rem; color: var(--text-light); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: var(--text-mid); transition: .15s; }
.sidebar-nav a:hover { background: var(--primary-lighter); color: var(--primary); }
.sidebar-nav a.active { background: var(--primary-lighter); color: var(--primary); font-weight: 700; }
.sidebar-nav a i { width: 16px; text-align: center; font-size: 0.85rem; }
.main-content { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; background: var(--bg-light); }

/* Content cards */
.content-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: 0.95rem; font-weight: 700; color: var(--secondary); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { text-align: left; padding: 0.6rem 0.75rem; font-size: 0.72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 0.75rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }

/* Badges */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-active   { background: #dcfce7; color: #15803d; }
.badge-pending  { background: #fef9c3; color: #854d0e; }
.badge-failed   { background: #fee2e2; color: #991b1b; }
.badge-verified { background: var(--primary-lighter); color: var(--primary); }

/* Status track */
.tx-status { display: flex; gap: 0; }
.tx-step { flex: 1; text-align: center; font-size: 0.72rem; }
.tx-step-dot { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 0.3rem; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.tx-step.done .tx-step-dot { background: var(--success); color: white; }
.tx-step.active .tx-step-dot { background: var(--primary); color: white; }
.tx-step.wait .tx-step-dot { background: var(--border); color: var(--text-light); }
.tx-step-label { color: var(--text-mid); }

/* Page Header */
.page-header { background: linear-gradient(135deg,var(--secondary),#1e1b4b); color: white; padding: 2.5rem 1.25rem; }
.page-header .inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 { font-size: 2rem; margin: 0.5rem 0; }
.page-header p { color: #9ca3af; }
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: #9ca3af; margin-bottom: 0.25rem; }
.breadcrumb a { color: #c4b5fd; }

/* Subsidiary strip */
.subs-strip { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sub-chip { display: flex; align-items: center; gap: 0.55rem; background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 0.4rem 0.9rem; font-size: 0.78rem; transition: .2s; }
.sub-chip:hover { border-color: var(--primary); color: var(--primary); }
.sub-chip.active { border-color: var(--primary); background: var(--primary-lighter); color: var(--primary); font-weight: 700; }
.sub-emoji { font-size: 1rem; }
.sub-info .name { font-weight: 600; font-size: 0.78rem; }
.sub-info .url  { font-size: 0.68rem; color: var(--text-light); }

/* Footer */
.main-footer { background: var(--secondary); color: #d1d5db; padding: 3rem 1.25rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: #9ca3af; margin-top: 0.75rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: white; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.83rem; color: #9ca3af; transition: color .2s; }
.footer-col ul li a:hover { color: #c4b5fd; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #6b7280; flex-wrap: wrap; gap: 0.5rem; }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-height); background: var(--white); border-top: 1px solid var(--border); display: flex; z-index: 200; box-shadow: 0 -4px 12px rgba(0,0,0,.08); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; font-size: 0.65rem; font-weight: 600; color: var(--text-light); text-decoration: none; transition: .15s; border-top: 2px solid transparent; }
.bottom-nav a i { font-size: 1.1rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--primary); border-top-color: var(--primary); }

/* Divider */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Trust badges */
.trust-row { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }
.trust-item i { color: var(--success); font-size: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero .inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2rem; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; border-right: none; border-bottom: 1px solid var(--border); max-height: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .main-content { padding: 1rem; }
    .rates-grid { grid-template-columns: repeat(2,1fr); }
}
