/* ══════════════════════════════════════════
   FUTURISTIC ACCOUNT DASHBOARD
   ══════════════════════════════════════════ */

/* ── Layout ── */
.ep-dash {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: 600px;
    position: relative;
}

/* ── Sidebar ── */
.ep-dash__sidebar {
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.1);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: epSidebarSlide 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ep-dash__sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F5FF, #FF00A8, #00F5FF);
    background-size: 200% 100%;
    animation: epGradSlide 4s linear infinite;
}

@keyframes epSidebarSlide {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes epGradSlide {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

/* Avatar */
.ep-dash__avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.ep-dash__avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00F5FF, #FF00A8, #7B2FFF, #00F5FF);
    animation: epAvatarSpin 6s linear infinite;
}

.ep-dash__avatar-inner {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #0A0A0F;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5);
}

.ep-dash__avatar-letter {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #00F5FF, #FF00A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: epLetterPulse 3s ease-in-out infinite alternate;
}

@keyframes epAvatarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes epLetterPulse {
    0% { filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 14px rgba(255, 0, 168, 0.4)); }
}

.ep-dash__username {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
    line-height: 1.15;
}

.ep-dash__member-since {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    margin: -0.5rem 0 0;
    text-align: center;
}

/* Navigation */
.ep-dash__nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}

.ep-dash__nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.ep-dash__nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.04), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.ep-dash__nav-item:hover::after {
    left: 100%;
}

.ep-dash__nav-item:hover {
    color: #FFFFFF;
    border-left-color: rgba(0, 245, 255, 0.4);
    background: rgba(0, 245, 255, 0.03);
    padding-left: 1.25rem;
}

.ep-dash__nav-item.is-active {
    color: #00F5FF;
    border-left-color: #00F5FF;
    background: rgba(0, 245, 255, 0.06);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.ep-dash__nav-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ep-dash__nav-item:hover .ep-dash__nav-icon,
.ep-dash__nav-item.is-active .ep-dash__nav-icon {
    opacity: 1;
}

.ep-dash__nav-logout {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.ep-dash__nav-logout:hover {
    color: #FF00A8;
    border-left-color: #FF00A8;
}

/* ── Main Content ── */
.ep-dash__main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: epMainReveal 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}

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

/* Stats cards */
.ep-dash__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ep-dash__stat-card {
    position: relative;
    background: rgba(18, 18, 28, 0.9);
    border: 1px solid rgba(0, 245, 255, 0.15);
    padding: 1.75rem 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ep-dash__stat-card:hover {
    transform: translateY(-4px);
    border-color: #00F5FF;
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.1);
}

.ep-dash__stat-card--magenta {
    border-color: rgba(255, 0, 168, 0.15);
}

.ep-dash__stat-card--magenta:hover {
    border-color: #FF00A8;
    box-shadow: 0 8px 30px rgba(255, 0, 168, 0.1);
}

.ep-dash__stat-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    border-radius: 1px;
    animation: epStatGlowPulse 3s ease-in-out infinite;
}

.ep-dash__stat-card--cyan .ep-dash__stat-glow {
    background: #00F5FF;
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.ep-dash__stat-card--magenta .ep-dash__stat-glow {
    background: #FF00A8;
    box-shadow: 0 0 8px rgba(255, 0, 168, 0.5);
}

@keyframes epStatGlowPulse {
    0%, 100% { width: 40px; opacity: 0.4; }
    50% { width: 80px; opacity: 1; }
}

.ep-dash__stat-value {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.ep-dash__stat-card--cyan .ep-dash__stat-value {
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.ep-dash__stat-card--magenta .ep-dash__stat-value {
    text-shadow: 0 0 20px rgba(255, 0, 168, 0.2);
}

.ep-dash__stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
}

/* Orders section */
.ep-dash__section {
    background: rgba(18, 18, 28, 0.6);
    border: 1px solid rgba(0, 245, 255, 0.08);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.ep-dash__section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
}

.ep-dash__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ep-dash__section-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.35rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
}

.ep-dash__section-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00F5FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ep-dash__section-link:hover {
    color: #FF00A8;
}

/* Orders table */
.ep-dash__orders-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ep-dash__orders-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
}

