:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-muted: #f1f5f9;
    --primary: #0a192f;
    --primary-2: #0f2b48;
    --primary-3: #164e63;
    --teal: #0d9488;
    --teal-soft: rgba(13, 148, 136, 0.12);
    --accent: #0284c7;
    --text: #0f172a;
    --muted: #475569;
    --line: rgba(15, 23, 42, 0.08);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 20px 45px rgba(10, 25, 47, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(10, 25, 47, 0.18);
    --radius: 24px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
    color: var(--text);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.public-body,
.app-body,
.site-shell,
.app-shell {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 2. Public Navigation Bar (Sticky with Backdrop Blur) */
.public-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.public-header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px clamp(16px, 4vw, 48px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand-inline,
.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-decoration: none;
}

.brand-inline {
    font-size: 0.95rem;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0a192f 0%, #0f4d78 60%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.brand-icon.small {
    width: 32px;
    height: 32px;
}

.brand-icon svg, .brand-inline svg {
    width: 20px;
    height: 20px;
    display: block;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 32px; /* space-x-8 */
}

.public-nav a {
    font-size: 0.92rem; /* text-sm */
    font-weight: 500;
    color: #475569;
    transition: color 0.18s ease;
    padding: 4px 0;
}

.public-nav a:hover,
.public-nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.public-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px; /* px-5 py-2.5 */
    border-radius: 10px; /* rounded-lg */
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
}

.nav-btn-ghost {
    color: var(--primary);
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.16);
}

.nav-btn-ghost:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.3);
}

.nav-btn-primary {
    background: linear-gradient(135deg, #0a192f 0%, #0f4d78 100%);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.18);
}

.nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.26);
}

.public-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: rgba(8, 24, 42, 0.05);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
    cursor: pointer;
}

.public-menu-toggle span {
    display: block;
    width: 18px;
    height: 2.2px;
    border-radius: 999px;
    background: var(--primary);
}

.public-mobile-panel {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(10, 25, 47, 0.98);
    color: #fff;
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-mobile-panel.open {
    display: flex;
}

.public-mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.public-mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth-actions .nav-btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* 3. Hero Section Redesign */
.hero {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(52px, 6.5vw, 92px) clamp(16px, 4vw, 48px) clamp(44px, 5.5vw, 76px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(36px, 5vw, 68px);
    align-items: center;
    box-sizing: border-box;
}

.hero-copy {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.1);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.18);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.75rem, 5.5vw, 4.5rem); /* text-4xl sm:text-5xl lg:text-6xl font-extrabold */
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 900;
    color: var(--primary);
}

.hero-highlight {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-lead {
    margin: 0 0 34px;
    color: #475569;
    font-size: clamp(1.125rem, 2.2vw, 1.25rem); /* text-base sm:text-lg */
    line-height: 1.75;
    max-width: 640px;
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 38px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn,
.submit-btn {
    background: linear-gradient(135deg, #0a192f 0%, #0d4f45 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(10, 25, 47, 0.2);
}

.secondary-btn,
.ghost-btn {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.04);
}

.primary-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(10, 25, 47, 0.28);
}

.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.25);
    box-shadow: 0 8px 20px rgba(10, 25, 47, 0.08);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.03);
    transition: transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: clamp(1.75rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.stat-label {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.hero-showcase-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    box-sizing: border-box;
}

.hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: block;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 36px rgba(10, 25, 47, 0.14);
    z-index: 10;
}

.badge-top {
    top: -18px;
    left: -18px;
}

.badge-bottom {
    bottom: -18px;
    right: -18px;
}

.badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.badge-icon.icon-success {
    background: #ecfdf5;
    color: #059669;
}

.badge-icon.icon-primary {
    background: #eff6ff;
    color: #2563eb;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-text strong {
    font-size: 0.86rem;
    color: var(--primary);
    font-weight: 700;
}

.badge-text span {
    font-size: 0.76rem;
    color: #64748b;
}

.badge-amount {
    color: #059669 !important;
    font-weight: 700;
}

/* 4. Bento Grid & Feature Cards (Spacious p-8 to p-10) */
.section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(72px, 7.5vw, 108px) clamp(16px, 4vw, 48px);
    box-sizing: border-box;
}

.section-alt {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 36px;
}

.section-header-wrap {
    max-width: 760px;
    width: 100%;
    margin-bottom: 48px;
}

.section-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0d9488;
    margin-bottom: 12px;
}

