/*
 * JOY Ambient SRL — My Account Page Styles
 * Adaptat din AAM Good Shopping, cu paleta teal JOY Ambient
 * Incarcat pe: is_page_template('page-contul-meu.php') sau is_account_page()
 */


/* ─── ASTRA RESET ─── */
body.joy-dark-account {
    background: #0a1a17;
}

body.joy-dark-account .site-content,
body.joy-dark-account .site-content .ast-container,
body.joy-dark-account #primary,
body.joy-dark-account #content {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.woocommerce .col2-set,
.woocommerce-page .col2-set,
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

:root {
    --bg-primary: #0a1a17;
    --bg-secondary: #0f2925;
    --bg-card: #142d29;
    --bg-card-hover: #1a3f39;
    --teal-deep: #0f766e;
    --teal-main: #0d9488;
    --teal-light: #2dd4bf;
    --green-accent: #16a34a;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-subtle: rgba(13, 148, 136, 0.12);
    --border-active: rgba(13, 148, 136, 0.35);
    --gradient-teal: linear-gradient(135deg, #0f766e, #14b8a6);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.joy-page-wrapper {
    min-height: 80vh;
    padding: 140px 20px 80px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--bg-primary);
    font-family: var(--font-main);
    color: var(--text-primary);
}

.joy-page-wrapper .bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(13, 148, 136, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 148, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.joy-page-wrapper .bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.joy-page-wrapper .bg-orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(13, 148, 136, 0.07);
    top: -100px;
    right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

.joy-page-wrapper .bg-orb--2 {
    width: 400px;
    height: 400px;
    background: rgba(22, 163, 74, 0.04);
    bottom: 10%;
    left: -150px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.15s ease;
    will-change: transform;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--teal-main);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-wrapper-inner {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.auth-wrapper-inner.auth-wide {
    max-width: 1200px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.joy-page-wrapper .woocommerce-form {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.joy-page-wrapper .woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.joy-page-wrapper .woocommerce-form-row label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.joy-page-wrapper .input-text {
    width: 100%;
    background: rgba(15, 41, 37, 0.6) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem !important;
    font-family: var(--font-main);
}

.joy-page-wrapper .input-text:focus {
    border-color: var(--teal-main) !important;
    background: rgba(13, 148, 136, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.joy-page-wrapper .woocommerce-button,
.joy-page-wrapper .btn--primary {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--gradient-teal) !important;
    color: white !important;
    border: none !important;
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all var(--transition-smooth) !important;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3) !important;
}

.joy-page-wrapper .woocommerce-button:hover,
.joy-page-wrapper .btn--primary:hover {
    box-shadow: 0 8px 40px rgba(13, 148, 136, 0.4) !important;
    transform: translateY(-2px);
}

.joy-page-wrapper .woocommerce-LostPassword,
.joy-page-wrapper .woocommerce-form-login__rememberme {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.joy-page-wrapper .woocommerce-LostPassword {
    float: right;
    color: var(--teal-light);
    transition: color 0.3s;
}

.joy-page-wrapper .woocommerce-LostPassword:hover {
    color: var(--teal-main);
}

.auth-switcher {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.switch-link {
    color: var(--teal-light);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 5px;
    transition: color 0.3s;
}

.switch-link:hover {
    color: var(--teal-main);
}

.fade-in-form {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.joy-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .joy-dashboard {
        grid-template-columns: 1fr;
    }
}

.joy-side {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

@media (max-width: 900px) {
    .joy-side {
        position: static;
    }
}

.joy-userchip {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(13, 148, 136, 0.05);
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.joy-userchip .name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.joy-userchip .email {
    color: var(--text-secondary);
    font-size: .85rem;
    margin-top: 4px;
}

.joy-acc-nav {
    display: grid;
    gap: 8px;
}

.joy-acc-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.joy-acc-nav a:hover {
    color: var(--text-primary);
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--border-subtle);
    transform: translateX(4px);
}

.joy-acc-nav a.active {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--border-active);
    color: var(--text-primary);
}

.joy-acc-nav a.joy-acc-logout {
    margin-top: 10px;
    color: #EF4444;
}

.joy-acc-nav a.joy-acc-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.joy-acc-nav a.joy-acc-logout .joy-pill {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.joy-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.joy-pill.gold {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--border-active);
    color: var(--teal-light);
}

.joy-main {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.joy-section-title-wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.joy-section-title-wrap h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.joy-section-title-wrap p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.joy-msg {
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.joy-msg.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.joy-msg.success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.3);
    color: #6EE7B7;
}

.joy-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 720px) {
    .joy-grid-2 {
        grid-template-columns: 1fr;
    }
}

.joy-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-smooth);
}

.joy-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.joy-kv {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.joy-kv:last-child {
    border-bottom: 0;
}

.joy-kv .k {
    color: var(--text-secondary);
    font-size: .92rem;
}

.joy-kv .v {
    color: var(--text-primary);
    font-weight: 600;
}

.joy-orders {
    display: grid;
    gap: 16px;
}

.joy-order {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

.joy-order:hover {
    border-color: var(--border-active);
}

.joy-order summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.joy-order summary::-webkit-details-marker {
    display: none;
}

.joy-order .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-secondary);
    font-size: .85rem;
    margin-top: 4px;
}

.joy-order .body {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    padding-top: 16px;
}

.joy-order .items {
    display: grid;
    gap: 10px;
}

.joy-order .item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
}

.joy-order .item .n {
    color: var(--text-primary);
    font-weight: 600;
}

.joy-order .item .p {
    color: var(--teal-light);
}

.joy-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.joy-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-main);
    background: transparent;
    border: 1px solid var(--border-active);
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.joy-btn-inline:hover {
    background: rgba(13, 148, 136, 0.08);
    border-color: var(--teal-main);
    transform: translateY(-2px);
}

.joy-btn-inline.gold {
    background: var(--gradient-teal);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.joy-btn-inline.gold:hover {
    box-shadow: 0 6px 25px rgba(13, 148, 136, 0.35);
}

.joy-tab-pane {
    animation: joySlide .3s ease forwards;
    opacity: 0;
}

@keyframes joySlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WooCommerce Native Elements */
.woocommerce-order>p,
.woocommerce-order>p.order-info {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 20px !important;
    color: #F1F5F9 !important;
    font-size: 1.05rem !important;
    margin-bottom: 32px !important;
    line-height: 1.7 !important;
}

.woocommerce-order>p mark,
.woocommerce-order>p .order-number,
.woocommerce-order>p .order-date,
.woocommerce-order>p .order-status,
mark.order-number,
mark.order-date,
mark.order-status {
    background-color: transparent !important;
    background: transparent !important;
    color: #F1F5F9 !important;
    padding: 0 !important;
    font-weight: 700 !important;
}

h2.woocommerce-order-details__title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    color: var(--text-primary) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    background: transparent !important;
}

table.shop_table,
.woocommerce table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 2rem !important;
    background: transparent !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
}

