:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
}

body {
    background-color: #f3f4f6;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#app-layout {
    width: 100%;
    /* max-width: 1199px; */
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    position: relative;
    min-height: 100vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

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

.placeholder-box {
    background: #fff;
    padding: 40px;
    text-align: center;
}

#sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 24px 20px 24px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 16px;
}

.sidebar-header .subtitle {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 4px;
    font-family: sans-serif;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    gap: 4px;
}

.nav-item {
    text-align: left;
    background: none;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    color: #4b5563;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
    text-decoration: none;
}

.nav-item:hover {
    background-color: #f97316;
    color: #f9fafb;
}

.nav-item:hover a{
    color: #fff !important;
}

.nav-item.active {
    background-color: #fff7ed;
    color: #f97316;
    font-weight: 700;
}

.nav-item .indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: #f97316;
    border-radius: 0 2px 2px 0;
    transition: height 0.2s;
}

.nav-item.active .indicator {
    height: 60%;
}

.nav-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 12px 0;
}

.nav-item.logout {
    color: #6b7280;
    margin-top: auto;
}

.nav-item.logout:hover {
    background-color: #fef2f2;
    color: #ef4444;
}

#main-content {
    flex-grow: 1;
    min-width: 0;
}

#mobile-header { display: none; }
#sidebar-overlay { display: none; }

@media (max-width: 1023px) {
    #app-layout {
        flex-direction: column;
    }

    #mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 60px;
        background-color: #ffffff;
        padding: 0 20px;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    #btn-toggle-menu {
        background: none;
        border: none;
        font-size: 20px;
        color: #374151;
        cursor: pointer;
    }

    .mobile-logo { font-weight: bold; font-size: 16px; color: #1f2937; }
    .mobile-user { font-size: 20px; color: #f97316; }

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        z-index: 1000;
        padding-top: 10px;
    }

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

    #sidebar-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 900;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    #sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    #main-content {
        width: 100%;
    }
}




#income-analysis-section {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --border-light: #e5e7eb;
    --color-purple: #a855f7;
    --color-green: var(--orange-500);
    --color-gold: #eab308;
    --color-orange: #f97316;
    --footer-bg: #fffbeb;
    --footer-border: #fcd34d;
    --footer-text: #92400e;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius-lg: 16px;
    --radius-md: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#income-analysis-section * { box-sizing: border-box; margin: 0; padding: 0; }

#income-analysis-section .section-header { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
#income-analysis-section .title-border { width: 5px; height: 26px; background-color: var(--color-orange); border-radius: 4px; }
#income-analysis-section .section-title { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; color: var(--text-main); }
#income-analysis-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

#income-analysis-section .analysis-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: var(--shadow-card);
}

#income-analysis-section .chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 250px;
}

#income-analysis-section .donut-chart {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        var(--color-purple) 0% 35%,
        var(--color-green) 35% 65%,
        var(--color-gold) 65% 85%,
        var(--color-orange) 85% 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#income-analysis-section .donut-hole {
    width: 170px;
    height: 170px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

#income-analysis-section .chart-label {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 6px;
    font-weight: 500;
}

#income-analysis-section .chart-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-orange);
    letter-spacing: -0.5px;
}

#income-analysis-section .list-container {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#income-analysis-section .income-item {
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#income-analysis-section .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#income-analysis-section .item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

#income-analysis-section .icon-box {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#income-analysis-section .item-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-main);
    font-weight: 700;
}

#income-analysis-section .item-amount {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
}

#income-analysis-section .item-percent {
    font-size: 18px;
    font-weight: 800;
}

#income-analysis-section .progress-bg {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

#income-analysis-section .progress-bar {
    height: 100%;
    border-radius: 4px;
}

#income-analysis-section .footer-note {
    background-color: var(--footer-bg);
    border: 1px solid var(--footer-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 12px;
}

#income-analysis-section .footer-title {
    color: #b45309;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#income-analysis-section .footer-desc {
    font-size: 13px;
    color: var(--footer-text);
    line-height: 1.6;
}

@media (min-width: 768px) {
    #income-analysis-section .analysis-card {
        flex-direction: row;
        align-items: center;
        padding: 40px;
    }
}

#org-chart-section {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --border-light: #e5e7eb;
    --color-primary: #f97316;
    --color-primary-dark: #ea580c;
    --color-green: var(--orange-500);
    --color-purple: #a855f7;
    --color-silver: #64748b;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#org-chart-section * { box-sizing: border-box; margin: 0; padding: 0; }

#org-chart-section .section-header { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
#org-chart-section .title-border { width: 5px; height: 26px; background-color: var(--color-primary); border-radius: 4px; }
#org-chart-section .section-title { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; color: var(--text-main); }
#org-chart-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

#org-chart-section .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

#org-chart-section .stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#org-chart-section .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

#org-chart-section .stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-sub);
}

#org-chart-section .stat-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

#org-chart-section .stat-value {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

#org-chart-section .stat-sub {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
}

#org-chart-section .card-orange .stat-icon { background: rgba(249, 115, 22, 0.1); color: var(--color-primary); }
#org-chart-section .card-orange .stat-value { color: var(--color-primary); }

#org-chart-section .card-green .stat-icon { background: rgba(249, 115, 22, 0.1); color: var(--color-green); }
#org-chart-section .card-green .stat-value { color: var(--color-green); }

#org-chart-section .card-purple .stat-icon { background: rgba(168, 85, 247, 0.1); color: var(--color-purple); }
#org-chart-section .card-purple .stat-value { color: var(--color-purple); }

#org-chart-section .tabs-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

#org-chart-section .tab-btn {
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

#org-chart-section .tab-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

#org-chart-section .tab-btn.inactive {
    background-color: #f1f5f9;
    color: var(--text-sub);
}

#org-chart-section .tab-btn.inactive:hover {
    background-color: #e2e8f0;
    color: var(--text-main);
}

#org-chart-section .member-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#org-chart-section .member-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

