/* ============================================
   RENABEL CONCEPT — My Account Page
   ============================================ */

:root {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --bg-dark: #0B0F19;
    --panel-bg: rgba(26, 32, 54, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --font-main: 'DM Sans', sans-serif;
    --font-display: 'Sora', sans-serif;
}

/* === LAYOUT GENERAL === */
.rnb-page-wrap {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.rnb-bg-glow {
    position: fixed; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(100px); pointer-events: none; z-index: 0; opacity: 0.15;
}
.glow-1 { background: var(--primary); top: -10%; left: -10%; }
.glow-2 { background: #3B82F6; bottom: -10%; right: -10%; }

.rnb-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10;
}

/* Inline SVG Icons */
.rnb-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* === AUTH STYLES === */
.rnb-auth-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; min-height: 600px; align-items: stretch;
}

.rnb-auth-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 4rem;
    display: flex; flex-direction: column; justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s;
}
.rnb-auth-panel:hover { border-color: rgba(245, 158, 11, 0.3); }

.rnb-hero-panel {
    background: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&q=80') center/cover;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem;
}
.rnb-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, #0B0F19 10%, rgba(11, 15, 25, 0.4) 100%);
}

.auth-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

/* Inputs & Forms */
.rnb-form-group { margin-bottom: 1.5rem; }
.rnb-label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.rnb-input {
    width: 100%; background: rgba(11, 15, 25, 0.5); border: 1px solid var(--border-light);
    padding: 1rem; border-radius: 12px; color: #fff; outline: none; transition: 0.3s; font-family: var(--font-main);
}
.rnb-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }

.rnb-btn {
    width: 100%; padding: 1rem; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000; font-weight: 700; font-family: var(--font-display);
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.rnb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2); }

.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch span { color: var(--primary); cursor: pointer; font-weight: 700; text-decoration: underline; }

.rnb-alert {
    padding: 1rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.rnb-alert.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

/* === DASHBOARD STYLES === */
.dashboard-grid {
    display: grid; grid-template-columns: 280px 1fr; gap: 3rem;
}

.dash-sidebar {
    background: var(--panel-bg); border: 1px solid var(--border-light);
    border-radius: 20px; padding: 2rem; height: fit-content;
}

.user-profile-mini {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}
.user-avatar {
    width: 50px; height: 50px; background: var(--primary); color: #000;
    border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.user-info h4 { margin: 0; color: #fff; font-size: 1rem; }
.user-info span { font-size: 0.8rem; color: var(--text-muted); }

.dash-menu { list-style: none; padding: 0; margin: 0; }
.dash-menu li { margin-bottom: 0.5rem; }
.dash-menu a {
    display: flex; align-items: center; gap: 12px; padding: 1rem;
    border-radius: 12px; color: var(--text-muted); text-decoration: none;
    transition: 0.3s; font-weight: 500;
}
.dash-menu a:hover, .dash-menu a.active {
    background: rgba(245, 158, 11, 0.1); color: var(--primary);
}
.dash-menu a.logout { color: #ef4444; }
.dash-menu a.logout:hover { background: rgba(239, 68, 68, 0.1); }

.dash-content {
    background: var(--panel-bg); border: 1px solid var(--border-light);
    border-radius: 24px; padding: 3rem; min-height: 600px;
}

.section-title { font-size: 1.8rem; font-family: var(--font-display); color: #fff; margin-bottom: 2rem; border-left: 4px solid var(--primary); padding-left: 1rem; }

/* WOOCOMMERCE CLEANUP */

/* Hide duplicate titles */
.woocommerce-MyAccount-content > h2:first-child,
.woocommerce-MyAccount-content > h3:first-child,
.woocommerce-EditAccountForm > h3,
.woocommerce-Address-title h3 { display: none !important; }

/* Form rows */
.woocommerce-form-row { margin-bottom: 1.5rem !important; }
.woocommerce-form-row label { display: block; color: var(--text-muted); margin-bottom: 0.5rem; }

.woocommerce-Input {
    width: 100%; background: #0f172a !important; border: 1px solid var(--border-light) !important;
    padding: 1rem !important; border-radius: 12px !important; color: white !important; outline: none;
    font-family: var(--font-main) !important; height: auto !important;
}
.woocommerce-Input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(245,158,11,0.1); }

/* Internal buttons */
.woocommerce-Button {
    background: var(--primary) !important; color: #000 !important; border-radius: 10px !important;
    padding: 1rem 2rem !important; font-weight: 700 !important; border: none !important;
    cursor: pointer; transition: 0.3s !important; margin-top: 1rem !important;
}
.woocommerce-Button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(245,158,11,0.3); }

/* Addresses Grid */
.u-columns.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.u-column1, .u-column2 { width: 100% !important; margin: 0 !important; padding: 0 !important; }

/* Address Card */
.woocommerce-Address {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}

.woocommerce-Address address { font-style: normal; color: var(--text-muted); line-height: 1.6; }

/* Address edit link */
.woocommerce-Address-title .edit {
    position: absolute; top: 2rem; right: 2rem;
    color: var(--primary); font-size: 0.9rem; font-weight: 700; text-decoration: none;
}
.woocommerce-Address-title .edit:hover { text-decoration: underline; }

/* Pseudo-titles for addresses */
.u-column1 .woocommerce-Address::before { content: 'Facturare'; display: block; color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; font-family: var(--font-display); }
.u-column2 .woocommerce-Address::before { content: 'Livrare'; display: block; color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; font-family: var(--font-display); }

/* Fieldsets (Change Password) */
fieldset {
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    background: rgba(0,0,0,0.2);
}
legend {
    color: var(--primary);
    padding: 0 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .rnb-auth-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .rnb-hero-panel { display: none; }
    .u-columns.woocommerce-Addresses { grid-template-columns: 1fr; }
}