.ep-dash__orders-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr;
    gap: 0.5rem;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
    transition: all 0.3s ease;
    animation: epRowFadeIn 0.4s ease both;
}

.ep-dash__orders-row:hover {
    background: rgba(0, 245, 255, 0.02);
    box-shadow: inset 3px 0 0 #00F5FF;
}

@keyframes epRowFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.ep-dash__orders-row:nth-child(2) { animation-delay: 0.05s; }
.ep-dash__orders-row:nth-child(3) { animation-delay: 0.1s; }
.ep-dash__orders-row:nth-child(4) { animation-delay: 0.15s; }
.ep-dash__orders-row:nth-child(5) { animation-delay: 0.2s; }
.ep-dash__orders-row:nth-child(6) { animation-delay: 0.25s; }

.ep-dash__order-id {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #00F5FF;
}

.ep-dash__order-date {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.ep-dash__order-status {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.65rem;
    display: inline-block;
    border-radius: 2px;
    width: fit-content;
}

.ep-status--completed,
.ep-status--processing {
    color: #00F5FF;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.ep-status--on-hold,
.ep-status--pending {
    color: #FFB800;
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.ep-status--cancelled,
.ep-status--refunded,
.ep-status--failed {
    color: #FF00A8;
    background: rgba(255, 0, 168, 0.08);
    border: 1px solid rgba(255, 0, 168, 0.2);
}

.ep-dash__order-total {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
}

.ep-dash__order-view {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00F5FF;
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(0, 245, 255, 0.25);
    transition: all 0.3s ease;
}

.ep-dash__order-view:hover {
    background: #00F5FF;
    color: #0A0A0F;
    border-color: #00F5FF;
}

/* Empty state */
.ep-dash__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: rgba(18, 18, 28, 0.5);
    border: 1px dashed rgba(0, 245, 255, 0.15);
    gap: 1rem;
    text-align: center;
}

.ep-dash__empty-icon {
    opacity: 0.4;
    animation: epEmptyBounce 3s ease-in-out infinite;
}

@keyframes epEmptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ep-dash__empty-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
}

.ep-dash__empty-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.ep-dash__empty-cta {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00F5FF;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid #00F5FF;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.ep-dash__empty-cta:hover {
    background: #00F5FF;
    color: #0A0A0F;
}

/* Addresses */
.ep-dash__addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.ep-dash__address-card {
    background: rgba(18, 18, 28, 0.7);
    border: 1px solid rgba(0, 245, 255, 0.12);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ep-dash__address-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid rgba(0, 245, 255, 0.3);
    border-left: 2px solid rgba(0, 245, 255, 0.3);
    pointer-events: none;
    transition: all 0.3s ease;
}

.ep-dash__address-card:hover::before {
    width: 40px;
    height: 40px;
    border-color: #00F5FF;
}

.ep-dash__address-card--magenta {
    border-color: rgba(255, 0, 168, 0.12);
}

.ep-dash__address-card--magenta::before {
    border-color: rgba(255, 0, 168, 0.3);
}

.ep-dash__address-card--magenta:hover::before {
    border-color: #FF00A8;
}

.ep-dash__address-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ep-dash__address-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.ep-dash__address-body {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.ep-dash__address-body p {
    margin: 0;
}

.ep-dash__address-empty {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.ep-dash__address-edit {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00F5FF;
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.ep-dash__address-card--magenta .ep-dash__address-edit {
    color: #FF00A8;
}

.ep-dash__address-edit:hover {
    color: #FFFFFF;
}

/* Quick actions */
.ep-dash__quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ep-dash__action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(18, 18, 28, 0.7);
    border: 1px solid rgba(0, 245, 255, 0.1);
    color: #00F5FF;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ep-dash__action-btn:hover {
    background: rgba(0, 245, 255, 0.06);
    border-color: #00F5FF;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.1);
    color: #FFFFFF;
}

.ep-dash__action-btn--magenta {
    border-color: rgba(255, 0, 168, 0.1);
    color: #FF00A8;
}

.ep-dash__action-btn--magenta:hover {
    background: rgba(255, 0, 168, 0.06);
    border-color: #FF00A8;
    box-shadow: 0 8px 25px rgba(255, 0, 168, 0.1);
    color: #FFFFFF;
}

/* Login form styling override */
.ep-futuristic-login {
    max-width: 460px;
    margin: 0 auto;
}

.ep-futuristic-login .woocommerce-form-login {
    background: rgba(18, 18, 28, 0.95) !important;
    border: 1px solid rgba(0, 245, 255, 0.12) !important;
    padding: 3rem 2.5rem !important;
    position: relative;
    overflow: hidden;
    animation: epLoginMaterialize 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ep-futuristic-login .woocommerce-form-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F5FF, #FF00A8, #00F5FF);
    background-size: 200% 100%;
    animation: epGradSlide 4s linear infinite;
}

@keyframes epLoginMaterialize {
    from { opacity: 0; transform: translateY(20px) scale(0.97); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ep-dash {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }

    .ep-dash__stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ep-dash {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ep-dash__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .ep-dash__avatar {
        width: 60px;
        height: 60px;
    }

    .ep-dash__avatar-inner {
        width: 60px;
        height: 60px;
    }

    .ep-dash__avatar-letter {
        font-size: 1.5rem;
    }

    .ep-dash__username {
        font-size: 1.15rem;
        flex: 1;
        text-align: left;
    }

    .ep-dash__member-since {
        display: none;
    }

    .ep-dash__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
        border-top: 1px solid rgba(0, 245, 255, 0.08);
        padding-top: 0.75rem;
        margin-top: 0;
    }

    .ep-dash__nav-item {
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .ep-dash__nav-item.is-active {
        border-left: none;
        border-bottom-color: #00F5FF;
    }

    .ep-dash__nav-item:hover {
        padding-left: 0.75rem;
        border-left: none;
        border-bottom-color: rgba(0, 245, 255, 0.4);
    }

    .ep-dash__nav-logout {
        margin-top: 0;
        border-top: none;
        padding-top: 0.5rem;
    }

    .ep-dash__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .ep-dash__stat-card {
        padding: 1.25rem 0.75rem;
    }

    .ep-dash__stat-value {
        font-size: 1.5rem;
    }

    .ep-dash__orders-head {
        display: none;
    }

    .ep-dash__orders-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 0.75rem;
        padding: 1rem 0.75rem;
    }

    .ep-dash__addresses {
        grid-template-columns: 1fr;
    }

    .ep-dash__quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ep-dash__action-btn {
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .ep-dash__stats {
        grid-template-columns: 1fr;
    }

    .ep-dash__sidebar {
        padding: 1rem;
    }

    .ep-dash__nav-item {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }

    .ep-dash__nav-icon {
        display: none;
    }

    .ep-futuristic-login .woocommerce-form-login {
        padding: 2rem 1.25rem !important;
    }
}

/* ── Stagger animations for stat cards ── */
.ep-dash__stat-card:nth-child(1) { animation: epStatCardIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both; }
.ep-dash__stat-card:nth-child(2) { animation: epStatCardIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both; }
.ep-dash__stat-card:nth-child(3) { animation: epStatCardIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both; }

@keyframes epStatCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Section entrance */
.ep-dash__section {
    animation: epSectionFadeIn 0.5s ease 0.35s both;
}

.ep-dash__addresses {
    animation: epSectionFadeIn 0.5s ease 0.45s both;
}

.ep-dash__quick-actions {
    animation: epSectionFadeIn 0.5s ease 0.55s both;
}

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

/* ── Scanline overlay for dashboard ── */
.ep-dash::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 245, 255, 0.008) 3px,
        rgba(0, 245, 255, 0.008) 6px
    );
    animation: epDashScanlines 12s linear infinite;
}

@keyframes epDashScanlines {
    from { background-position: 0 0; }
    to { background-position: 0 200px; }
}