@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #d4af37;
    /* Gold */
    --primary-hover: #b5952f;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(212, 175, 55, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

button {
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 2px;
}

.btn:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* Login Page */
.login-body {
    background-image: url('login_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 60px;
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease-out;
}

.login-logo {
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
}

.nav-links li a {
    display: block;
    padding: 15px 30px;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.main-content {
    flex: 1;
    padding: 60px;
    overflow-y: auto;
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

/* Cards */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.card:hover {
    border-color: var(--primary-color);
}

.price-tag {
    font-size: 2rem;
    color: #fff;
    margin: 20px 0;
    font-family: 'Cinzel', serif;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Billing Table */
.billing-controls {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

select {
    padding: 10px 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: #fff;
    cursor: pointer;
}

.billing-summary {
    background: rgba(212, 175, 55, 0.05);
    padding: 30px;
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-amount {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
}

.invoice-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.invoice-details th,
.invoice-details td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.invoice-details th {
    color: var(--text-muted);
    font-weight: normal;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Settings */
.license-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Copy Trade Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.plan-card.featured::before {
    content: '推奨';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: bold;
}

.plan-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.plan-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-banner a {
    color: var(--primary-color);
}

.cookie-banner .btn {
    white-space: nowrap;
    padding: 10px 25px;
    font-size: 0.82rem;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 20px 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-logo {
        margin-bottom: 20px;
    }

    .nav-links {
        display: flex;
        overflow-x: auto;
        padding: 0 15px;
    }

    .nav-links li a {
        padding: 10px 20px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .main-content {
        padding: 30px 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .billing-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}