#org-chart-section .member-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

#org-chart-section .member-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

#org-chart-section .avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f3f4f6;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#org-chart-section .avatar img { width: 100%; height: 100%; object-fit: cover; }

#org-chart-section .member-info { display: flex; flex-direction: column; gap: 4px; }

#org-chart-section .name-row { display: flex; align-items: center; gap: 8px; }

#org-chart-section .member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

#org-chart-section .badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
}

#org-chart-section .badge-gold {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

#org-chart-section .badge-silver {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

#org-chart-section .join-date {
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 5px;
}

#org-chart-section .member-right { text-align: right; }

#org-chart-section .contribution-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 4px;
}

#org-chart-section .contribution-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (min-width: 768px) {
    #org-chart-section .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    #org-chart-section .member-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #org-chart-section .member-right {
        text-align: left;
        width: 100%;
        padding-top: 12px;
        border-top: 1px dashed var(--border-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #org-chart-section .contribution-amount { font-size: 16px; }
}

#asset-dual-wallet-section {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --border-light: #e5e7eb;
    --color-primary: #f97316;
    --theme-green: var(--orange-500);
    --theme-green-dark: var(--orange-600);
    --bg-green-light: rgba(249, 115, 22, 0.1);
    --theme-purple: #a855f7;
    --theme-purple-dark: #7e22ce;
    --bg-purple-light: rgba(168, 85, 247, 0.1);
    --tag-gold-bg: #fffbeb;
    --tag-gold-text: #b45309;
    --tag-gold-border: #fcd34d;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius-card: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#asset-dual-wallet-section * { box-sizing: border-box; margin: 0; padding: 0; }

#asset-dual-wallet-section .section-header { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
#asset-dual-wallet-section .title-border { width: 5px; height: 26px; background-color: var(--color-primary); border-radius: 4px; }
#asset-dual-wallet-section .section-title { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; color: var(--text-main); }
#asset-dual-wallet-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

#asset-dual-wallet-section .wallet-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#asset-dual-wallet-section .wallet-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 28px;
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

#asset-dual-wallet-section .wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

#asset-dual-wallet-section .wallet-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
#asset-dual-wallet-section .card-cash::before { background-color: var(--theme-green); }
#asset-dual-wallet-section .card-points::before { background-color: var(--theme-purple); }

#asset-dual-wallet-section .card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

#asset-dual-wallet-section .card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

#asset-dual-wallet-section .card-cash .card-icon {
    background-color: var(--bg-green-light);
    color: var(--theme-green);
}

#asset-dual-wallet-section .card-points .card-icon {
    background-color: var(--bg-purple-light);
    color: var(--theme-purple);
}

#asset-dual-wallet-section .card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

#asset-dual-wallet-section .card-name span {
    display: block;
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
    margin-top: 3px;
}

#asset-dual-wallet-section .balance-area { margin-bottom: 28px; }

#asset-dual-wallet-section .balance-label {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 6px;
    font-weight: 500;
}

#asset-dual-wallet-section .balance-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#asset-dual-wallet-section .text-green { color: var(--theme-green); }
#asset-dual-wallet-section .text-purple { color: var(--theme-purple); }

#asset-dual-wallet-section .detail-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    border-top: 1px dashed var(--border-light);
    padding-top: 20px;
}

#asset-dual-wallet-section .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

#asset-dual-wallet-section .row-label {
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
}

#asset-dual-wallet-section .row-value {
    font-weight: 600;
    letter-spacing: 0.3px;
}

#asset-dual-wallet-section .tag-black-card {
    font-size: 11px;
    background-color: var(--tag-gold-bg);
    color: var(--tag-gold-text);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--tag-gold-border);
    font-weight: bold;
}

#asset-dual-wallet-section .btn-action {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#asset-dual-wallet-section .btn-action:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
#asset-dual-wallet-section .btn-action:active { transform: scale(0.98); }

#asset-dual-wallet-section .btn-green { background-color: var(--theme-green); }

#asset-dual-wallet-section .btn-purple { background-color: var(--theme-purple); }

@media (min-width: 768px) {
    #asset-dual-wallet-section .wallet-container {
        flex-direction: row;
    }
}

#faq-section {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --color-primary: #f97316;
    --border-light: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#faq-section * { box-sizing: border-box; margin: 0; padding: 0; }

#faq-section .section-header { margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
#faq-section .title-border { width: 5px; height: 26px; background-color: var(--color-primary); border-radius: 4px; }
#faq-section .section-title { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; color: var(--text-main); }
#faq-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

#faq-section .faq-container {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#faq-section .category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

#faq-section .faq-item {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-light);
}
#faq-section .faq-item:last-child { border-bottom: none; }

#faq-section .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

#faq-section .faq-question:hover .q-text { color: var(--color-primary); }

#faq-section .q-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    padding-right: 16px;
    line-height: 1.5;
}

#faq-section .icon-toggle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--text-main);
    position: relative;
    display: block;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#faq-section .icon-toggle::before,
#faq-section .icon-toggle::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

#faq-section .icon-toggle::before {
    width: 14px;
    height: 2px;
}

#faq-section .icon-toggle::after {
    width: 2px;
    height: 14px;
}

#faq-section .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#faq-section .faq-answer .answer-content {
    padding: 15px;
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
}

#faq-section .faq-answer .btn-copy{
    display: block;
    margin-top: 15px;
    margin-left: auto;
    margin-bottom: 15px;
    background-color: #000000;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
}

#faq-section .faq-item.active .q-text { font-weight: 700; }

#faq-section .faq-item.active .icon-toggle {
    background-color: #000000;
    color: #ffffff;
}

#faq-section .faq-item.active .icon-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

#gallery-section {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --color-primary: #f97316;
    --color-primary-rgb: 249, 115, 22;
    --border-light: #e5e7eb;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#gallery-section * { box-sizing: border-box; margin: 0; padding: 0; }

