:root {
    /* Nozax Color Palette */
    --primary-green: #07B53B;
    --primary-hover: #069c32;
    --dark-text: #212529;
    --gray-text: #616A70;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing & Radius */
    --radius-pill: 50px;
    --radius-card: 14px;
    --container-width: 1140px;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--dark-text);
}

.text-primary {
    color: var(--primary-green);
}

.text-gray {
    color: var(--gray-text);
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(7, 181, 59, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 181, 59, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-green);
    color: var(--dark-text);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Risk Warning Bar */
.risk-warning {
    background-color: #F8F9FA;
    color: #39454C;
    font-size: 12px;
    text-align: center;
    padding: 10px 20px;
    border-bottom: 1px solid #E9ECEF;
    line-height: 1.4;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-text);
}

.nav-link:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    background-color: #E6F8EB;
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 100%;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.feature-icon {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 120px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.feature-icon img:hover {
    transform: scale(1.1);
}

/* Dashboard Layout */
.dashboard-layout {
    min-height: 100vh;
    position: relative;
}

.sidebar {
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    position: fixed;
    width: 260px;
    height: 100%;
    top: 0;
    left: 0;
}

.sidebar-brand {
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--gray-text);
    font-weight: 500;
    margin-bottom: 4px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #E6F8EB;
    color: var(--primary-green);
}

.main-content {
    margin-left: 260px;
    padding: 32px 40px;
    background-color: var(--light-bg);
    min-width: 0;
    overflow-x: hidden;
}

.dashboard-grid {
    display: grid;
    gap: 20px;
}

.dashboard-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dashboard-grid-2 {
    grid-template-columns: 3fr 1fr;
    gap: 24px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

/* Admin Specific */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    text-align: left;
    padding: 16px;
    background-color: #F8F9FA;
    color: #616A70;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #FFF4E5;
    color: #B76E00;
}

.status-approved {
    background: #E6F8EB;
    color: #07B53B;
}

.status-rejected {
    background: #FFE5E5;
    color: #D93025;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(7, 181, 59, 0.1);
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .dashboard-grid-3,
    .dashboard-grid-2,
    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Laptop mid-width (antara mobile dan desktop besar) */
@media (min-width: 901px) and (max-width: 1200px) {
    .main-content {
        padding: 24px 28px;
    }

    .dashboard-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-grid-2 {
        grid-template-columns: 2fr 1fr;
    }

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

/* Footer */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: auto;
}

/* Custom Deposit Styles */
.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.payment-option {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-option:hover {
    border-color: var(--primary-green);
    background-color: #f8fff9;
}

.payment-option.active {
    border-color: var(--primary-green);
    background-color: #e6f8eb;
    box-shadow: 0 0 0 2px rgba(7, 181, 59, 0.2);
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px dashed #ccc;
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    color: #666;
    background: #fafafa;
    transition: all 0.2s;
}

.custom-file-upload:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0fdf4;
}

.summary-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E5E7EB;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4B5563;
}

.summary-item.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #E5E7EB;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

/* Profile & Account Styles */
.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: #E6F8EB;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

.account-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s;
}

.account-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.balance-badge {
    background: #F3F4F6;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    justify-content: space-between;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #E6F8EB;
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 10px;
}

.history-container {
    max-width: 100%;
    margin: 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.history-filters {
    display: flex;
    gap: 12px;
}

.history-filter-input {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--dark-text);
    outline: none;
    transition: all 0.2s;
}

.history-filter-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(7, 181, 59, 0.1);
}

.account-card.create-new {
    border: 1px dashed var(--primary-green);
    background: #f0fdf4;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: all 0.2s;
}

.account-card.create-new:hover {
    background: #e6f8eb;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.create-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
    font-size: 24px;
}

/* Modern Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.transaction-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
    transform: translateX(4px);
}

.tx-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

.tx-icon.deposit {
    background: #E6F8EB;
    color: var(--primary-green);
}

.tx-icon.withdraw {
    background: #FFF4E5;
    color: #B76E00;
}

.tx-details {
    flex: 1;
}

.tx-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.tx-meta {
    font-size: 13px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-amount {
    text-align: right;
}

.tx-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.tx-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* ─── Badge system ─────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #E6F8EB;
    color: #07B53B;
}

.badge-warning {
    background: #FFF4E5;
    color: #B76E00;
}

.badge-danger {
    background: #FFE5E5;
    color: #D93025;
}

.badge-info {
    background: #EFF6FF;
    color: #2563EB;
}

/* ─── Toast Notifications ──────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    border-left: 4px solid #07B53B;
    min-width: 280px;
    max-width: 380px;
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(.21, 1.02, .73, 1) forwards;
    font-size: 14px;
    font-weight: 500;
}

.toast.error {
    border-left-color: #D93025;
}

.toast.warning {
    border-left-color: #B76E00;
}

.toast.info {
    border-left-color: #2563EB;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ─── Skeleton Loader ──────────────────────────────────────────────────────── */
@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
    display: block;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.skeleton-line.short {
    width: 50%;
}

.skeleton-line.medium {
    width: 70%;
}

.skeleton-line.full {
    width: 100%;
}

.skeleton-card {
    height: 90px;
    border-radius: 14px;
    margin-bottom: 12px;
}

/* ─── KYC Status Card ──────────────────────────────────────────────────────── */
.kyc-status-box {
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.kyc-status-box.unverified {
    background: #FFF8EB;
    border: 1.5px solid #F59E0B;
}

.kyc-status-box.pending {
    background: #EFF6FF;
    border: 1.5px solid #3B82F6;
}

.kyc-status-box.verified {
    background: #F0FDF4;
    border: 1.5px solid #07B53B;
}

.kyc-status-box.rejected {
    background: #FFF1F2;
    border: 1.5px solid #D93025;
}

.kyc-status-icon {
    font-size: 28px;
}

.kyc-status-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}

.kyc-status-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.kyc-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .kyc-upload-section {
        grid-template-columns: 1fr;
    }
}

.upload-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #FAFAFA;
    position: relative;
}

.upload-zone:hover,
.upload-zone.active {
    border-color: var(--primary-green);
    background: #F0FDF4;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-zone-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #9CA3AF;
}

.upload-zone.active .upload-zone-icon {
    color: var(--primary-green);
}

.upload-zone-label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.upload-zone-hint {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 5px;
}

.upload-zone-filename {
    font-size: 12px;
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 8px;
    word-break: break-all;
}

/* ─── Mobile Hamburger & Sidebar Overlay ───────────────────────────────────── */
.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    color: var(--dark-text);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 49;
}

@media (max-width: 900px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
        display: block !important;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }
}

/* ─── Bank Account Cards ────────────────────────────────────────────────────── */
.bank-card {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.bank-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.bank-card.primary {
    border-color: var(--primary-green);
    background: #F0FDF4;
}

.bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bank-name {
    font-weight: 700;
    font-size: 15px;
}

.bank-account-number {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.bank-holder {
    font-size: 13px;
    color: #6B7280;
}

/* ─── MT5 Card Polish ───────────────────────────────────────────────────────── */
.mt5-card {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.mt5-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mt5-card.primary {
    border-color: var(--primary-green);
}

.mt5-login {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mt5-detail {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 16px;
}

.mt5-balance {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.mt5-balance-item {
    background: #F9FAFB;
    border-radius: 10px;
    padding: 10px 12px;
}

.mt5-balance-label {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 3px;
}

.mt5-balance-value {
    font-size: 15px;
    font-weight: 700;
}

/* ─── Section Header ─────────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
}

.section-title-hint {
    font-size: 13px;
    color: #9CA3AF;
}