#damenWizard {
    max-width: 900px;
    margin: 20px auto;
    font-family: "Almarai", sans-serif !important;
}

/* Tabs – Services */
.damen-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.damen-tab {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #9f835f;
    background: linear-gradient(180deg, #ffffff, #f2f4fb);
    border: 2px solid #e4e8f3;
    transition: all .25s ease;
}

.damen-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.damen-tab.active {
    background: linear-gradient(90deg, #9f835f, #d4b489);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(1, 173, 141, .35);
}

.damen-content {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.damen-step {
    display: none;
    animation: damenFade .25s ease;
}

.damen-step.active {
    display: block;
}

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

.damen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.damen-card {
    background: #f7f9fc;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .25s;
}

.damen-card:hover {
    border-color: #d4b489;
    background: #fff;
}

.damen-card.selected {
    border-color: #9f835f;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(122, 90, 245, 0.2);
}

.damen-card .icon {
    font-size: 30px;
    color: #d4b489;
    margin-bottom: 6px;
}

.damen-card h3 {
    margin: 4px 0;
    font-size: 15px;
    color: #222;
}

.damen-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.damen-box {
    background: #f7f9fc;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #444;
}

.damen-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(90deg, #9f835f, #d4b489);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    cursor: pointer;
    transition: .25s;
    margin-top: 8px;
}

.damen-btn:hover { opacity: .9; }

.damen-btn.gray {
    background: #ddd;
    color: #333;
}


#damenWizard input,
#damenWizard select,
#damenWizard textarea,
#damenAuth input,
#damenAuth select,
#damenAuth textarea,
#damenDashboard input,
#damenDashboard select,
#damenDashboard textarea,
.damen-store input,
.damen-store select,
.damen-store textarea,
.damen-checkout input,
.damen-checkout select,
.damen-checkout textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 0px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

@media (max-width:768px) {
    .damen-grid { grid-template-columns: 1fr; }
}

/* صفحة تسجيل الدخول + إنشاء الحساب */
#damenAuth {
    max-width: 450px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    font-family: "Almarai", sans-serif !important;
}

.auth-box {
    display: none;
    animation: fadeAuth .3s ease;
}

.auth-box.active { display: block; }

@keyframes fadeAuth {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-group { margin-bottom: 15px; }

.auth-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #444;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(90deg, #9f835f, #d4b489);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: .25s;
    margin-top: 8px;
}

.auth-btn:hover { opacity: .9; }

/* switch text */
.switch-auth {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
}

.switch-auth a {
    color: #9f835f;
    font-weight: 600;
    text-decoration: none;
}

/* user type buttons */
.reg-type {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.type-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: #f7f9fc;
    cursor: pointer;
    font-size: 14px;
    transition: .25s;
}

.type-btn.active {
    border-color: #9f835f;
    background: #9f835f;
    color: #fff;
}

/* OTP Screen */
#otpForm .otp-hint {
    text-align: center;
    color: #555;
    margin-bottom: 15px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-inputs input {
    width: 45px !important;
    height: 55px;
    text-align: center;
    font-size: 22px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 0 !important;
}

.otp-resend {
    text-align: center;
    margin-top: 15px;
}

.otp-resend a {
    color: #9f835f;
    cursor: pointer;
    font-weight: 600;
}

/* ================================
   Dashboard Layout - Damen
================================ */
#damenDashboard {
    display: flex;
    direction: rtl;
    font-family: "Almarai", sans-serif !important;
    max-width: 1200px;
    margin: 30px auto;
}

/* Sidebar */
.dash-sidebar {
    width: 240px;
    background: #9f835f;
    color: #fff;
    min-height: 500px;
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d4b489;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name { font-weight: 700; font-size: 18px; }

.brand-sub { font-size: 12px; opacity: 0.9; }

.dash-menu { list-style: none; padding: 0; margin: 0; }

.dash-menu li {
    padding: 9px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: .25s;
}

.dash-menu li:hover { background: rgba(255, 255, 255, 0.12); }

.dash-menu li.active { background: #d4b489; color: #fff; }

.dash-menu li.disabled { opacity: 0.5; cursor: not-allowed; }

.dash-menu li a { color: inherit; text-decoration: none; display: block; }

/* Main Content */
.dash-main {
    flex: 1;
    margin-right: 18px;
    background: #f7f8fc;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dash-page { display: none; }

.dash-page.active {
    display: block;
    animation: fadeDash .25s ease;
}

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

.dash-title {
    margin: 0 0 6px;
    font-size: 20px;
    color: #9f835f;
}

.dash-subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    color: #666;
}

/* Widgets */
.dash-widgets {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.widget {
    flex: 1;
    min-width: 180px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.w-label { display: block; font-size: 13px; color: #555; }

.w-value {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    color: #d4b489;
    font-weight: 700;
}

/* Empty State */
.dash-empty {
    margin-top: 18px;
    padding: 16px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    color: #777;
    font-size: 14px;
    border: 1px dashed #d0d4e2;
}

/* Actions */
.dash-actions { margin-top: 10px; margin-bottom: 10px; }

.dash-btn {
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    background: #d4b489;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: .25s;
}

.dash-btn:hover { opacity: 0.9; }

/* Settings grid reuse auth-group */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

@media (max-width:900px) {
    #damenDashboard { flex-direction: column; }
    .dash-sidebar { width: 100%; display: flex; flex-direction: column; margin-bottom: 12px; }
    .dash-main { margin-right: 0; }
    .settings-grid { grid-template-columns: 1fr; }
}

/* إخفاء الهيدر في صفحة الداشبورد */
body.damen-dashboard-active header,
body.damen-dashboard-active .site-header,
body.damen-dashboard-active .main-navigation,
body.damen-dashboard-active .top-menu,
body.damen-dashboard-active .menu,
body.damen-dashboard-active .header-buttons {
    display: none !important;
}

/* =========================
   STORE (PUBLIC)
========================= */
.damen-store {
    max-width: 1100px;
    margin: 25px auto;
}

.damen-store-head {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.damen-store-title {
    margin: 0 0 12px;
    color: #9f835f;
    font-size: 20px;
}

.damen-store-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.damen-store-tab {
    border: 1px solid #dde2ef;
    background: #f7f9fc;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #9f835f;
    display: flex;
    gap: 8px;
    align-items: center;
}

.damen-store-tab.active {
    background: #9f835f;
    color: #fff;
    border-color: #9f835f;
}


.damen-store-subtabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d0d4e2;
}

.damen-store-subtab {
    border: 1px solid #dde2ef;
    background: #f7f9fc;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #9f835f;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    transition: .2s;
}

.damen-store-subtab:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.damen-store-subtab.active {
    background: #9f835f;
    color: #fff;
    border-color: #9f835f;
}

.damen-store-duration {
    border: 1px solid #dde2ef;
    background: #f7f9fc;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #9f835f;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    transition: .2s;
}

.damen-store-duration:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.damen-store-duration.active {
    background: #9f835f;
    color: #fff;
    border-color: #9f835f;
}

.damen-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 980px) {
    .damen-store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .damen-store-grid { grid-template-columns: 1fr; }
}

.damen-store-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    border: 1px solid #eef1f7;
}

.damen-store-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.damen-store-card h3 {
    margin: 0;
    font-size: 15px;
    color: #222;
    line-height: 1.35;
}

.damen-store-desc {
    margin: 10px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

.damen-store-price {
    color: #d4b489;
    font-weight: 800;
    white-space: nowrap;
}

.damen-store-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
    justify-content: space-between;
}

.damen-link {
    color: #9f835f;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.damen-btn.small {
    width: auto;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
}

/* =========================
   CONTRACT
========================= */
.damen-contract {
    background: #fff;
    border: 1px solid #eef1f7;
    border-radius: 14px;
    padding: 16px;
}

.damen-contract h3 {
    margin: 0 0 12px;
    color: #9f835f;
    font-size: 18px;
}

.damen-contract-section { margin-bottom: 12px; }

.damen-contract-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #222;
}

.damen-contract p,
.damen-contract li {
    color: #444;
    font-size: 13px;
    line-height: 1.8;
}

.damen-contract ul {
    margin: 0;
    padding-right: 18px;
}

.damen-contract-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #d0d4e2;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #666;
    font-size: 12px;
}

/* Acknowledgment */
.damen-ack {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 12px;
    background: #f7f9fc;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eef1f7;
}

.damen-ack input {
    width: auto !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
}

.damen-ack span {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
}

/* إخفاء هيدر ووردبرس داخل العقد */
body.damen-contract-view header,
body.damen-contract-view .site-header,
body.damen-contract-view .main-navigation,
body.damen-contract-view .wp-site-blocks > header {
    display: none !important;
}

/* زر تسجيل الخروج */
.damen-logout {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.damen-logout a {
    margin-top: 30px !important;
    background: linear-gradient(90deg, #9f835f, #d4b489);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* =========================
   Checkout – Unified Design
========================= */

.damen-page {
    background: #f2f6ff;
    min-height: 100vh;
    padding: 30px 12px;
}

.damen-boxed {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* Title */
.damen-title {
    margin: 0 0 14px;
    font-size: 26px;
    color: #9f835f;
}

/* Order meta */
.damen-order-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.damen-order-meta strong {
    color: #d4b489;
    font-weight: 800;
}

/* Buttons */
.damen-boxed .damen-btn {
    margin-top: 18px;
}

/* Mobile */
@media (max-width: 640px) {
    .damen-boxed {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .damen-title {
        font-size: 22px;
    }
}

.btn-back {
    background: #e5e7eb;
    color: #333;
    border: 1px solid #d1d5db;
}

.btn-back:hover {
    background: #d1d5db;
}

/* ===============================
   Support Page Styling
=============================== */

body.support-page{
    background: linear-gradient(
        180deg,
        rgba(40,64,124,0.06) 0%,
        rgba(40,64,124,0.02) 100%
    );
}

.support-container{
    max-width:1000px;
    margin:60px auto;
    padding:0 20px;
}

.support-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.support-title{
    font-size:26px;
    font-weight:700;
    color:#9f835f;
}

.btn-back{
    background:#e5e7eb;
    border:1px solid #d1d5db;
    padding:6px 14px;
    border-radius:20px;
    font-size:13px;
    cursor:pointer;
    transition:.2s;
}

.btn-back:hover{
    background:#d1d5db;
}

.support-card{
    background:#fff;
    border-radius:18px;
    padding:25px;
    border:1px solid #e7e9f3;
    margin-bottom:25px;
    box-shadow:0 8px 25px rgba(0,0,0,0.04);
}

.support-form input,
.support-form textarea{
    width:96%;
    padding:14px;
    border-radius:12px;
    border:1px solid #d1d5db;
    margin-bottom:15px;
    font-family:'Almarai',sans-serif;
    transition:.2s;
}

.support-form input:focus,
.support-form textarea:focus{
    border-color:#9f835f;
    outline:none;
    box-shadow:0 0 0 3px rgba(40,64,124,0.08);
}

.ticket-card{
    background:#fff;
    border-radius:16px;
    padding:20px;
    border:1px solid #e5e7eb;
    margin-bottom:20px;
    transition:.25s;
}

.ticket-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.ticket-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.ticket-subject{
    font-weight:700;
    color:#9f835f;
}

.ticket-badge{
    padding:6px 14px;
    border-radius:25px;
    font-size:12px;
    font-weight:700;
}

.badge-open{
    background:#dcfce7;
    color:#166534;
}

.badge-closed{
    background:#fee2e2;
    color:#991b1b;
}

.chat-box{
    background:#f8fafc;
    border-radius:14px;
    padding:14px;
    max-height:300px;
    overflow:auto;
    margin-top:12px;
}

.chat-msg{
    padding:10px 14px;
    border-radius:12px;
    margin-bottom:10px;
    font-size:14px;
}

.msg-user{
    background:#e0f2fe;
}

.msg-admin{
    background:#ede9fe;
}

.reply-form textarea{
    width:96%;
    padding:12px;
    border-radius:12px;
    border:1px solid #d1d5db;
    margin-top:12px;
    min-height:80px;
}

@media(max-width:768px){
    .support-container{
        margin:30px auto;
    }
    .ticket-header{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }
}