/* ==============================================================================
   RIF'AN FATHONI, S.T., M.T. — OFFICIAL PROFILE & DIGITAL VCARD
   Domain: rifanfathoni.cloud
   Theme: Smart Living Modern One-Page x Business Card Polygon Aesthetic
   Colors: Deep Sapphire Blue, Vibrant Cobalt, Cerulean Cyan & Clean White
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #0047ba;
    --primary-dark: #002e7a;
    --primary-light: #0066ee;
    --primary-gradient: linear-gradient(135deg, #0047ba 0%, #0084ff 100%);
    --accent-cyan: #00c2ff;
    --accent-blue: #0084ff;
    --accent-soft: #e0f2fe;
    --accent-glow: rgba(0, 132, 255, 0.25);
    
    --unmul-green: #059669;
    --unmul-gold: #f59e0b;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;

    --bg-main: #f8fafd;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-glass-dark: rgba(15, 23, 42, 0.85);

    --text-main: #0f172a;
    --text-sub: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-subtle: #e2e8f0;
    --border-accent: rgba(0, 132, 255, 0.25);
    --border-glass: rgba(255, 255, 255, 0.6);

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(0, 71, 186, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(0, 71, 186, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 24px 48px -10px rgba(0, 71, 186, 0.18), 0 8px 16px -4px rgba(0, 132, 255, 0.12);
    --shadow-glow: 0 0 30px rgba(0, 132, 255, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 100% 0%, rgba(0, 132, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0, 71, 186, 0.05) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(0, 194, 255, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
}

/* ─── GEOMETRIC BACKGROUND ACCENTS (INSPIRED BY BUSINESS CARD) ─── */
.geo-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.85;
}

.geo-shape-1 {
    top: -120px;
    left: -120px;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(0, 71, 186, 0.12) 0%, rgba(0, 132, 255, 0.02) 100%);
    clip-path: polygon(0 0, 100% 0, 65% 100%, 0% 70%);
}

.geo-shape-2 {
    top: 15%;
    right: -80px;
    width: 420px;
    height: 500px;
    background: linear-gradient(225deg, rgba(0, 194, 255, 0.1) 0%, rgba(0, 71, 186, 0.02) 100%);
    clip-path: polygon(30% 0, 100% 15%, 85% 100%, 0 80%);
}

.geo-shape-3 {
    bottom: -100px;
    left: 10%;
    width: 500px;
    height: 350px;
    background: linear-gradient(45deg, rgba(0, 71, 186, 0.06) 0%, transparent 70%);
    clip-path: polygon(0 40%, 100% 0, 70% 100%, 15% 90%);
}

/* ─── LAYOUT CONTAINER ─── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ─── NAVIGATION (STICKY BLUR NAVBAR) ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 71, 186, 0.1);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.38);
    color: #ffffff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

.btn-outline {
    background: var(--bg-surface);
    color: var(--primary);
    border: 1.5px solid var(--border-accent);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--accent-soft);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-surface-alt);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 15px;
}

/* ─── LIVE PULSE BADGE ─── */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: var(--whatsapp-green);
    opacity: 0.6;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ─── HERO SECTION ─── */
.hero-section {
    padding-top: 130px;
    padding-bottom: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 132, 255, 0.08);
    border: 1px solid rgba(0, 132, 255, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 12px;
}

.hero-title .name-highlight {
    background: linear-gradient(135deg, #0047ba 0%, #0084ff 50%, #00c2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.role-line {
    width: 6px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.hero-role {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.hero-bio {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 580px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    box-shadow: var(--shadow-sm);
}

.tag-badge.accent {
    background: var(--accent-soft);
    border-color: var(--border-accent);
    color: var(--primary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

/* ─── STATS MINI ROW ─── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.stat-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ─── DYNAMIC QR & CARD INTERACTIVE WIDGET ─── */
.interactive-card-box {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-accent);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.interactive-card-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.15) 0%, transparent 70%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}

/* Segmented Control Tabs */
.card-tabs-nav {
    display: flex;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 4px;
    margin-bottom: 20px;
}

.card-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-tab-btn.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 71, 186, 0.12);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* QR Code Container & Display */
.qr-display-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-canvas-holder {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-soft);
    box-shadow: 0 8px 24px rgba(0, 71, 186, 0.08);
    display: inline-flex;
    margin-bottom: 14px;
    position: relative;
    transition: var(--transition);
}

.qr-canvas-holder:hover {
    border-color: var(--accent-blue);
    transform: scale(1.02);
}

#qrcodeCanvas, #qrcodeCanvas img {
    display: block;
    width: 190px !important;
    height: 190px !important;
    margin: 0 auto;
}

.qr-caption {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.qr-subcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 280px;
}

.qr-actions-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.qr-actions-row .btn {
    flex: 1;
}

/* 3D Flip Card View */
.flip-card-stage {
    perspective: 1000px;
    width: 100%;
    height: 220px;
    cursor: pointer;
    margin-bottom: 16px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card-stage.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-subtle);
}

.flip-card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

/* ─── SECTION STYLING ─── */
.section {
    padding: 80px 0;
    position: relative;
}

.section-alt {
    background-color: rgba(241, 245, 249, 0.5);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 14px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── INTERACTIVE WA MESSAGE BUILDER (SMART TOOL) ─── */
.builder-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-accent);
    position: relative;
    overflow: hidden;
}

.builder-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.form-select, .form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface-alt);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.msg-preview-card {
    background: #eef7ee;
    border: 1px solid #c7e6c9;
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
}

.msg-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.msg-preview-title {
    font-size: 12px;
    font-weight: 800;
    color: #128C7E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-bubble {
    background: #ffffff;
    border-radius: 12px 12px 12px 2px;
    padding: 14px 18px;
    font-size: 14px;
    color: #111b21;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    white-space: pre-wrap;
    min-height: 120px;
}

/* ─── ACADEMIC PROFILE & TIMELINE ─── */
.profile-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.card-info-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.info-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-content {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.timeline-date {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.timeline-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── RESEARCH CARDS ─── */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.research-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-accent);
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.research-card:hover::before {
    opacity: 1;
}

.res-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 12px;
}

.res-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 10px;
}

.res-authors {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.res-journal {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─── FAQ & ETIQUETTE ─── */
.etiquette-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid rgba(0, 132, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.etiquette-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.rule-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.rule-box-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}

/* ─── FOOTER ─── */
.site-footer {
    background: #0b192c;
    color: #ffffff;
    padding: 60px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.footer-brand-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 380px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

/* ─── TOAST NOTIFICATION ─── */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* ─── FLOATING ACTION BAR FOR MOBILE ─── */
.floating-mobile-bar {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-pill);
    padding: 8px 12px;
    box-shadow: 0 12px 36px rgba(0, 71, 186, 0.2);
    border: 1px solid var(--border-accent);
    z-index: 99;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 38px;
    }

    .builder-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .floating-mobile-bar {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