#gallery-section .section-header { margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
#gallery-section .title-border { width: 5px; height: 26px; background-color: var(--color-primary); border-radius: 4px; }
#gallery-section .section-title { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; color: var(--text-main); }
#gallery-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

#gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

#gallery-section .gallery-item {
    display: block;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

#gallery-section .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(249, 115, 22, 0.3);
}

#gallery-section .image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
}

#gallery-section .item-caption{
    padding: 15px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

#gallery-section .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#gallery-section .gallery-item:hover .image-wrapper img {
    transform: scale(1.05);
}

#gallery-section .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(249, 115, 22, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gallery-section .overlay i {
    color: #ffffff;
    font-size: 32px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

#gallery-section .gallery-item:hover .overlay {
    opacity: 1;
}

#gallery-section .gallery-item:hover .overlay i {
    transform: translateY(0);
}

/* 範圍限定：所有變數與樣式都鎖在 #member-dashboard-wrapper 內 */
#member-dashboard-wrapper {
    --primary-orange: #f97316;
    --primary-green: var(--orange-600);
    --gradient-header: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-gold: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    --bg-page: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --text-light: #9ca3af;
    --border-color: #f3f4f6;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
    box-sizing: border-box;

    /* --- 關鍵修改開始 --- */
    width: 100%;        /* 強制佔滿寬度 */
    max-width: 100%;    /* 移除原本的 800px 限制 */
    margin: 0;          /* 移除置中，填滿容器 */
    padding: 20px;      /* 保持內距，避免卡片貼死邊緣 (可依需求改為 0) */
    /* --- 關鍵修改結束 --- */
    
    color: var(--text-main);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    #member-dashboard-wrapper .member-card,
    #member-dashboard-wrapper .section-card,
    #member-dashboard-wrapper .promo-footer-card {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* 強制 reset，只影響此 ID 內部的元素 */
#member-dashboard-wrapper * {
    box-sizing: border-box;
}

/* 1. 頭部會員卡片 */
#member-dashboard-wrapper .member-card {
    background: var(--gradient-header);
    border-radius: 20px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 10px 20px rgba(132, 204, 22, 0.3);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#member-dashboard-wrapper .member-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

#member-dashboard-wrapper .card-left {
    display: flex;
    gap: 16px;
    align-items: center;
    z-index: 2;
}

#member-dashboard-wrapper .member-icon-box {
    width: 64px; height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    border: 1px solid rgba(255,255,255,0.3);
}

#member-dashboard-wrapper .member-text h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
}

#member-dashboard-wrapper .member-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

#member-dashboard-wrapper .card-right {
    text-align: right;
    z-index: 2;
}

#member-dashboard-wrapper .points-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 2px;
}

#member-dashboard-wrapper .points-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

#member-dashboard-wrapper .points-sub {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 12px;
}

#member-dashboard-wrapper .btn-shop {
    background: white;
    color: var(--primary-orange);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

#member-dashboard-wrapper .btn-shop:active { transform: scale(0.95); }

/* 2. 通用卡片區塊 */
#member-dashboard-wrapper .section-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

#member-dashboard-wrapper .text-orange { color: var(--primary-orange); }

/* 標題樣式 */
#member-dashboard-wrapper .card-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#member-dashboard-wrapper .title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

#member-dashboard-wrapper .title-with-icon h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

#member-dashboard-wrapper .date-tag {
    font-size: 12px;
    color: var(--text-sub);
}

/* 進度條區域 */
#member-dashboard-wrapper .progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

#member-dashboard-wrapper .progress-vals strong {
    color: var(--text-main);
    font-size: 15px;
}

#member-dashboard-wrapper .progress-track {
    background: #e5e7eb;
    height: 14px;
    border-radius: 7px;
    margin-bottom: 16px;
    overflow: hidden;
}

#member-dashboard-wrapper .progress-fill {
    background: var(--orange-400);
    height: 100%;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

#member-dashboard-wrapper .progress-text {
    font-size: 10px;
    color: white;
    font-weight: bold;
}

/* 黃色提示框 */
#member-dashboard-wrapper .info-box {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

#member-dashboard-wrapper .icon-fire {
    background: #f97316;
    color: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    border-bottom-right-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

#member-dashboard-wrapper .info-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
}

#member-dashboard-wrapper .info-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-sub);
}

#member-dashboard-wrapper .gold-text {
    color: #d97706;
    font-weight: bold;
    text-decoration: underline;
}

/* 3. 交易列表樣式 */
#member-dashboard-wrapper .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

#member-dashboard-wrapper .filter-tabs {
    display: flex;
    gap: 8px;
}

#member-dashboard-wrapper .tab {
    background: #f3f4f6;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-sub);
    cursor: pointer;
    font-weight: 600;
}

#member-dashboard-wrapper .tab.active {
    background: var(--primary-orange);
    color: white;
}

#member-dashboard-wrapper .transaction-list {
    display: flex;
    flex-direction: column;
}

#member-dashboard-wrapper .trans-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

#member-dashboard-wrapper .trans-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#member-dashboard-wrapper .item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#member-dashboard-wrapper .item-icon {
    width: 40px; height: 40px;
    background: #ffedd5;
    color: #ea580c;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

#member-dashboard-wrapper .item-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#member-dashboard-wrapper .tag-silver {
    background: #ffedd5;
    color: #c2410c;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
}

#member-dashboard-wrapper .item-date {
    font-size: 12px;
    color: var(--text-light);
}

#member-dashboard-wrapper .item-right {
    text-align: right;
}

#member-dashboard-wrapper .trans-label {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 2px;
}

#member-dashboard-wrapper .trans-amount {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-main);
}

#member-dashboard-wrapper .trans-points {
    font-size: 12px;
    color: #d97706;
    font-weight: 700;
}

#member-dashboard-wrapper .trans-status {
    font-size: 11px;
    color: var(--text-light);
}

/* 4. 底部廣告 */
#member-dashboard-wrapper .promo-footer-card {
    background: var(--gradient-gold);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fffbeb;
    position: relative;
    overflow: hidden;
}

