@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #F8FAFC;
    --bg-card: #ffffff;
    --bg-main: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --primary: #F40009; /* Coca-Cola Red */
    --primary-hover: #C60000;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --border: #E2E8F0;
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Theme Styles */
body.dark-mode {
    --bg-dark: #0B0F19;
    --bg-card: #151F32;
    --bg-main: #0F172A;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #1E293B;
    --glass-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.dashboard-sidebar.dark-mode-sidebar {
    background: #0B0F19 !important;
    border-right-color: #1E293B !important;
}

/* Dark Mode Overrides */
body.dark-mode .admin-sidebar,
body.dark-mode .admin-card,
body.dark-mode .auth-card,
body.dark-mode .job-card,
body.dark-mode .step-card,
body.dark-mode .checkout-card {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
    box-shadow: var(--glass-shadow) !important;
    color: var(--text-main) !important;
}

body.dark-mode .admin-sidebar h1,
body.dark-mode .admin-card h2,
body.dark-mode .admin-card h3,
body.dark-mode .auth-header h1,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: var(--text-main) !important;
}

body.dark-mode label,
body.dark-mode .form-label {
    color: var(--text-main) !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-input,
body.dark-mode .form-control {
    background: var(--bg-main) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus,
body.dark-mode .form-input:focus,
body.dark-mode .form-control:focus {
    background: var(--bg-card) !important;
    border-color: var(--primary) !important;
}

body.dark-mode table,
body.dark-mode th,
body.dark-mode td {
    border-color: var(--border) !important;
    color: var(--text-main) !important;
}

body.dark-mode th {
    color: var(--text-muted) !important;
}

body.dark-mode .sidebar-link:hover,
body.dark-mode .btn-outline:hover {
    background: var(--bg-main) !important;
    color: var(--text-main) !important;
}

body.dark-mode .divider {
    color: var(--text-muted) !important;
    border-color: var(--border) !important;
}
body.dark-mode .divider::before, 
body.dark-mode .divider::after {
    border-bottom-color: var(--border) !important;
}

body.dark-mode .btn-google {
    background: var(--bg-main) !important;
    color: var(--text-main) !important;
}
body.dark-mode .btn-google:hover {
    background: var(--border) !important;
}

/* Premium Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-alert {
    pointer-events: auto;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
}
.toast-alert.show {
    transform: translateX(0);
}
.toast-alert.danger {
    background: rgba(239, 68, 68, 0.95);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}
.toast-alert.info {
    background: rgba(59, 130, 246, 0.95);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
}

.gradient-text {
    background: linear-gradient(to right, #E11D48, #F43F5E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.glassmorphism {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 99px; /* Pill shape */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: rgba(15, 23, 42, 0.05);
}

.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.875rem;}

.alert {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FCD34D; }

.badge { padding: 4px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
.badge-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.badge-primary { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }
.badge-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

/* Home Hero */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 0 20px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}
.inline-form {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}
.inline-form .url-prefix {
    color: var(--text-muted);
    padding-left: 12px;
}
.inline-form input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px;
    flex: 1;
    outline: none;
    font-size: 1rem;
}