table.shop_table th,
table.shop_table td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 16px 20px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: var(--text-primary) !important;
    vertical-align: middle !important;
    background: transparent !important;
}

table.shop_table tr,
table.shop_table tr:nth-child(even),
table.shop_table tr:nth-child(odd),
.woocommerce table.shop_table tbody tr:nth-child(2n) {
    background-color: transparent !important;
}

table.shop_table thead th,
.woocommerce table.shop_table thead th {
    background: rgba(36, 36, 43) !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

table.shop_table tbody td.product-name,
table.shop_table tbody td.product-name a {
    color: var(--teal-light) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

table.shop_table tbody td.product-name a:hover {
    color: var(--teal-main) !important;
}

table.shop_table tbody td.product-name strong.product-quantity {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

table.shop_table tfoot th,
table.shop_table tfoot td {
    background: rgba(255, 255, 255, 0.01) !important;
}

table.shop_table tfoot th {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}

table.shop_table tfoot td {
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    color: var(--green-accent) !important;
}

table.shop_table tfoot tr:last-child th,
table.shop_table tfoot tr:last-child td {
    border-bottom: none !important;
}

table.shop_table tfoot tr:has(.order-actions-button),
table.shop_table tfoot tr:has(a.invoice) {
    display: none !important;
}

.woocommerce-customer-details {
    margin-top: 2rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-customer-details h2,
.woocommerce-customer-details h3,
.woocommerce-customer-details .woocommerce-column__title {
    background: rgba(36, 36, 43) !important;
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.woocommerce-customer-details address {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid var(--border-subtle) !important;
    border-top: none !important;
    padding: 20px !important;
    font-style: normal !important;
    color: var(--text-primary) !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
}

.woocommerce-customer-details address p {
    color: var(--text-primary) !important;
    margin: 0 !important;
}

.woocommerce-customer-details .woocommerce-columns,
.woocommerce-customer-details .col2-set {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce-customer-details .woocommerce-column,
.woocommerce-customer-details .col-1,
.woocommerce-customer-details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