#member-dashboard-wrapper .promo-footer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
}

#member-dashboard-wrapper .promo-content {
    flex: 1;
    z-index: 2;
    padding-right: 20px;
}

#member-dashboard-wrapper .promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

#member-dashboard-wrapper .promo-content h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: white;
}

#member-dashboard-wrapper .promo-desc ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

#member-dashboard-wrapper .promo-desc li { margin-bottom: 4px; }
#member-dashboard-wrapper .promo-desc strong { color: #fcd34d; }

#member-dashboard-wrapper .feature-list {
    display: flex;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    color: #d1d5db;
}

#member-dashboard-wrapper .btn-gold {
    background: #fbbf24;
    color: #78350f;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#member-dashboard-wrapper .promo-image {
    z-index: 2;
}

/* 模擬金卡視覺 */
#member-dashboard-wrapper .gold-card-visual {
    width: 160px; height: 100px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.4);
    transform: rotate(-5deg);
}

#member-dashboard-wrapper .card-chip {
    width: 24px; height: 18px;
    background: #d97706;
    border-radius: 4px;
    opacity: 0.6;
}

#member-dashboard-wrapper .card-logo {
    text-align: right;
    font-size: 10px;
    font-weight: bold;
    color: #78350f;
}

#member-dashboard-wrapper .card-lock {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.2);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
}

#member-dashboard-wrapper .card-text {
    font-size: 12px;
    font-weight: bold;
    color: #78350f;
    line-height: 1.2;
}

#member-dashboard-wrapper .card-text small {
    display: block;
    font-size: 8px;
    font-weight: normal;
    opacity: 0.8;
}

/* RWD 響應式 */
@media (max-width: 600px) {
    #member-dashboard-wrapper .member-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    #member-dashboard-wrapper .card-right {
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #member-dashboard-wrapper .btn-shop { width: 100%; }
    
    #member-dashboard-wrapper .promo-footer-card {
        flex-direction: column;
        align-items: flex-start;
    }
    #member-dashboard-wrapper .promo-image {
        margin-top: 20px;
        align-self: center;
    }
    #member-dashboard-wrapper .list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    #member-dashboard-wrapper .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    #member-dashboard-wrapper .tab { white-space: nowrap; }
}


/* 1. 範圍限定：所有樣式都鎖定在 #points-transfer-wrapper 內 */
#points-transfer-wrapper {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    
    /* 定義顏色變數，方便統一管理 */
    --main-orange: #f97316;       /* 指定主色 */
    --dark-orange: #ea580c;       /* 深一點的橘色 (用在漸層或Hover) */
    --shadow-orange: rgba(249, 115, 22, 0.4); /* 陰影顏色 */
    --light-orange-bg: rgba(249, 115, 22, 0.1); /* 輸入框聚焦背景 */
}

#points-transfer-wrapper * {
    box-sizing: border-box;
}

/* 2. 標題區域 */
#points-transfer-wrapper .page-header {
    margin-bottom: 30px;
    border-left: 5px solid var(--main-orange); /* 橘色裝飾線 */
    padding-left: 15px;
}

#points-transfer-wrapper .page-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

#points-transfer-wrapper .page-header .sub-text {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 3. 卡片主體樣式 (RWD 核心) */
#points-transfer-wrapper .transfer-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 4. 表單元素 */
#points-transfer-wrapper .form-group {
    margin-bottom: 25px;
}

#points-transfer-wrapper .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

#points-transfer-wrapper .form-group label i {
    margin-right: 8px;
    color: var(--main-orange); /* Icon 變橘色 */
}

#points-transfer-wrapper .form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

/* 輸入框聚焦時的效果 */
#points-transfer-wrapper .form-group input:focus {
    border-color: var(--main-orange);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px var(--light-orange-bg); /* 橘色光暈 */
}

#points-transfer-wrapper .balance-hint {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    text-align: right;
}

#points-transfer-wrapper .balance-hint span {
    color: var(--main-orange);
    font-weight: bold;
}

/* 5. 按鈕樣式 (橘色漸層) */
#points-transfer-wrapper .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--main-orange) 0%, var(--dark-orange) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#points-transfer-wrapper .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-orange); /* 橘色陰影 */
}

#points-transfer-wrapper .btn-submit:active {
    transform: translateY(0);
}

/* 6. RWD 手機版適配 */
@media (max-width: 600px) {
    #points-transfer-wrapper {
        padding: 15px;
    }
    
    #points-transfer-wrapper .transfer-card {
        padding: 25px 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    #points-transfer-wrapper .page-header h2 {
        font-size: 20px;
    }
}

#cockpit-dashboard-section {
    /* --- 色彩變數 (White & Orange Theme) --- */
    --bg-main: #f8fafc;        /* 整體背景：淺灰白 */
    --card-bg: #ffffff;        /* 大卡片背景：純白 */
    --panel-bg: #f9fafb;       /* 子面板背景：極淺灰 */
    
    --text-main: #1f2937;      /* 主要文字 */
    --text-sub: #6b7280;       /* 次要文字 */
    
    --border-light: #e5e7eb;   /* 淺灰邊框 */
    
    /* 核心橘色 (品牌色) */
    --color-primary: #f97316;  
    --color-primary-dark: #ea580c;
    
    /* 高級金 (用於黑卡/皇冠) - 調整為深金色以適應白底 */
    --color-gold: #d97706;     /* Amber 600 */
    --bg-gold-light: #fffbeb;  /* Amber 50 */
    
    /* 狀態色 */
    --color-green: var(--orange-500);    /* 成長/達成 */
    --bg-green-light: var(--orange-100);

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius-lg: 16px;
    --radius-md: 12px;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#cockpit-dashboard-section * { box-sizing: border-box; margin: 0; padding: 0; }

