        /* Dashboard Styles */
        .dashboard-container {
            display: flex;
            min-height: 100vh;
            height: 100vh;
            overflow: hidden;
            background: #f8faf9;
        }

        .sidebar {
            --sidebar-current-width: var(--sidebar-width);
            width: var(--sidebar-current-width);
            flex: 0 0 var(--sidebar-current-width);
            height: 100vh;
            position: sticky;
            top: 0;
            z-index: 100;
            overflow: visible;
            background: #ffffff;
            border-right: 1px solid rgba(17, 24, 39, 0.08);
            box-shadow: 10px 0 28px rgba(15, 23, 42, 0.035);
            transition: width 220ms ease, flex-basis 220ms ease;
        }

        .sidebar.sidebar-collapsed {
            --sidebar-current-width: 88px;
        }

        .sidebar-flyout {
            width: 100%;
            height: 100%;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            padding: 24px 20px 20px;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            transition: width 220ms ease, padding 220ms ease, box-shadow 220ms ease, border-radius 220ms ease;
        }

        .sidebar.sidebar-collapsed .sidebar-flyout {
            position: absolute;
            inset: 0 auto 0 0;
            width: 88px;
            padding: 22px 12px 18px;
            border-right: 1px solid rgba(17, 24, 39, 0.08);
            box-shadow: 10px 0 28px rgba(15, 23, 42, 0.04);
        }

        .sidebar.sidebar-collapsed.sidebar-hover-open .sidebar-flyout {
            width: var(--sidebar-width);
            padding: 24px 20px 20px;
            box-shadow: 18px 0 36px rgba(15, 23, 42, 0.12);
        }

        .sidebar-header {
            min-height: 114px;
            padding: 0 0 22px;
            border-bottom: 1px solid rgba(17, 24, 39, 0.08);
            margin-bottom: 22px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .dashboard-logo {
            display: flex;
            align-items: center;
            min-width: 0;
            flex: 1;
            padding-top: 4px;
        }

        .dashboard-logo-icon {
            width: 178px;
            min-width: 0;
            height: 56px;
            background: transparent;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            overflow: hidden;
        }

        .sidebar-logo-img {
            width: 176px;
            max-width: 100%;
            height: auto;
            display: block;
            object-fit: contain;
            object-position: left center;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-header {
            justify-content: center;
            min-height: 92px;
            padding-bottom: 18px;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .dashboard-logo-icon {
            width: 54px;
            height: 54px;
            justify-content: center;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-logo-img {
            width: 54px;
            max-width: none;
            transform: translateX(0);
        }

        .sidebar-collapse-btn {
            width: 34px;
            height: 34px;
            border: 1px solid rgba(17, 24, 39, 0.10);
            background: #ffffff;
            color: #6b7280;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
            flex: 0 0 auto;
        }

        .sidebar-collapse-btn:hover {
            background: #f3f8f1;
            border-color: rgba(56, 142, 60, 0.24);
            color: var(--primary-dark);
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-collapse-btn {
            position: absolute;
            top: 12px;
            right: 9px;
            width: 28px;
            height: 28px;
            border-radius: 10px;
            opacity: 0.96;
        }

        .version-indicator {
            display: none !important;
        }

        .nav-menu {
            list-style: none;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin: 0;
            padding: 0;
        }

        .nav-item {
            position: relative;
            min-height: 64px;
            padding: 0 18px 0 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 18px;
            color: #1f2937;
            border-left: 4px solid transparent;
            border-radius: 0 14px 14px 0;
            transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
            font-size: 17px;
            font-weight: 540;
            letter-spacing: -0.01em;
        }

        .nav-item.active {
            background: #edf8ea;
            color: var(--primary-dark);
            border-left-color: var(--primary-color);
            box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.05);
            font-weight: 680;
        }

        .nav-item:hover:not(.active) {
            background: #f7faf7;
            color: #111827;
        }

        .nav-icon {
            width: 28px;
            height: 28px;
            flex: 0 0 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #374151;
        }

        .nav-icon svg,
        .logout-icon svg,
        .sidebar-collapse-btn svg,
        .user-location-icon svg {
            width: 100%;
            height: 100%;
            display: block;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }

        .nav-item.active .nav-icon {
            color: var(--primary-dark);
        }

        .nav-label,
        .sidebar-user-details,
        .logout-label {
            white-space: nowrap;
            overflow: hidden;
            transition: opacity 160ms ease, max-width 180ms ease, transform 180ms ease;
            max-width: 180px;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .nav-item {
            min-height: 58px;
            padding: 0;
            justify-content: center;
            gap: 0;
            border-left-width: 3px;
            border-radius: 14px;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .nav-label,
        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-user-details,
        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .logout-label {
            opacity: 0;
            max-width: 0;
            transform: translateX(-4px);
            pointer-events: none;
        }

        .sidebar-tooltip {
            position: absolute;
            left: 72px;
            top: 50%;
            transform: translateY(-50%) translateX(-4px);
            background: #111827;
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            padding: 7px 9px;
            border-radius: 8px;
            opacity: 0;
            pointer-events: none;
            white-space: nowrap;
            transition: opacity 120ms ease, transform 120ms ease;
            z-index: 3;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .nav-item:hover .sidebar-tooltip,
        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .logout-btn:hover .sidebar-tooltip {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }

        .sidebar-bottom {
            border-top: 1px solid rgba(17, 24, 39, 0.08);
            padding-top: 20px;
            margin-top: 24px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0;
            border-top: 0;
            min-width: 0;
        }

        .user-avatar {
            width: 48px;
            height: 48px;
            flex: 0 0 48px;
            border-radius: 999px;
            background: #edf8ea;
            color: var(--primary-dark);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 750;
            letter-spacing: 0.02em;
        }

        .sidebar-user-details {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .user-name {
            font-size: 15px;
            font-weight: 700;
            color: #111827;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-email {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.25;
            overflow: hidden;
            text-overflow: ellipsis;
            margin: 0;
        }

        .user-country {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #6b7280;
            line-height: 1.25;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-location-icon {
            width: 15px;
            height: 15px;
            flex: 0 0 15px;
            color: #7a8190;
        }

        .logout-btn {
            position: relative;
            width: 100%;
            min-height: 48px;
            padding: 0 16px;
            background: #ffffff;
            color: #374151;
            border: 1px solid transparent;
            border-radius: 12px;
            cursor: pointer;
            transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 14px;
            font-size: 15px;
            font-weight: 600;
        }

        .logout-btn:hover {
            background: #f7faf7;
            color: #111827;
            border-color: rgba(17, 24, 39, 0.08);
        }

        .logout-icon {
            width: 25px;
            height: 25px;
            flex: 0 0 25px;
            color: currentColor;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .user-info {
            justify-content: center;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .user-avatar {
            width: 46px;
            height: 46px;
            flex-basis: 46px;
            font-size: 16px;
        }

        .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .logout-btn {
            justify-content: center;
            padding: 0;
            gap: 0;
        }

        .main-content {
            flex: 1;
            min-width: 0;
            height: 100vh;
            padding: 30px;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            transition: padding 180ms ease;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--primary-color);
        }
        
        .page-title {
            font-size: 28px;
            color: var(--primary-color);
        }
        
        

        .construction-tag {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 999px;
            background-color: var(--primary-light);
            color: var(--primary-dark);
            border: 1px solid rgba(76, 175, 80, 0.35);
            font-weight: 600;
            margin-bottom: 16px;
        }

        .construction-tag::before {
            content: "⚠";
            font-size: 14px;
            line-height: 1;
        }

        .expand-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 2px 6px;
            margin-right: 6px;
            font-size: 14px;
            color: var(--primary-dark);
        }

        .charge-breakdown {
            background-color: var(--light-gray);
            border-left: 4px solid var(--primary-color);
            border-radius: 6px;
            padding: 12px 14px;
            color: #444;
        }

        .charge-breakdown-grid {
            display: flex;
            gap: 18px;
            flex-wrap: wrap;
            margin-top: 8px;
            font-size: 14px;
        }

        .charge-breakdown-item strong {
            display: block;
            font-size: 12px;
            color: #666;
            font-weight: 600;
            margin-bottom: 2px;
        }

/* Receipt-like breakdown */
.receipt-lines {
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 12px;
}

.receipt-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 0;
    font-size: 14px;
}

.receipt-line span:first-child {
    color: #555;
}

.receipt-line span:last-child {
    color: #222;
    font-weight: 800;
    white-space: nowrap;
}

.receipt-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.receipt-total span:first-child {
    color: #333;
    font-weight: 800;
}

.receipt-total span:last-child {
    font-size: 16px;
}

.receipt-due span:first-child {
    color: #444;
    font-weight: 700;
}

.receipt-due span:last-child {
    color: var(--danger-color);
}




        .account-link {
            display: inline-block;
            margin-top: 8px;
            font-size: 14px;
            color: var(--primary-color);
            cursor: pointer;
            text-decoration: underline;
        }

        .warning-banner {
            background-color: #ffecb3;
            border: 1px solid rgba(255, 193, 7, 0.55);
            color: #7a5a00;
            border-radius: 8px;
            padding: 12px 14px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
            margin: 0 0 15px 0;
        }

        .warning-banner a {
            color: #6a4f00;
            text-decoration: underline;
            font-weight: 600;
        }

        .muted-note {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
        }

        .shipping-options {
            margin-top: 12px;
        }

        .shipping-options-head {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 10px;
        }

        .hint-sm {
            font-size: 12px;
            color: #666;
        }

        .shipping-options-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 10px;
            margin-top: 10px;
            margin-bottom: 14px;
        }

        .shipping-option-card {
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            background: #fff;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
        }

        .shipping-option-card:hover {
            border-color: rgba(76, 175, 80, 0.6);
            box-shadow: 0 2px 10px rgba(76, 175, 80, 0.15);
        }

        .shipping-option-card.selected {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.18);
        }

        .shipping-option-main {
            flex: 1;
            min-width: 0;
        }

        .shipping-option-title {
            font-weight: 700;
            color: #333;
            line-height: 1.1;
        }

        .shipping-option-meta {
            font-size: 12px;
            color: #666;
            margin-top: 3px;
        }

        .shipping-option-price {
            font-weight: 700;
            color: #333;
            white-space: nowrap;
        }

        .shipping-debug-id {
            margin-top: 8px;
            padding: 8px 10px;
            border-radius: 8px;
            background: #f5f7f5;
            border: 1px dashed rgba(76, 175, 80, 0.45);
            color: #355b35;
            font-size: 12px;
        }