.section-title {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: clamp(2.25rem, 4.5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.section-description {
    margin: 0;
    color: #475569;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.7;
    width: 100%;
}

.feature-grid,
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
    width: 100%;
    box-sizing: border-box;
}

.feature-card,
.security-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 26px;
    padding: clamp(32px, 4vw, 42px) clamp(24px, 3vw, 34px);
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    width: 100%;
    box-sizing: border-box;
}

.feature-card:hover,
.security-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(10, 25, 47, 0.08);
    border-color: rgba(13, 148, 136, 0.25);
}

.feature-icon,
.security-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.feature-card:hover .feature-icon,
.security-card:hover .security-icon {
    transform: scale(1.08);
}

.icon-teal-bg {
    background: #ecfdf5;
    color: #059669;
}

.icon-blue-bg {
    background: #eff6ff;
    color: #2563eb;
}

.icon-purple-bg {
    background: #faf5ff;
    color: #7c3aed;
}

.icon-emerald-bg {
    background: #f0fdf4;
    color: #16a34a;
}

.icon-amber-bg {
    background: #fffbeb;
    color: #d97706;
}

.icon-indigo-bg {
    background: #eef2ff;
    color: #4f46e5;
}

.feature-card h3,
.security-card h3 {
    margin: 0;
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.feature-card p,
.security-card p {
    margin: 0;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* CTA Banner */
.cta-section {
    padding-top: 20px;
    padding-bottom: 40px;
}

.cta-banner {
    background: linear-gradient(135deg, #0a192f 0%, #0d3458 60%, #0d4f45 100%);
    border-radius: 32px;
    padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 64px);
    color: #ffffff;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.25), transparent 45%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.cta-content h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.cta-content p {
    margin: 0 0 32px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Public Footer */
.public-footer {
    background: #071927;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 64px clamp(16px, 4vw, 48px) 32px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.2fr 1.3fr;
    gap: 48px;
}

.footer-brand {
    color: #fff;
}

.public-footer p {
    margin: 18px 0 0;
    max-width: 520px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-links h4 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 48px) 32px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

.auth-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.auth-card {
    width: min(100%, 520px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.08);
    padding: 38px 28px 28px;
}

.auth-card h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: -0.06em;
}

.auth-card .lead {
    color: var(--muted);
    margin: 0 0 28px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field,
.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(245, 247, 250, 0.9);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(29, 142, 248, 0.45);
    box-shadow: 0 0 0 4px rgba(29, 142, 248, 0.09);
}

.form-footer {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
}

.alt-link {
    color: var(--primary-3);
    font-weight: 700;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.alert.success {
    background: var(--success-soft);
    border-color: rgba(30, 185, 128, 0.18);
    color: #0d7d57;
}

.alert.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.12);
    color: #a71e24;
}

.app-body {
    background: linear-gradient(180deg, #eef3fb 0%, #f5f7faf0 100%);
}

.app-shell {
    position: relative;
    min-height: 100vh;
    padding-bottom: 104px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.topbar-left {
    display: flex;
    align-items: center;
}

.menu-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(8, 24, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.menu-button:active {
    transform: scale(0.94);
    background: rgba(8, 24, 42, 0.1);
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2.2px;
    background: var(--primary);
    border-radius: 999px;
}

.brand-wrap {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-decoration: none;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #072723 0%, #0d4a43 50%, #137568 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 74, 67, 0.25);
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.brand-text {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(13, 61, 93, 0.05);
    color: var(--primary);
    cursor: pointer;
    position: relative;
    display: grid;
    place-items: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.icon-button:active {
    transform: scale(0.94);
    background: rgba(13, 61, 93, 0.1);
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    border: 2px solid #ffffff;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notification-item.notif-transfer {
    border-left: 3px solid #8b5cf6;
}

.notification-item.notif-approval {
    border-left: 3px solid #06b6d4;
}

.notification-item.notif-system {
    border-left: 3px solid #ef4444;
}

.notification-item.notif-info {
    border-left: 3px solid #3b82f6;
}

.notification-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
}

.notification-time {
    display: block;
    margin-top: 6px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
}

.notification-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #072723 0%, #0d4a43 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(7, 39, 35, 0.2);
    transition: transform 0.15s ease;
}

.user-avatar:active {
    transform: scale(0.94);
}

.side-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: min(280px, 82vw);
    height: 100vh;
    background: rgba(7, 23, 36, 0.96);
    color: #fff;
    padding: 26px 20px 20px;
    z-index: 45;
    transition: left 0.3s ease;
    box-shadow: 0 25px 60px rgba(5, 19, 30, 0.5);
}

.app-shell.nav-open .side-nav {
    left: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.side-nav nav {
    display: grid;
    gap: 10px;
}

.nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.content-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 18px 16px;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #065f46;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.06);
}

.welcome-banner-text {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.welcome-dismiss-btn {
    background: none;
    border: none;
    color: #065f46;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.greeting {
    padding: 4px 2px 4px;
}

.greeting h1 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary);
}

.greeting-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 2. Hero Account Summary Card */
.balance-card {
    background: linear-gradient(135deg, #052622 0%, #0a3f37 45%, #0f5c51 100%);
    border-radius: 24px;
    padding: 22px 20px 20px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(5, 38, 34, 0.22), 0 4px 12px rgba(5, 38, 34, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.22), transparent 45%),
                radial-gradient(circle at 10% 90%, rgba(13, 148, 136, 0.18), transparent 40%);
    pointer-events: none;
}

.balance-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.balance-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.balance-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

.hide-toggle {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hide-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.balance-value {
    margin: 12px 0 16px;
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #ffffff;
    line-height: 1.1;
}

.balance-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
}

.account-type-badge {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.account-num-text {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.account-pill .copy-btn {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.account-pill .copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ledger-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
}

.ledger-label {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.ledger-value {
    color: #5eead4;
    font-weight: 700;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
    color: #ccfbf1;
    font-size: 0.72rem;
    font-weight: 600;
}

/* 3. Quick Action Grid (4-Column Layout) */
.quick-actions-section {
    margin: 4px 0 6px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    aspect-ratio: 1 / 1;
    min-height: 82px;
    padding: 10px 6px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    text-decoration: none;
    color: var(--primary);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    border-color: rgba(13, 74, 67, 0.15);
}

.action-card:active {
    transform: scale(0.96);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    transition: transform 0.18s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.06);
}

.action-icon.icon-teal {
    background: #ecfdf5;
    color: #059669;
}

.action-icon.icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.action-icon.icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.action-icon.icon-purple {
    background: #faf5ff;
    color: #7c3aed;
}

.action-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 4. Recent Activity / Transactions Feed */
.transactions-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    padding: 18px 16px 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.txn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.txn-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.txn-header-subtitle {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
}

.link-arrow {
    color: #0d9488;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.link-arrow:hover {
    color: #0f766e;
    transform: translateX(2px);
}

.txn-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.txn-grouped-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.txn-date-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.txn-date-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 2px;
}

.txn-date-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.txn-divider-line {
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.txn-group-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.txn-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 11px 12px;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.txn-row:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    transform: translateY(-1px);
}

.txn-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.txn-avatar.avatar-credit {
    background: #dcfce7;
    color: #15803d;
}

.txn-avatar.avatar-debit {
    background: #fee2e2;
    color: #b91c1c;
}

.txn-avatar.avatar-atm {
    background: #ffedd5;
    color: #c2410c;
}

.txn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.txn-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-sub-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #64748b;
}

.txn-category-badge {
    font-weight: 600;
    color: #475569;
}

.txn-dot {
    color: #cbd5e1;
}

.txn-ref-code {
    font-family: monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-right-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    text-align: right;
}

.txn-amt {
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.txn-amt.amount-positive {
    color: #15803d;
}

.txn-amt.amount-negative {
    color: #0f172a;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.status-completed {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.status-rejected {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* 5. Fixed Bottom Navigation Bar */
.mobile-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    width: min(94%, 560px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px;
    z-index: 50;
}

.mobile-nav-item {
    padding: 8px 4px;
    border-radius: 16px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mobile-nav-item svg {
    display: block;
    transition: transform 0.15s ease;
}

.mobile-nav-item span {
    font-size: 0.68rem;
    letter-spacing: 0.01em;
}

.mobile-nav-item.active {
    background: rgba(7, 39, 35, 0.08);
    color: #072723;
    font-weight: 800;
}

.mobile-nav-item.active svg {
    stroke: #072723;
    transform: translateY(-1px);
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    color: var(--primary);
    letter-spacing: -0.06em;
}

.section-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.transaction-table th,
.transaction-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.transaction-table th {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.transaction-table td {
    color: var(--text);
    font-weight: 600;
}

.txn-col-amount.positive {
    color: var(--success);
}

.txn-col-amount.negative {
    color: var(--danger);
}

.bullet-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--muted);
    line-height: 1.8;
}

.rate-table-wrap {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
}

.rate-table-wrap h2 {
    margin: 0 0 18px;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.05em;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.rate-table th,
.rate-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text);
}

.rate-table th {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-section {
    padding-top: 26px;
}

.faq-list {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.02);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.02rem;
    padding: 18px 20px;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary-3);
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    color: var(--muted);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: start;
}

.contact-form-card,
.support-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
}

.support-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.support-item strong {
    color: var(--primary);
}

.support-item span {
    color: var(--muted);
    line-height: 1.6;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}

.profile-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-3));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.profile-identity h3 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    color: var(--primary);
}