/* --- 標題區塊 --- */
#cockpit-dashboard-section .section-header { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
#cockpit-dashboard-section .title-border { width: 5px; height: 26px; background-color: var(--color-primary); border-radius: 4px; }
#cockpit-dashboard-section .section-title { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; color: var(--text-main); }
#cockpit-dashboard-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- 主卡片 --- */
#cockpit-dashboard-section .main-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
        background-size: cover;
    background-position: center;
}

/* 頂部裝飾光暈 (極淡的橘色) */
#cockpit-dashboard-section .main-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* --- 卡片頂部資訊 --- */
#cockpit-dashboard-section .profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 24px;
}

#cockpit-dashboard-section .profile-left {
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px 15px;
    border-radius: 15px;
}

#cockpit-dashboard-section .avatar-circle {
    width: 60px; height: 60px;
    /* 橘金色漸層背景 */
    background: linear-gradient(135deg, #fbbf24, #f97316);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    border: 3px solid #fff; /* 白框增加層次 */
}

#cockpit-dashboard-section .profile-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

#cockpit-dashboard-section .profile-left .card{
    width: 300px;
}

#cockpit-dashboard-section .profile-left .card img{
    width: 100%;
}

#cockpit-dashboard-section .status-tag {
    font-size: 12px;
    color: var(--color-gold); /* 深金色文字 */
    background-color: var(--bg-gold-light); /* 淺金底 */
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

#cockpit-dashboard-section .profile-right { 
    text-align: right; 
    
}

#cockpit-dashboard-section .profile-right .profile-right-content{
background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 15px;
    border-radius: 15px;
}

#cockpit-dashboard-section .id-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 4px;
}

#cockpit-dashboard-section .id-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* --- 儀表板網格 --- */
#cockpit-dashboard-section .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 子區塊樣式 */
#cockpit-dashboard-section .sub-panel {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s;
}

#cockpit-dashboard-section .sub-panel:hover {
    transform: translateY(-2px); /* 輕微互動 */
    border-color: #d1d5db;
}

/* --- 左側：進度條區塊 --- */
#cockpit-dashboard-section .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#cockpit-dashboard-section .panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

#cockpit-dashboard-section .badge-success {
    background-color: var(--bg-green-light);
    color: var(--color-green);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

#cockpit-dashboard-section .progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

#cockpit-dashboard-section .current-val {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
}

/* 進度條 */
#cockpit-dashboard-section .progress-track {
    width: 100%;
    height: 10px;
    background-color: #e5e7eb; /* 淺灰軌道 */
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

#cockpit-dashboard-section .progress-fill {
    height: 100%;
    /* 橘色漸層 */
    background: linear-gradient(90deg, #fb923c, #f97316);
    border-radius: 5px;
    width: 100%;
}

#cockpit-dashboard-section .progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-sub);
}

#cockpit-dashboard-section .percent-gain {
    color: var(--color-green);
    font-weight: 600;
}

/* --- 右側：預估收入區塊 --- */
#cockpit-dashboard-section .income-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-sub);
}

#cockpit-dashboard-section .icon-coin {
    color: var(--color-primary);
    background: rgba(249, 115, 22, 0.1);
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

#cockpit-dashboard-section .income-amount {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-main); /* 數字用深灰/黑，更穩重 */
    margin-bottom: 4px;
    line-height: 1.1;
    letter-spacing: -1px;
}

#cockpit-dashboard-section .income-sub {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 16px;
}

#cockpit-dashboard-section .growth-indicator {
    font-size: 13px;
    color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    background-color: rgba(249, 115, 22, 0.05); /* 極淡橘底 */
    padding: 6px 10px;
    border-radius: 8px;
    align-self: flex-start; /* 讓背景寬度自適應內容 */
}

/* --- RWD Media Queries --- */
@media (min-width: 768px) {
    #cockpit-dashboard-section .dashboard-grid {
        flex-direction: row;
    }
}

#marketing-tools-section {
    /* --- 色彩變數設定 (White & Orange Theme) --- */
    --bg-main: #f8fafc;        /* 整體背景：極淺灰藍/白 */
    --card-bg: #ffffff;        /* 卡片背景：純白 */
    
    --text-main: #1f2937;      /* 主要文字：深灰黑 */
    --text-sub: #6b7280;       /* 次要文字：中灰 */
    
    --color-primary: #f97316;  /* 主色：活力橘 */
    --color-primary-dark: #ea580c; /* 深橘色 (Hover用) */
    --bg-primary-dim: rgba(249, 115, 22, 0.1); /* 淺橘色背景 */
    
    --color-green: var(--orange-500);    /* 綠色 (用於數據增長) */
    --bg-input: #f3f4f6;       /* 輸入框背景：淺灰 */
    --border-light: #e5e7eb;   /* 淺灰邊框 */
    
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#marketing-tools-section * { box-sizing: border-box; margin: 0; padding: 0; }

/* 標題區域 */
#marketing-tools-section .section-header { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
#marketing-tools-section .title-border { width: 5px; height: 26px; background-color: var(--color-primary); border-radius: 4px; }
#marketing-tools-section .section-title { font-size: 22px; font-weight: 800; color: var(--text-main); display: flex; align-items: baseline; gap: 10px; }
#marketing-tools-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* 格線佈局 */
#marketing-tools-section .tools-grid { display: flex; flex-direction: column; gap: 24px; }

/* 卡片共用樣式 */
#marketing-tools-section .tool-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card); /* 增加陰影提升層次感 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#marketing-tools-section .tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

/* 卡片頭部 */
#marketing-tools-section .card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
#marketing-tools-section .icon-circle { 
    width: 44px; height: 44px; 
    border-radius: 12px; /* 改為圓角矩形更現代 */
    display: flex; align-items: center; justify-content: center; 
    font-size: 20px; 
    background-color: var(--bg-primary-dim); 
    color: var(--color-primary);
}
#marketing-tools-section .card-title { font-size: 17px; font-weight: bold; color: var(--text-main); }
#marketing-tools-section .card-title span { display: block; font-size: 12px; color: var(--text-sub); font-weight: normal; margin-top: 3px; }