/* Auth Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border);
}
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h1 { font-size: 1.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.form-input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-main); color: var(--text-main); font-size: 1rem; transition: all 0.2s; font-family: 'Plus Jakarta Sans', sans-serif; }
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(244, 0, 9, 0.15); background: var(--bg-card); }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; color: var(--text-main); }
.btn-auth { width: 100%; padding: 14px; border-radius: 99px; background: var(--primary); color: white; border: none; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; margin-top: 10px; font-family: 'Plus Jakarta Sans', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-auth:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(244, 0, 9, 0.25); }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.auth-footer a { color: var(--primary); font-weight: 800; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* Dashboard New Layout */
.dashboard-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
    color: var(--text-main);
}
.dashboard-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Navigation */
.dashboard-sidebar {
    width: 260px;
    min-width: 260px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    border-radius: 0;
    padding: 30px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Sidebar Collapse States */
.dashboard-sidebar.collapsed {
    width: 85px;
    min-width: 85px;
    padding: 30px 10px;
}
.dashboard-sidebar.collapsed .sidebar-logo {
    padding-left: 10px;
}
.dashboard-sidebar.collapsed .sidebar-logo span {
    display: none;
}
.dashboard-sidebar.collapsed .sidebar-link {
    padding: 14px;
    justify-content: center;
    gap: 0;
}
.dashboard-sidebar.collapsed .sidebar-link span {
    display: none;
}
.dashboard-sidebar.collapsed .sidebar-link i {
    font-size: 1.4rem;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    right: -12px;
    top: 38px;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    color: var(--text-main);
    transition: all 0.3s;
}
.sidebar-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.dashboard-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .dashboard-body { overflow: auto; }
    .dashboard-layout { flex-direction: column; height: auto; overflow: visible; display: block; }
    .dashboard-sidebar { 
        width: 100% !important; 
        min-width: 100% !important; 
        height: auto; 
        border-right: none; 
        border-bottom: 1px solid var(--border); 
        padding: 10px 15px; 
        position: static;
    }
    .dashboard-content {
        height: auto;
        overflow-y: visible;
        padding: 10px;
    }
    .sidebar-toggle { display: none; }
    
    .sidebar-logo {
        margin-bottom: 0;
        padding-left: 5px;
        justify-content: space-between;
        width: 100%;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar-nav {
        display: none !important;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        padding-bottom: 10px;
        border-top: 1px solid var(--border);
        margin-top: 15px;
    }
    .sidebar-nav.mobile-open {
        display: flex !important;
    }
    .sidebar-link i {
        min-width: auto;
        font-size: 1rem;
    }
}
.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-logo span {
    color: var(--primary);
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.sidebar-link {
    text-decoration: none;
    color: var(--text-muted);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}
.sidebar-link i {
    font-size: 1.2rem;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}
.sidebar-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    box-shadow: none;
}
.sidebar-link.active {
    background: var(--primary);
    color: white;
}

/* Main Content Area */
.dashboard-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
}
@media (max-width: 768px) {
    .dashboard-content { padding: 20px; }
}
.content-header {
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .content-header { 
        padding: 15px; 
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
.card {
    padding: 24px;
}
.wallet-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Profile Form */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}
.form-group label {
    font-weight: 600;
    color: var(--text-main);
}
.form-group input {
    padding: 12px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text-main);
    outline: none;
}
.form-group input:focus { border-color: var(--primary); }

/* Wallet Table */
.table-responsive {
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.transaction-table th {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 1px;
}
.wallet-card h3 { color: var(--text-muted); font-size: 1rem; font-weight: 500; }
.wallet-card .balance { font-size: 2rem; font-weight: 800; margin-top: 5px; color: var(--success); }

/* Link Management */
.add-link-form { display: flex; gap: 10px; margin-top: 15px; }
.add-link-form input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text-main);
}
@media (max-width: 600px) {
    .add-link-form { flex-direction: column; }
}
.link-list { list-style: none; }
.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

/* Org Tree (Multi-level) */
.org-tree {
    display: block;
    text-align: center;
    margin-top: 30px;
    overflow-x: auto;
    padding: 20px;
}
.org-tree ul {
    padding-top: 20px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    list-style-type: none;
    min-width: 100%;
}
.org-tree li {
    float: left;
    text-align: center;
    position: relative;
    padding: 20px 10px 0 10px;
}
.org-tree li::before, .org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--border);
    width: 50%;
    height: 20px;
}
.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--border);
}
.org-tree li:only-child::after, .org-tree li:only-child::before {
    display: none;
}
.org-tree li:only-child {
    padding-top: 0;
}
.org-tree li:first-child::before, .org-tree li:last-child::after {
    border: 0 none;
}
.org-tree li:last-child::before {
    border-right: 2px solid var(--border);
    border-radius: 0 5px 0 0;
}
.org-tree li:first-child::after {
    border-radius: 5px 0 0 0;
}
.org-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--border);
    width: 0;
    height: 20px;
}