.profile-identity p {
    margin: 0;
    color: var(--muted);
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.detail-item span {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-item strong {
    color: var(--primary);
    font-size: 0.95rem;
    text-align: right;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.08);
    color: #b4252a;
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 12px;
    padding: 13px 16px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 980px) {
    .app-body .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .app-body .submit-btn {
        width: 100%;
    }

    .app-body .form-row.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .topbar {
        grid-template-columns: 40px 1fr auto;
        padding: 10px 14px;
        gap: 8px;
    }

    .brand-text {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
    }

    .brand-icon svg {
        width: 16px;
        height: 16px;
    }

    .content-panel {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 14px;
    }

    .balance-card {
        padding: 18px 16px 16px;
        border-radius: 20px;
    }

    .balance-value {
        font-size: 2.2rem;
        margin: 10px 0 14px;
    }

    .balance-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .account-pill,
    .ledger-pill {
        width: 100%;
        justify-content: space-between;
        font-size: 0.75rem;
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .action-card {
        padding: 8px 4px;
        border-radius: 14px;
        min-height: 76px;
    }

    .action-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .action-icon svg {
        width: 18px;
        height: 18px;
    }

    .action-label {
        font-size: 0.72rem;
    }

    .transactions-panel {
        padding: 16px 12px 12px;
        border-radius: 20px;
    }

    .txn-row {
        grid-template-columns: 36px 1fr auto;
        gap: 10px;
        padding: 10px 10px;
        border-radius: 14px;
    }

    .txn-avatar {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .txn-avatar svg {
        width: 16px;
        height: 16px;
    }

    .txn-title {
        font-size: 0.86rem;
    }

    .txn-sub-meta {
        font-size: 0.72rem;
    }

    .txn-amt {
        font-size: 0.9rem;
    }

    .mobile-nav {
        width: calc(100% - 20px);
        bottom: 8px;
        padding: 5px 6px;
        border-radius: 20px;
    }

    .mobile-nav-item span {
        font-size: 0.64rem;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .public-nav,
    .public-header-actions {
        display: none;
    }

    .public-menu-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
        gap: 40px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-lead {
        max-width: 100%;
    }

    .hero-visual {
        margin-top: 20px;
        width: 100%;
    }

    .hero-showcase-card {
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        height: 380px;
    }

    .feature-grid,
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }

    .public-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px clamp(16px, 4vw, 24px) 36px;
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 8vw, 3.25rem);
        font-weight: 900;
        line-height: 1.1;
    }

    .hero-lead {
        font-size: 1.125rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .button-row {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 32px;
    }

    .button-row .hero-cta-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 16px 24px;
        font-size: 1.05rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .stat-box {
        width: 100%;
        padding: 18px 20px;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-showcase-card {
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        height: 320px;
    }

    .floating-badge {
        padding: 10px 14px;
        border-radius: 16px;
    }

    .badge-top {
        top: -12px;
        left: 8px;
    }

    .badge-bottom {
        bottom: -12px;
        right: 8px;
    }

    .section {
        padding: 56px clamp(16px, 4vw, 24px);
    }

    .section-header-wrap {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: clamp(1.95rem, 6.5vw, 2.6rem);
        font-weight: 800;
    }

    .section-description {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .feature-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
    }

    .feature-card,
    .security-card {
        width: 100%;
        padding: 28px 22px;
    }

    .cta-banner {
        padding: 40px 24px;
        border-radius: 24px;
        width: 100%;
    }

    .cta-content h2 {
        font-size: clamp(1.85rem, 6vw, 2.4rem);
    }

    .cta-content p {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 540px) {
    .hero h1 {
        font-size: clamp(2.15rem, 9vw, 2.75rem);
    }

    .hero-image {
        height: 260px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