/* URL 連結區塊 */
#marketing-tools-section .url-box {
    background-color: var(--bg-input);
    border: 1px dashed #d1d5db; /* 虛線邊框增加工具感 */
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 20px;
    word-break: break-all;
    font-weight: 500;
}

/* 按鈕樣式 (統一橘色) */
#marketing-tools-section .btn-action {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 24px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

#marketing-tools-section .btn-primary { 
    background-color: var(--color-primary); 
    color: #ffffff; 
}
#marketing-tools-section .btn-primary:hover { 
    background-color: var(--color-primary-dark); 
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.3);
}
#marketing-tools-section .btn-primary:active { transform: scale(0.98); }

/* 複製成功樣式 */
#marketing-tools-section .btn-action.copied {
    background-color: var(--color-green) !important;
    color: #ffffff !important;
    box-shadow: none;
}

/* 數據統計區 */
#marketing-tools-section .stats-container { margin-top: auto; }
#marketing-tools-section .stats-row { 
    display: flex; justify-content: space-between; align-items: center; 
    font-size: 14px; padding-top: 16px; 
}
#marketing-tools-section .border-top { 
    border-top: 1px solid var(--border-light); 
    margin-top: 8px; /* 調整間距 */
}

#marketing-tools-section .stats-label { color: var(--text-sub); }
#marketing-tools-section .stats-val { font-weight: 700; font-size: 16px; }
#marketing-tools-section .text-primary { color: var(--color-primary); }
#marketing-tools-section .text-green { color: var(--color-green); }

/* QR Code 卡片 */
#marketing-tools-section .qr-display-area { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
#marketing-tools-section .qr-bg { 
    background-color: #ffffff; 
    padding: 12px; 
    border: 1px solid var(--border-light); 
    border-radius: 16px; 
    width: 160px; height: 160px; 
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}
#marketing-tools-section .qr-bg img { width: 100%; height: 100%; object-fit: contain; }
#marketing-tools-section .code-label { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
#marketing-tools-section .code-value { font-size: 22px; font-weight: 800; color: var(--color-primary); letter-spacing: 1.5px; font-family: monospace; }

/* QR Code 卡片的按鈕距底部調整 */
#marketing-tools-section .qr-card .btn-action { margin-bottom: 0; }

@media (min-width: 768px) {
    #marketing-tools-section .tools-grid { flex-direction: row; align-items: stretch; }
}

#vip-selection-section {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --color-primary: #f97316;
    --border-light: #e5e7eb;
    --radius-lg: 16px;
    --shadow-card: 0 4px 20px rgba(0,0,0,0.05);
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 40px 20px;
}

#vip-selection-section * { box-sizing: border-box; margin: 0; padding: 0; }

#vip-selection-section .section-header { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
#vip-selection-section .title-border { width: 5px; height: 26px; background-color: var(--color-primary); border-radius: 4px; }
#vip-selection-section .section-title { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 10px; color: var(--text-main); }
#vip-selection-section .section-subtitle { font-size: 14px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

#vip-selection-section .vip-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    #vip-selection-section .vip-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    #vip-selection-section .vip-product-grid {
        grid-template-columns: 1fr;
    }
}

#vip-selection-section .vip-product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

#vip-selection-section .vip-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#vip-selection-section .vip-product-img {
    height: 180px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    position: relative;
}

#vip-selection-section .vip-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

#vip-selection-section .vip-product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#vip-selection-section .vip-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

#vip-selection-section .vip-product-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.5;
}

#vip-selection-section .vip-product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

#vip-selection-section .vip-product-price .currency {
    font-size: 0.9rem;
    color: #333;
}

#vip-selection-section .vip-product-price .points {
    font-size: 0.85rem;
    color: #8e44ad;
    background: rgba(142, 68, 173, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

#vip-selection-section .btn-buy {
    width: 100%;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#vip-selection-section .btn-buy:hover {
    background: #000;
}

/* VIP Theme Styles - 整合至 ui.css */

/* --- 通用設定：當套用主題時，讓子區塊背景透明，顯示底圖 --- */
#app-layout[class*="theme-"] #cockpit-dashboard-section,
#app-layout[class*="theme-"] #vip-selection-section,
#app-layout[class*="theme-"] #marketing-tools-section,
main[class*="theme-"] #dashboard-container {
    background-color: transparent;
    --bg-main: transparent; /* 覆寫區塊內的變數 */
}

/* 確保內容區域容器也是透明 */
#app-layout[class*="theme-"] #main-content,
main[class*="theme-"] .dashboard-container {
    background: transparent;
}

/* =========================================
   1. 黑色主題 (bg4) - Black / Dark Mode
   ========================================= */
