:root{--navy:#0e1b38;--navy2:#193c60;--teal:#159b9f;--bg:#f4f7fb;--ink:#111d35;--muted:#778198;--line:#e2e8f1;--white:#fff;--danger:#9e3546}
*{box-sizing:border-box}body{margin:0;font-family:Vazirmatn,Tahoma,sans-serif;color:var(--ink)}a{color:inherit}.customer-body{min-height:100vh;background:radial-gradient(circle at 80% 0,#e5f4f4 0,transparent 34%),var(--bg)}.customer-shell{width:min(980px,calc(100% - 32px));margin:auto;padding:26px 0 50px}.customer-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.customer-head>a,.head-actions a{text-decoration:none;font-weight:700;color:#33425c}.customer-brand{display:flex!important;align-items:center;gap:10px;color:var(--ink)!important}.customer-brand span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,#25b8b6,#0b7e83);font-size:22px;font-weight:900;box-shadow:0 10px 25px #168f9330}.customer-brand strong{font-size:20px}.auth-panel{width:min(520px,100%);margin:64px auto 0;background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px;box-shadow:0 24px 70px #1b2d4913}.wide-auth{width:min(640px,100%)}.auth-copy{text-align:center;margin-bottom:24px}.pill{display:inline-flex;padding:6px 12px;border-radius:999px;background:#e4f5f4;color:#0e8589;font-size:12px;font-weight:900}.pill.soft{background:#eef4f8;color:#43516a}.auth-copy h1,.account-hero h1{font-size:30px;margin:12px 0 6px}.auth-copy p,.account-hero p,.orders-panel p{color:var(--muted);line-height:1.9;margin:0}.auth-panel form label{display:block;font-size:13px;font-weight:800;margin:14px 0 7px}.auth-panel input{width:100%;border:1px solid #d7e0eb;background:#fbfcfe;border-radius:12px;padding:13px 14px;font:inherit;outline:none;direction:rtl}.auth-panel input:focus{border-color:#62bfc0;box-shadow:0 0 0 3px #159b9f14}.primary-btn,.logout-btn{border:0;font:inherit;font-weight:800;cursor:pointer;border-radius:12px}.primary-btn{width:100%;padding:13px 16px;background:linear-gradient(135deg,#159b9f,#0d7f84);color:#fff;margin-top:18px}.logout-btn{padding:10px 15px;background:#fff0f2;color:var(--danger)}.auth-switch{text-align:center;margin-top:20px;color:var(--muted);font-size:13px}.auth-switch a{color:#0c8589;font-weight:900;text-decoration:none}.field-error,.form-error{color:#a23446;font-size:12px;line-height:1.8;margin-top:5px}.form-error{background:#fff1f3;border:1px solid #ffd7dd;padding:10px 12px;border-radius:10px}.form-error ul,.field-error ul{margin:0;padding-right:18px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.privacy-note{color:#8a94a6;font-size:11px;line-height:1.9;margin:13px 0 0}.head-actions{display:flex;gap:14px}.account-shell{width:min(1080px,calc(100% - 32px))}.success-note{background:#eaf8f2;color:#237457;border:1px solid #ccebdd;border-radius:12px;padding:12px 14px;margin:22px 0}.account-hero{margin-top:40px;background:linear-gradient(135deg,var(--navy),var(--navy2));color:white;border-radius:26px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.account-hero p{color:#cbd7e5}.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.account-card{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:8px}.account-card small{color:var(--muted)}.account-card strong{font-size:16px}.card-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#e8f7f7;color:#0c8589;font-weight:900}.orders-panel{margin-top:18px;background:white;border:1px solid var(--line);border-radius:20px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:18px}.orders-panel h2{margin:10px 0 4px}.primary-link{text-decoration:none;background:var(--navy);color:white;padding:11px 15px;border-radius:12px;font-weight:800;white-space:nowrap}
@media(max-width:700px){.customer-shell{width:min(100% - 22px,980px)}.auth-panel{margin-top:38px;padding:24px}.two-col{grid-template-columns:1fr}.account-hero,.orders-panel{align-items:flex-start;flex-direction:column}.account-grid{grid-template-columns:1fr}.head-actions{gap:8px}.customer-head>a,.head-actions a{font-size:12px}}

/* Customer profile + addresses */
.form-shell{width:min(820px,calc(100% - 32px));padding-bottom:70px}.wide-shell{width:min(1040px,calc(100% - 32px))}.back-link{text-decoration:none;font-weight:800;color:#40506a;background:#fff;border:1px solid var(--line);padding:9px 13px;border-radius:11px}.edit-panel{margin-top:34px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 18px 50px #193c600d}.section-head{margin-bottom:20px}.section-head h1,.addresses-head h1{margin:10px 0 4px;font-size:28px}.section-head p,.addresses-head p{margin:0;color:var(--muted);line-height:1.9}.customer-form label{display:block;font-size:13px;font-weight:800;margin:14px 0 7px}.customer-form input[type=text],.customer-form input[type=tel],.customer-form textarea,.customer-form input:not([type=checkbox]){width:100%;border:1px solid #d7e0eb;background:#fbfcfe;border-radius:12px;padding:13px 14px;font:inherit;outline:none}.customer-form textarea{resize:vertical;min-height:105px}.customer-form input:focus,.customer-form textarea:focus{border-color:#62bfc0;box-shadow:0 0 0 3px #159b9f14}.check-row{display:flex!important;align-items:center;gap:9px;margin-top:18px!important}.check-row input{width:18px!important;height:18px}.account-tools{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.tool-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;text-decoration:none;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;transition:.15s ease}.tool-card:hover{transform:translateY(-2px);box-shadow:0 14px 35px #193c6012}.tool-card small{display:block;color:var(--muted);margin-top:5px;line-height:1.7}.tool-card b{font-size:22px;color:#8090a7}.tool-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#e8f7f7;color:#0c8589;font-weight:900}.addresses-head{margin-top:34px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}.address-list{display:grid;gap:13px;margin-top:16px}.address-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.address-card.is-default{border-color:#8fd0cd;box-shadow:inset 0 0 0 1px #bfe6e4}.address-title{display:flex;align-items:center;gap:9px}.default-badge{font-size:11px;font-weight:900;color:#0c8589;background:#e7f7f6;padding:4px 8px;border-radius:999px}.address-main p{margin:8px 0;color:#3e4b62;line-height:1.9}.address-main small{color:var(--muted)}.address-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.address-actions a,.address-actions button{border:0;background:#eef4f8;color:#31415b;border-radius:9px;padding:8px 10px;font:inherit;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer}.address-actions form{margin:0}.address-actions .danger-link{background:#fff0f2;color:#9e3546}.empty-state{margin-top:16px;background:#fff;border:1px dashed #cfd8e4;border-radius:22px;padding:42px;text-align:center}.empty-state>span{width:55px;height:55px;border-radius:17px;display:grid;place-items:center;background:#e8f7f7;color:#0c8589;font-weight:900;font-size:22px;margin:auto}.empty-state h2{margin:14px 0 6px}.empty-state p{color:var(--muted);margin:0 0 18px}.form-shell .primary-link{display:inline-block}
@media(max-width:700px){.account-tools{grid-template-columns:1fr}.addresses-head,.address-card{align-items:flex-start;flex-direction:column}.address-actions{width:100%}.edit-panel{padding:22px}.form-shell,.wide-shell{width:min(100% - 22px,1040px)}}

/* Customer real orders v1 */
.orders-real{display:block}.orders-headline{display:flex;align-items:center;justify-content:space-between;gap:18px}.recent-orders{display:grid;gap:9px;margin-top:18px}.order-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:16px;text-decoration:none;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fbfcfe}.order-row:hover{border-color:#b8dedd;background:#f8fdfd}.order-row>div{display:flex;flex-direction:column;gap:4px}.order-row small,.order-card-full small{color:var(--muted)}.order-row>b{white-space:nowrap}.order-status{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:900;background:#eef4f8;color:#40506a;white-space:nowrap}.status-paid,.status-ready_to_print,.status-exported,.status-printing,.status-printed,.status-binding,.status-packing,.status-ready_for_delivery{background:#e8f7f7;color:#0b7f83}.status-delivered{background:#eaf8f2;color:#237457}.status-cancelled{background:#fff0f2;color:#9e3546}.status-pending_payment,.status-credit_pending{background:#fff7e7;color:#91620d}.empty-orders{display:flex;align-items:center;gap:12px;margin-top:18px;border:1px dashed #d3dce8;border-radius:14px;padding:18px;color:#516078}.empty-orders>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#e8f7f7;color:#0c8589;font-weight:900}.empty-orders div{display:flex;flex-direction:column;gap:4px}.empty-orders small{color:var(--muted)}.orders-page-head{margin-bottom:16px}.orders-list-page{display:grid;gap:12px}.order-card-full{display:grid;grid-template-columns:1.5fr 1fr .7fr 1fr auto;align-items:center;gap:18px;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px}.order-card-full:hover{border-color:#9fd6d4;box-shadow:0 12px 30px #193c600b}.order-card-full>div{display:flex;flex-direction:column;gap:5px}.order-main-info span{color:var(--muted);font-size:12px}.order-arrow{font-size:22px;color:#8190a5}.customer-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:20px}.customer-pagination a{text-decoration:none;background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:9px;font-weight:800}.customer-pagination span{color:var(--muted);font-size:13px}.order-detail-hero{margin-top:34px;background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;border-radius:24px;padding:27px;display:flex;align-items:center;justify-content:space-between;gap:18px}.order-detail-hero h1{margin:10px 0 4px}.order-detail-hero p{margin:0;color:#cbd7e5}.order-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:16px}.order-summary-grid article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:7px}.order-summary-grid small{color:var(--muted)}.order-items-panel,.order-delivery-panel{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px}.order-items-panel .section-head h2{margin:8px 0 0}.order-items-table{margin-top:16px;border:1px solid var(--line);border-radius:14px;overflow:hidden}.order-item{display:grid;grid-template-columns:2fr .5fr 1fr 1fr;gap:12px;align-items:center;padding:13px 15px;border-bottom:1px solid var(--line)}.order-item:last-child{border-bottom:0}.order-item>span:first-child{display:flex;flex-direction:column;gap:3px}.order-item small{color:var(--muted)}.order-item-head{background:#f4f7fb;font-size:12px;font-weight:900;color:#56657b}.order-delivery-panel h2{margin:0 0 10px}.order-delivery-panel p{margin:5px 0;color:#46556d;line-height:1.9}
@media(max-width:760px){.orders-headline,.order-detail-hero{align-items:flex-start;flex-direction:column}.order-row{grid-template-columns:1fr auto}.order-row>b{grid-column:1/-1}.order-card-full{grid-template-columns:1fr 1fr}.order-arrow{display:none}.order-summary-grid{grid-template-columns:1fr}.order-item{grid-template-columns:1.5fr .5fr}.order-item span:nth-child(3),.order-item span:nth-child(4){font-size:12px}.order-item-head span:nth-child(3),.order-item-head span:nth-child(4){display:none}}