.tree-node {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--primary);
    border-radius: 12px;
    width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}
.tree-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}
.tree-node.me { border-color: var(--success); background: rgba(16, 185, 129, 0.1); }
.tree-node.empty-node { border: 1px dashed var(--text-muted); opacity: 0.6; padding: 15px 5px; cursor: pointer; }
.tree-node.empty-node:hover { opacity: 1; border-color: var(--primary); background: rgba(59, 130, 246, 0.1); }
.tree-node .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.tree-node span {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Profile / Bio-link page */
.profile-page {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}
.profile-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}
.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
}
.profile-header h1 { font-size: 1.5rem; margin-bottom: 5px; }
.profile-header p { color: var(--text-muted); margin-bottom: 30px; }
.bio-link-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s;
}
.bio-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    border-color: var(--primary);
}
.profile-footer {
    margin-top: 50px;
}

/* --- NEW HOME PAGE STYLES (LYNK.ID INSPIRED) --- */

.home-page {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: none; /* Remove dark mode gradient */
}

/* Background Blobs for vibrant feel */
.home-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}
.home-blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(244, 0, 9, 0.15);
    top: -100px;
    right: -50px;
}
.home-blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(198, 0, 0, 0.15);
    bottom: -50px;
    left: -50px;
}

/* Navbar */
.home-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    position: relative;
    z-index: 10;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.home-nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Buttons */
.home-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}
.home-btn-primary {
    background: #F40009;
    color: white;
}
.home-btn-primary:hover {
    background: #C60000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}
.home-btn-text {
    background: transparent;
    color: var(--text-muted);
}
.home-btn-text:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    gap: 40px;
    min-height: calc(100vh - 100px);
}
@media (max-width: 992px) {
    .home-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
}
@media (max-width: 992px) {
    .hero-content { margin: 0 auto; }
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
}

.gradient-text-vibrant {
    background: linear-gradient(to right, #F40009, #C60000, #ff4b4b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.claim-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
@media (max-width: 600px) {
    .claim-form { flex-direction: column; }
}

.claim-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0 20px;
    transition: border 0.3s;
}
.claim-input-group:focus-within {
    border-color: #F40009;
}

.claim-prefix {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.claim-input-group input {
    border: none;
    outline: none;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
}

.hero-subtext {
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
}

/* Hero Visual (Phone Mockup) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 10px solid #0f172a;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #0f172a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    height: 100%;
    padding: 50px 20px 20px;
    text-align: center;
}

.mockup-header {
    margin-bottom: 30px;
}

.mockup-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(to right, #F40009, #ff4b4b);
    margin: 0 auto 15px;
    border: 3px solid white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.mockup-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
}
.mockup-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.mockup-btn {
    background: white;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    color: #0f172a;
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 100px;
    left: -30px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 150px;
    right: -40px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- BIO LINK BUILDER --- */
.builder-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    background: transparent;
}
@media (max-width: 992px) {
    .builder-container { grid-template-columns: 1fr; }
}

/* Builder Editor */
.builder-editor {
    display: flex;
    flex-direction: column;
}
.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
}
.url-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Block List */
.block-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.block-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: #334155;
    transition: transform 0.2s;
}
.block-card:hover {
    transform: translateX(5px);
}
.drag-handle {
    cursor: grab;
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1;
}
.block-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.block-content {
    flex: 1;
}
.block-title {
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
}
.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.btn-icon:hover {
    opacity: 1;
    color: var(--danger);
}

.hidden {
    display: none !important;
}

/* Builder Preview Mockup */
.builder-preview {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
}
.preview-title {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
}
.phone-mockup-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
.phone-mockup-frame {
    width: 280px;
    height: 580px;
    background: #fff;
    border-radius: 40px;
    border: 12px solid #334155;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.phone-notch-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #334155;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}
.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #f8fafc; /* Matches typical light mode */
}

