/* ==========================================================================
   REMCO — MY ACCOUNT & CUSTOMER DASHBOARD ("حسابي")
   Clean, Elegant, Real WooCommerce Integration with Animated Hero
   Version: 3.1.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

.remco-myaccount-page {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: #f7f9f8;
    color: #1a1a2e;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.remco-myaccount-page * {
    box-sizing: border-box;
}

/* Hide default theme title */
.woocommerce-account .entry-title,
.woocommerce-account .ast-archive-description,
.page-slug-my-account .entry-title,
.page-id-my-account .entry-header,
.woocommerce-account header.entry-header,
.woocommerce-account .entry-header,
.woocommerce-account h1.entry-title,
.ast-header-without-markup {
    display: none !important;
}

.woocommerce-account .entry-content,
.woocommerce-account .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.woocommerce-account .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   SMART ANIMATED HERO HEADER SECTION
   ══════════════════════════════════════════════════════════ */
@keyframes heroGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.35; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 0.2; }
    75% { transform: translateY(-25px) rotate(270deg); opacity: 0.3; }
}

@keyframes goldGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(212,175,55,0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 20px rgba(212,175,55,0.8)); transform: scale(1.06); }
}

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

.rma-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #061d10, #0a2e1a, #1a5c36, #0d3b1f, #0a2e1a);
    background-size: 400% 400%;
    animation: heroGradientFlow 12s ease infinite;
    padding: 55px 20px 48px;
    color: #ffffff;
    text-align: center;
}

.rma-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(212,175,55,0.12) 1px, transparent 1px),
        radial-gradient(circle at 85% 65%, rgba(212,175,55,0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 80%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 60px 60px;
    animation: floatParticle 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.rma-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.rma-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    animation: fadeSlideUp 0.5s ease both;
}

.rma-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    animation: fadeSlideUp 0.6s ease 0.1s both;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.rma-hero-title i {
    color: #d4af37;
    font-size: 2.2rem;
    animation: goldGlowPulse 3s ease-in-out infinite;
}

.rma-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.7;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeSlideUp 0.6s ease 0.2s both;
}

.rma-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    z-index: 3;
    line-height: 0;
}
.rma-hero-wave svg {
    display: block;
    width: 100%;
    height: 35px;
}

/* ══════════════════════════════════════════════════════════
   LOGGED OUT: AUTH CARD CONTAINER
   ══════════════════════════════════════════════════════════ */
.rma-auth-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.rma-auth-card {
    background: #ffffff;
    border: 1px solid #e8eee9;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 850px) {
    .rma-auth-card {
        grid-template-columns: 1fr;
    }
}

.rma-auth-info {
    background: linear-gradient(135deg, #0a2e1a 0%, #1a5c36 100%);
    color: #ffffff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rma-info-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.35;
}

.rma-info-title span {
    color: #d4af37;
}

.rma-info-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    margin-bottom: 24px;
}

.rma-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.rma-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.rma-feature-item i {
    color: #d4af37 !important;
    font-size: 1rem;
    background: rgba(212, 175, 55, 0.15);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rma-info-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rma-support-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.rma-support-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.rma-support-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.rma-auth-forms {
    padding: 36px 32px;
}

.rma-auth-tabs {
    display: flex;
    background: #f1f6f3;
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 24px;
}

.rma-auth-tab {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rma-auth-tab.active {
    background: #ffffff;
    color: #1a5c36;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rma-auth-tab.active i {
    color: #d4af37 !important;
}

.rma-form-group {
    margin-bottom: 18px;
}

.rma-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a3c2a;
    margin-bottom: 6px;
}

.rma-input-wrap {
    position: relative;
}

.rma-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a5c36 !important;
    font-size: 15px;
}

.rma-input-field {
    width: 100%;
    padding: 13px 40px 13px 14px;
    border-radius: 12px;
    border: 2px solid #e2e8e4;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a2e;
    background: #ffffff;
    outline: none;
    transition: all 0.25s ease;
}

