:root {
    --clr-bg: #0d0d0d;
    --clr-surface: #1a1a1a;
    --clr-border: #2a2a2a;
    --clr-accent: #e8c547;
    --clr-accent-dark: #b8972e;
    --clr-text-primary: #f0f0f0;
    --clr-text-muted: #888888;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Actor', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--clr-bg); color: var(--clr-text-primary); font-family: 'Actor', sans-serif; }

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-left a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
#logo { height: 45px; }
#nav-left-text { font-size: 24px; font-weight: bold; color: var(--clr-text-primary); }
.nav-center { display: flex; gap: 28px; }
.nav-center a { color: var(--clr-text-primary); text-decoration: none; font-size: 15px; }
.nav-center a:hover, .nav-center a.active { color: var(--clr-accent); font-weight: bold; }
.nav-right { display: flex; gap: 15px; align-items: center; }
.nav-right button { background: none; border: none; cursor: pointer; display: flex; align-items: center; padding: 0; }
.right-icon { height: 35px; width: 35px; cursor: pointer; }

/* ===== NAVBAR DROPDOWN ===== */
.dropdown-container {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 35px;
    height: 35px;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 2.5px;
    background-color: var(--clr-text-primary);
    border-radius: 2px;
    position: absolute;
    transition: transform 300ms ease, opacity 300ms ease;
}

.line-1 {
    top: 6px;
    transform: translateY(0) rotate(0deg);
}

.line-2 {
    top: 16px;
    opacity: 1;
    transform: translateX(0) scaleX(1);
}

.line-3 {
    top: 26px;
    transform: translateY(0) rotate(0deg);
}

.dropdown-container.open .line-1 {
    transform: translateY(10px) rotate(45deg);
}

.dropdown-container.open .line-2 {
    opacity: 0;
    transform: translateX(10px) scaleX(0);
}

.dropdown-container.open .line-3 {
    transform: translateY(-10px) rotate(-45deg);
}

.hamburger-btn:hover .hamburger-line {
    background-color: var(--clr-accent);
}

.navbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    z-index: 999;
    overflow: hidden;
}

.dropdown-container.open .navbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-item {
    width: 100%;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--clr-text-primary);
    transition: background-color 180ms ease, color 180ms ease;
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--clr-border);
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background-color: rgba(232, 197, 71, 0.15);
    color: var(--clr-accent);
    outline: none;
}

.dropdown-item:active {
    transform: scale(0.98);
}

/* ===== LAYOUT ===== */
.account-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    margin-bottom: 32px;
}
.avatar {
    background: white;
    color: #111;
    font-size: 28px;
    font-weight: bold;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-info h1 { font-size: 24px; margin-bottom: 4px; }
.profile-info p { color: #aaa; font-size: 14px; margin-bottom: 8px; }
.member-badge {
    background: #333;
    color: #ccc;
    font-size: 12px;
    padding: 4px 10px;
    letter-spacing: 0.5px;
}
.edit-btn {
    margin-left: auto;
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}
.edit-btn:hover { background: white; color: #111; }

/* ===== GRID ===== */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ===== SECTIONS ===== */
.account-section {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 28px;
}
.account-section h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-primary);
}

/* ===== ORDER TABLE ===== */
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.order-table th {
    text-align: left;
    font-weight: normal;
    color: var(--clr-text-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
}
.order-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-primary);
}
.order-table tbody tr:last-child td { border-bottom: none; }

.status { padding: 3px 10px; font-size: 12px; letter-spacing: 0.5px; }
.status.delivered { background: #e6f4ea; color: #2d7a3a; }
.status.shipped { background: #e8f0fe; color: #1a56cc; }
.status.processing { background: #fff4e5; color: #b45309; }

/* ===== ADDRESSES ===== */
.address-cards { display: flex; gap: 16px; }
.address-card {
    border: 1px solid var(--clr-border);
    padding: 16px;
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: var(--clr-text-muted);
}
.address-tag {
    display: inline-block;
    background: var(--clr-accent);
    color: var(--clr-bg);
    font-size: 11px;
    padding: 2px 8px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== PAYMENT METHODS ===== */
.payment-cards { display: flex; flex-direction: column; gap: 12px; }
.payment-card {
    border: 1px solid var(--clr-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--clr-text-primary);
}
.card-brand {
    background: #111;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    letter-spacing: 1px;
}
.card-brand.mc { background: #eb001b; }
.card-expiry { margin-left: auto; color: var(--clr-text-muted); font-size: 13px; }

/* ===== SETTINGS ===== */
.settings-list { list-style: none; font-size: 14px; }
.settings-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--clr-border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-primary);
}
.settings-list li:last-child { border-bottom: none; color: #cc0000; }
.settings-list li:hover { color: var(--clr-accent); }
.setting-value {
    background: var(--clr-border);
    padding: 2px 10px;
    font-size: 12px;
    color: var(--clr-text-muted);
}