/* --- PREMIUM PROFILE (PUBLIC BIO LINK) --- */
.profile-page-light {
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.profile-container-light {
    width: 100%;
    max-width: 480px;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}
.profile-banner {
    height: 150px;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    width: 100%;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}
.profile-header-light {
    text-align: center;
    margin-top: -50px;
    padding: 0 20px;
}
.avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    margin: 0 auto 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.avatar-text {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
}
.profile-header-light h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #0f172a;
}
.profile-header-light p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px;
}

.profile-links-light {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.bio-link-block {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 15px 20px;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.bio-link-block:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(244, 0, 9, 0.1); /* Coca cola red shadow */
}
.link-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}
.link-title {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
    padding-right: 30px; /* offset for icon to keep centered */
}

.profile-footer-light {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}
.btn-create-own {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(244, 0, 9, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-create-own:hover {
    background: var(--primary);
    color: var(--text-main);
}

/* =========================================================
   LYNK.ID INSPIRED HOMEPAGE REDESIGN 
========================================================= */

.lynk-inspired {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #111827;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 20px 100px;
    min-height: 85vh;
}

.hero-content {
    flex: 1;
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .lynk-inspired .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.lynk-inspired .hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.lynk-inspired .hero-desc {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-badge-modern {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.claim-form-modern {
    display: flex;
    max-width: 500px;
    margin: 0 auto 15px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.claim-form-modern:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(244, 0, 9, 0.1);
}

.claim-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.claim-input-wrapper .prefix {
    color: #9ca3af;
    font-weight: 600;
    font-size: 1.1rem;
}

.claim-input-wrapper input {
    border: none;
    outline: none;
    padding: 12px 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    width: 100%;
}

.btn-claim-modern {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-claim-modern:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(244, 0, 9, 0.3);
}

/* PHONE MOCKUP MODERN */
.phone-mockup-modern {
    width: 300px;
    height: 600px;
    background: #111827;
    border-radius: 45px;
    border: 12px solid #111827;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

.phone-screen-modern {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
}

.mockup-cover {
    height: 100px;
    background: linear-gradient(135deg, #F40009, #ff7e5f);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.mockup-header-modern {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.mockup-avatar-modern {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 4px solid #f8fafc;
    margin: -40px auto 10px;
    background-image: url('https://i.pravatar.cc/150?img=47');
    background-size: cover;
}

.mockup-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
}

.mockup-bio {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

.mockup-body-modern {
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-link-modern {
    background: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

.floating-badge-modern {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

/* SOCIAL PROOF */
.social-proof-section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.proof-text {
    color: #64748b;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.proof-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-box {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #cbd5e1;
}

/* FEATURES GRID */
.features-section {
    padding: 100px 20px;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.feature-card.highlight {
    background: linear-gradient(135deg, #F40009 0%, #ff4b4b 100%);
    color: white;
    border: none;
}

.feature-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* CTA SECTION */
.cta-section {
    padding: 0 20px 100px;
}

.cta-box {
    background: #111827;
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.cta-box p {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-bottom: 40px;
}

/* FOOTER */
.home-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.link-group a {
    display: block;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .lynk-inspired .hero-title { font-size: 2.5rem; }
    .claim-form-modern { flex-direction: column; background: transparent; border: none; padding: 0; }
    .claim-input-wrapper { background: white; border: 2px solid #e5e7eb; border-radius: 12px; margin-bottom: 10px; padding: 5px 15px; }
    .btn-claim-modern { width: 100%; padding: 15px; }
    .footer-links { gap: 40px; }
    .cta-box h2 { font-size: 2rem; }
}

/* ============================================================
   MOBILE OVERHAUL — User-Friendly Phone Experience
   ============================================================ */

/* ---- SIDEBAR: Full-screen overlay on mobile ---- */
@media (max-width: 768px) {

    /* Layout: stack vertically, no scroll trap */
    .dashboard-layout {
        display: flex !important;
        flex-direction: column !important;
        height: 100dvh !important;
        overflow: hidden !important;
        position: relative;
    }

    /* Sidebar becomes fixed overlay that slides in */
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80vw !important;
        max-width: 300px !important;
        min-width: unset !important;
        height: 100dvh !important;
        z-index: 1000 !important;
        border-right: 1px solid var(--border) !important;
        border-bottom: none !important;
        padding: 20px 16px 100px !important;
        overflow-y: auto !important;
        transition: left 0.3s cubic-bezier(0.4,0,0.2,1) !important;
        box-shadow: none !important;
    }

    /* When mobile-open class is added by JS */
    .dashboard-sidebar.mobile-open {
        left: 0 !important;
        box-shadow: 4px 0 30px rgba(0,0,0,0.15) !important;
    }

    /* Dim overlay behind open sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 999;
    }
    .sidebar-overlay.active { display: block; }

    /* Sidebar nav — always visible (not hidden on mobile) */
    .sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        padding-top: 0 !important;
        border-top: none !important;
        margin-top: 0 !important;
    }

    /* Sidebar logo area */
    .sidebar-logo {
        margin-bottom: 20px !important;
        padding-left: 0 !important;
        font-size: 1.4rem !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    /* Bigger touch targets on sidebar links */
    .sidebar-link {
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
        gap: 12px !important;
        white-space: normal !important;
    }

    /* ---- TOP MOBILE HEADER BAR ---- */
    .mobile-topbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
        min-height: 60px !important;
        flex-shrink: 0 !important;
    }

    .mobile-topbar-logo {
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        color: var(--primary) !important;
        text-decoration: none !important;
    }

    .mobile-topbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .mobile-hamburger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        border: 1px solid var(--border) !important;
        background: var(--bg-main) !important;
        cursor: pointer !important;
        font-size: 1.3rem !important;
        color: var(--text-main) !important;
        flex-shrink: 0 !important;
    }

    /* ---- MAIN CONTENT AREA ---- */
    .dashboard-content {
        flex: 1 !important;
        height: calc(100dvh - 60px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px !important;
    }

    /* ---- CARDS & GRID ---- */
    .card, .glassmorphism {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Wallet cards stacked */
    .wallet-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Content header */
    .content-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 14px 0 !important;
    }

    /* ---- TYPOGRAPHY ---- */
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.05rem !important; }

    /* ---- TABLES: horizontal scroll ---- */
    .table-responsive, table {
        width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
    }
    table { display: table !important; min-width: 500px; }

    /* ---- FORMS ---- */
    input, select, textarea {
        font-size: 16px !important; /* Prevent iOS zoom on focus */
    }

    /* ---- BUTTONS ---- */
    .btn, button[type="submit"] {
        min-height: 44px !important;
        font-size: 0.9rem !important;
    }

    /* ---- BALANCE number ---- */
    .balance { font-size: 1.8rem !important; }

    /* ---- Network tree: scroll horizontally ---- */
    .tree-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 16px !important;
    }

    /* ---- Biolink preview: full width ---- */
    .preview-iframe {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }

    /* ---- Hide sidebar toggle button on mobile ---- */
    .sidebar-toggle { display: none !important; }

    /* ---- Old mobile-menu-toggle: hide (we now use topbar hamburger) ---- */
    .mobile-menu-toggle { display: none !important; }

    /* ---- Admin panel: sidebar also as overlay ---- */
    .admin-layout {
        flex-direction: column !important;
    }
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80vw !important;
        max-width: 300px !important;
        height: 100dvh !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        transition: left 0.3s ease !important;
        padding-bottom: 40px !important;
    }
    .admin-sidebar.mobile-open {
        left: 0 !important;
        box-shadow: 4px 0 30px rgba(0,0,0,0.2) !important;
    }
    .admin-main {
        padding: 16px !important;
        height: calc(100dvh - 60px) !important;
        overflow-y: auto !important;
    }
}

/* ---- Hide mobile-topbar on desktop ---- */
.mobile-topbar { display: none; }
.sidebar-overlay { display: none; }
.mobile-hamburger { display: none; }

/* ---- Small phone: extra tight ---- */
@media (max-width: 400px) {
    .dashboard-content { padding: 12px !important; }
    .card, .glassmorphism { padding: 14px !important; }
    .sidebar-link { padding: 12px 14px !important; font-size: 0.9rem !important; }
}