#app-layout.theme-black {
    background-image: url('https://www.lezonemall.com/image/vip/bg4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 針對 tier-status 頁面的容器設定 */
main.theme-black {
    background-image: url('https://www.lezonemall.com/image/vip/bg4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 強制覆寫各區塊變數 (權重較高) */
#app-layout.theme-black #cockpit-dashboard-section,
#app-layout.theme-black #vip-selection-section,
#app-layout.theme-black #marketing-tools-section,
main.theme-black {
    --card-bg: rgba(20, 20, 20, 0.75);     /* 卡片：深黑半透明 */
    --panel-bg: rgba(255, 255, 255, 0.08); /* 子面板：微亮半透明 */
    --bg-input: rgba(255, 255, 255, 0.1);  /* 輸入框：微亮半透明 */
    
    --text-main: #ffffff;                  /* 主文字：白 */
    --text-sub: #d1d5db;                   /* 次文字：淺灰 */
    
    --border-light: rgba(255, 255, 255, 0.15); /* 邊框：微白 */
    
    --color-primary: #fb923c;              /* 主色：亮橘 */
    --bg-primary-dim: rgba(251, 146, 60, 0.2); /* 主色背景淡化 */
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6); /* 深邃陰影 */
}

/* Sidebar 樣式調整 */
#app-layout.theme-black #sidebar {
    background-color: rgba(0, 0, 0, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
#app-layout.theme-black .sidebar-header {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
#app-layout.theme-black .sidebar-header .subtitle { color: #9ca3af; }
#app-layout.theme-black .nav-item { color: #d1d5db; }
#app-layout.theme-black .nav-item:hover,
#app-layout.theme-black .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fb923c;
}
#app-layout.theme-black .nav-divider { background-color: rgba(255, 255, 255, 0.1); }

/* 特定元素微調：確保標題與價格在深色背景清晰 */
#app-layout.theme-black .vip-product-title,
#app-layout.theme-black .card-title,
#app-layout.theme-black .section-title { color: #ffffff !important; }
#app-layout.theme-black .vip-product-desc { color: #d1d5db !important; }
#app-layout.theme-black .vip-product-price .currency { color: #ffffff !important; }

/* tier-status 頁面卡片強制覆寫 (因為原本寫在 style tag 權重較高) */
main[class*="theme-"] .main-card,
main[class*="theme-"] .challenge-card,
main[class*="theme-"] .history-card,
main[class*="theme-"] .promo-card {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-card) !important;
}

main[class*="theme-"] .profile-info h3,
main[class*="theme-"] .item-desc .item-title,
main[class*="theme-"] .item-right .amount,
main[class*="theme-"] .card-header h3,
main[class*="theme-"] h5 { /* 針對標題 "會員成長計畫" */
    color: var(--text-main) !important;
}

/* --- Tier Status 頁面細部元件強制覆寫 --- */

/* 1. 文字顏色修正 */
main[class*="theme-"] .points-info .points,
main[class*="theme-"] .progress-labels .numbers,
main[class*="theme-"] .item-right .points-gain,
main[class*="theme-"] .gold-text,
main[class*="theme-"] .highlight {
    color: var(--color-primary) !important;
}

main[class*="theme-"] .points-info .label,
main[class*="theme-"] .points-info .points-sub,
main[class*="theme-"] .status-tag,
main[class*="theme-"] .item-desc .item-date,
main[class*="theme-"] .item-right .label,
main[class*="theme-"] .item-right .status-pending,
main[class*="theme-"] .card-header .date,
main[class*="theme-"] .progress-labels,
main[class*="theme-"] .alert-text p,
main[class*="theme-"] .promo-text p,
main[class*="theme-"] .benefits li {
    color: var(--text-sub) !important;
}

main[class*="theme-"] .promo-text h2,
main[class*="theme-"] .alert-text strong,
main[class*="theme-"] .history-header h3 {
    color: var(--text-main) !important;
}

/* 2. 背景與邊框修正 (Tabs, AlertBox, DateTag) */
main[class*="theme-"] .card-header .date,
main[class*="theme-"] .tabs button,
main[class*="theme-"] .alert-box {
    background-color: var(--bg-input) !important;
    color: var(--text-sub) !important;
    border: 1px solid var(--border-light) !important;
}

main[class*="theme-"] .tabs button.active {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}

main[class*="theme-"] .history-item {
    border-bottom-color: var(--border-light) !important;
}

/* 儀表板特定調整 */
#app-layout.theme-black #cockpit-dashboard-section .profile-left {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#app-layout.theme-black #cockpit-dashboard-section .icon-coin {
    background: rgba(255, 255, 255, 0.1);
}


/* =========================================
   2. 金色主題 (bg3) - Gold / Luxury
   ========================================= */
#app-layout.theme-gold {
    background-image: url('https://www.lezonemall.com/image/vip/bg3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

main.theme-gold {
    background-image: url('https://www.lezonemall.com/image/vip/bg3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#app-layout.theme-gold #cockpit-dashboard-section,
#app-layout.theme-gold #vip-selection-section,
#app-layout.theme-gold #marketing-tools-section,
main.theme-gold {
    --card-bg: rgba(255, 255, 255, 0.75);  /* 卡片：白底半透明 */
    --panel-bg: rgba(255, 255, 255, 0.5);
    --bg-input: rgba(255, 255, 255, 0.6);
    
    --text-main: #422006;                  /* 主文字：深棕 */
    --text-sub: #92400e;                   /* 次文字：淺棕 */
    
    --border-light: rgba(146, 64, 14, 0.2);
    
    --color-primary: #d97706;              /* 主色：金橘 */
    --bg-primary-dim: rgba(217, 119, 6, 0.1);
    
    --shadow-card: 0 8px 32px rgba(146, 64, 14, 0.15);
}

/* Sidebar */
#app-layout.theme-gold #sidebar {
    background-color: rgba(255, 255, 255, 0.9);
    border-right: 1px solid rgba(146, 64, 14, 0.15);
}
#app-layout.theme-gold .sidebar-header {
    color: #422006;
    border-bottom-color: rgba(146, 64, 14, 0.15);
}
#app-layout.theme-gold .nav-item { color: #78350f; }
#app-layout.theme-gold .nav-item:hover,
#app-layout.theme-gold .nav-item.active {
    background-color: rgba(251, 191, 36, 0.2);
    color: #92400e;
}


/* =========================================
   3. 銀色主題 (bg2) - Silver / Modern
   ========================================= */