.rma-input-field:focus {
    border-color: #1a5c36;
    box-shadow: 0 4px 16px rgba(26, 92, 54, 0.1);
}

.rma-toggle-password {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
}

.rma-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.88rem;
}

.rma-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.rma-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a5c36;
    border-radius: 4px;
    cursor: pointer;
}

.rma-forgot-link {
    color: #1a5c36;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.rma-forgot-link:hover {
    color: #d4af37;
    text-decoration: underline;
}

.rma-submit-btn {
    width: 100%;
    padding: 15px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1a5c36 0%, #0a2e1a 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(26, 92, 54, 0.2);
    transition: all 0.3s ease;
}

.rma-submit-btn:hover {
    background: linear-gradient(135deg, #0a2e1a 0%, #1a5c36 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 92, 54, 0.3);
}

.rma-submit-btn i {
    color: #d4af37 !important;
}

/* ══════════════════════════════════════════════════════════
   LOGGED IN: DASHBOARD & WORKSPACE LAYOUT
   ══════════════════════════════════════════════════════════ */
.rma-dashboard-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: 35px 20px 80px;
}

.rma-profile-card {
    background: #ffffff;
    border: 1px solid #e8eee9;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    flex-wrap: wrap;
    gap: 20px;
}

.rma-profile-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rma-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a5c36, #0a2e1a);
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 20px rgba(26, 92, 54, 0.15);
}

.rma-user-name {
    font-size: 1.45rem;
    font-weight: 900;
    color: #1a3c2a;
    margin: 0 0 4px;
}

.rma-user-email {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.rma-profile-logout-btn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.rma-profile-logout-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.rma-profile-logout-btn i {
    color: inherit !important;
}

.rma-grid-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
}

@media (max-width: 950px) {
    .rma-grid-layout {
        grid-template-columns: 1fr;
    }
}

.rma-sidebar-nav {
    background: #ffffff;
    border: 1px solid #e8eee9;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.rma-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rma-nav-item {
    margin-bottom: 4px;
}

.rma-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.rma-nav-link-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rma-nav-link i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    color: #1a5c36 !important;
    transition: color 0.25s;
}

.rma-nav-link:hover {
    background: #f1f6f3;
    color: #1a5c36;
}

.rma-nav-link.active,
.rma-nav-item.is-active .rma-nav-link {
    background: #1a5c36;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(26, 92, 54, 0.18);
}

.rma-nav-link.active i,
.rma-nav-item.is-active .rma-nav-link i {
    color: #d4af37 !important;
}

.rma-nav-count {
    background: #f1f6f3;
    color: #1a5c36;
    font-size: 0.78rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 800;
}

.rma-nav-link.active .rma-nav-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.rma-content-panel {
    background: #ffffff;
    border: 1px solid #e8eee9;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.rma-welcome-banner {
    background: #f8faf9;
    border: 1px solid #eef3ef;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.65;
}

.rma-quick-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 800px) {
    .rma-quick-cards {
        grid-template-columns: 1fr;
    }
}

.rma-quick-card {
    background: #ffffff;
    border: 1px solid #eef3ef;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s ease;
}

.rma-quick-card:hover {
    border-color: #1a5c36;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 92, 54, 0.08);
}

.rma-quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e4f2e8;
    color: #1a5c36 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rma-quick-icon i {
    color: #1a5c36 !important;
}

.rma-quick-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a3c2a;
    margin: 0;
}

.rma-quick-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.rma-sec-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a3c2a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rma-sec-title i {
    color: #d4af37 !important;
}

.rma-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #eef3ef;
}

.rma-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.rma-table th {
    background: #f8faf9;
    color: #475569;
    font-weight: 700;
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid #eef3ef;
}

.rma-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f3;
    color: #334155;
    font-weight: 600;
}

.rma-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    background: #e4f2e8;
    color: #1a5c36;
    border: 1px solid #c2e2d0;
}

.rma-status-badge i {
    color: #d4af37 !important;
}