#app-layout.theme-silver {
    background-image: url('https://www.lezonemall.com/image/vip/bg2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

main.theme-silver {
    background-image: url('https://www.lezonemall.com/image/vip/bg2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#app-layout.theme-silver #cockpit-dashboard-section,
#app-layout.theme-silver #vip-selection-section,
#app-layout.theme-silver #marketing-tools-section,
main.theme-silver {
    --card-bg: rgba(255, 255, 255, 0.65);  /* 卡片：更通透的白 */
    --panel-bg: rgba(243, 244, 246, 0.6);
    --bg-input: rgba(255, 255, 255, 0.8);
    
    --text-main: #111827;                  /* 主文字：深灰黑 */
    --text-sub: #4b5563;                   /* 次文字：灰 */
    
    --border-light: rgba(209, 213, 219, 0.5);
    
    --color-primary: #f97316;
    --bg-primary-dim: rgba(249, 115, 22, 0.1);
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
#app-layout.theme-silver #sidebar {
    background-color: rgba(255, 255, 255, 0.85);
    border-right: 1px solid #e5e7eb;
}


/* =========================================
   4. 白色主題 (bg1) - White / Clean
   ========================================= */
#app-layout.theme-white {
    background-image: url('https://www.lezonemall.com/image/vip/bg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

main.theme-white {
    background-image: url('https://www.lezonemall.com/image/vip/bg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#app-layout.theme-white #cockpit-dashboard-section,
#app-layout.theme-white #vip-selection-section,
#app-layout.theme-white #marketing-tools-section,
main.theme-white {
    --card-bg: #ffffff;                    /* 卡片：純白 */
    --panel-bg: #f9fafb;
    --bg-input: #f3f4f6;
    
    --text-main: #1f2937;
    --text-sub: #6b7280;
    
    --border-light: #e5e7eb;
    
    --color-primary: #f97316;
    --bg-primary-dim: rgba(249, 115, 22, 0.1);
    
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Sidebar */
#app-layout.theme-white #sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
}


/* =========================================
    Home Page Styles (Moved from home.blade.php)
   ========================================= */

/* Scoped CSS for #home_717 */
#home_717 {
    color: #333;
    overflow-x: hidden;
}

#home_717 .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

#home_717 .flat-spacing {
    padding: 80px 0;
}

#home_717 .gray-bg, #home_717 .bg-light {
    background-color: #f9f9f9;
}

#home_717 .sect-title {
    text-align: center;
    margin-bottom: 50px;
}

#home_717 .sect-title .title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Banner Item */
#home_717 .banner-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 400px;
}

#home_717 .banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#home_717 .banner-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 2;
}

#home_717 .banner-title {
    font-size: 42px;
    font-weight: 700;
    margin: 15px 0;
}

#home_717 .shop-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    color: #fff;
    background-color: var(--main-color);
    border-color: var(--main-color);
}

/* Product Card */
#home_717 .product-card .img-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
}

#home_717 .product-card .img-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#home_717 .product-card img {
    width: 100%;
    transition: 0.5s;
}

#home_717 .product-card:hover img { transform: scale(1.05); }
#home_717 .info-box .name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
#home_717 .info-box .price { 
    font-weight: 700;
    color: #cd0000;
    font-size: 1.5rem;
}
#home_717 .info-box .price .text-muted{
    font-size: 1rem;
    text-decoration: line-through;
    margin-right: 2.5px;
}

/* Blog Item */
#home_717 .blog-img { position: relative; margin-bottom: 20px; }
#home_717 .blog-img .date {
    position: absolute; top: 0; left: 0;
    background: #000; color: #fff;
    padding: 5px 15px; font-size: 12px; z-index: 1;
}

/* Slick 客製化樣式 */
#home_717 .slick-dots { bottom: -40px; }
#home_717 .slick-dots li button:before {
    font-size: 12px;
    color: var(--gray, #ccc);
    opacity: 1;
}
#home_717 .slick-dots li.slick-active button:before {
    color: var(--main-color, #e60012);
}

/* 跑馬燈 */
.slick-partner .slick-track {
    display: flex;
    align-items: center;
    transition-timing-function: linear !important;
}
.slick-partner .item { margin: 0 30px; }
.slick-partner img { height: 60px; filter: grayscale(100%); opacity: 0.5; }


/* 優惠商品客製化區域 */
#home_717 .discount-custom-card {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #eee;
}

/* 40% 產品區域 */
#home_717 .discount-custom-card .product-part {
    flex: 0 0 40%; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

#home_717 .discount-custom-card .product-part a{
        aspect-ratio: 1 / 1;
}

#home_717 .discount-custom-card .product-part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#home_717 .discount-custom-card .product-part .name {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px;
}

#home_717 .discount-custom-card .product-part .price {
    font-weight: 700;
    margin-bottom: 0;
    color: #cd0000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

#home_717 .discount-custom-card .product-part .price .text-muted{
    font-size: 1rem;
    text-decoration: line-through;
    margin-right: 2.5px;
}

/* 60% 評論區域 */
#home_717 .discount-custom-card .review-part {
    flex: 0 0 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#home_717 .discount-custom-card .quote-box {
    width: 32px;
    height: 32px;
    background: var(--main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 15px;
}

#home_717 .discount-custom-card .rtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

#home_717 .discount-custom-card .rtext {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

#home_717 .discount-custom-card .ruser {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

#home_717 .discount-custom-card .uname {
    font-weight: 700;
    font-size: 15px;
}

#home_717 .discount-custom-card .v-icon {
    color: #28a745;
    margin-left: 8px;
    font-size: 14px;
}

#home_717 .discount-custom-card .rstars {
    color: #ffc107;
    font-size: 12px;
    letter-spacing: 2px;
}

/* 手機版 RWD (768px以下) */
@media (max-width: 768px) {
    #home_717 .discount-custom-card {
        flex-direction: column;
    }
    #home_717 .discount-custom-card .product-part,
    #home_717 .discount-custom-card .review-part {
        flex: 0 0 100%;
        border-right: none;
    }
    #home_717 .discount-custom-card .product-part {
        border-bottom: 1px solid #f0f0f0;
    }
}

/* RWD 修正 */
@media (max-width: 1024px) {
    #home_717 .product-grid { display: flex; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    #home_717 .flat-spacing { padding: 40px 0; }
    #home_717 .banner-item { height: 300px; }
    #home_717 .banner-title { font-size: 30px; }
    #home_717 .row.slick-initialized { display: block; margin: 0; }
    #home_717 .slick-partner img { height: 40px; }
}


/*_______________*/

.tool_area .tool_nav .nav-item {
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}