/* ===== SHARED ACCOUNT PAGE LAYOUT ===== */
.account-page-wrapper { background: linear-gradient(135deg, #fdf0f7 0%, #f8f4ff 50%, #f0f8ff 100%); min-height: 60vh; padding: 32px 0 48px; }
.account-content-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.07); overflow: hidden; }
.account-content-header { background: linear-gradient(135deg, #e91e8c 0%, #ff6b6b 100%); padding: 22px 28px; display: flex; align-items: center; gap: 14px; }
.account-content-header .header-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); }
.account-content-header h2 { color: #fff; font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.3px; }
.account-content-header p { color: rgba(255,255,255,0.8); font-size: 13px; margin: 2px 0 0; }
.account-content-body { padding: 28px; }

/* Alerts */
.account-alert-success { background: linear-gradient(135deg, #e8f5e9, #f1f8e9); border: 1px solid #a5d6a7; border-left: 4px solid #43a047; border-radius: 10px; padding: 14px 18px; color: #2e7d32; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.account-alert-danger { background: linear-gradient(135deg, #ffebee, #fce4ec); border: 1px solid #ef9a9a; border-left: 4px solid #e53935; border-radius: 10px; padding: 14px 18px; color: #c62828; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* Form Styles */
.account-form-label { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; display: block; }
.account-form-label span.req { color: #e91e8c; }
.account-form-control { width: 100%; border: 2px solid #eee; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #333; transition: border-color 0.2s, box-shadow 0.2s; background: #fafafa; outline: none; }
.account-form-control:focus { border-color: #e91e8c; box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.08); background: #fff; }
.account-form-control[readonly] { background: #f0f0f0; color: #888; cursor: not-allowed; }
.account-form-control option { font-size: 14px; }
.account-form-group { margin-bottom: 20px; }
.account-field-note { font-size: 12px; color: #e91e8c; margin-top: 4px; display: block; }
.account-error-text { font-size: 12px; color: #e53935; margin-top: 4px; display: block; }

/* Buttons */
.btn-account-primary { background: linear-gradient(135deg, #e91e8c 0%, #ff6b6b 100%); color: #fff; border: none; border-radius: 10px; padding: 13px 32px; font-size: 14px; font-weight: 700; cursor: pointer; letter-spacing: 0.3px; transition: all 0.2s ease; box-shadow: 0 4px 16px rgba(233,30,140,0.3); display: inline-flex; align-items: center; gap: 8px; }
.btn-account-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(233,30,140,0.4); color: #fff; }
.btn-account-primary:active { transform: translateY(0); }

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper .account-form-control { padding-right: 50px; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #aaa; font-size: 13px; font-weight: 600; user-select: none; transition: color 0.2s; }
.password-toggle:hover { color: #e91e8c; }

/* Select */
select.account-form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Stat Cards (account.php) */
.account-stat-card { background: #fff; border-radius: 14px; padding: 22px 20px; text-align: center; border: 2px solid #f0f0f0; transition: all 0.2s ease; cursor: pointer; text-decoration: none; display: block; }
.account-stat-card:hover { border-color: #e91e8c; box-shadow: 0 8px 24px rgba(233,30,140,0.12); transform: translateY(-3px); text-decoration: none; }
.account-stat-card .stat-icon { width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.account-stat-card .stat-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 2px; }
.account-stat-card .stat-sub { font-size: 12px; color: #999; }

/* Welcome Banner */
.account-welcome-banner { background: linear-gradient(135deg, #e91e8c 0%, #ff6b6b 100%); border-radius: 14px; padding: 24px 28px; color: #fff; margin-bottom: 24px; display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.account-welcome-banner::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.account-welcome-banner::after { content: ''; position: absolute; bottom: -40px; right: 60px; width: 80px; height: 80px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.account-welcome-banner .welcome-avatar { width: 60px; height: 60px; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; position: relative; z-index: 1; }
.account-welcome-banner .welcome-text { position: relative; z-index: 1; }
.account-welcome-banner .welcome-text h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #fff; }
.account-welcome-banner .welcome-text p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }

/* Order Table */
.account-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.account-table thead th { background: #f8f8f8; border-bottom: 2px solid #eee; padding: 12px 16px; font-size: 12px; font-weight: 700; color: #777; text-transform: uppercase; letter-spacing: 0.5px; }
.account-table thead th:first-child { border-radius: 10px 0 0 0; }
.account-table thead th:last-child  { border-radius: 0 10px 0 0; }
.account-table tbody tr { transition: background 0.15s; }
.account-table tbody tr:hover { background: #fef0f7; }
.account-table tbody td { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #444; vertical-align: middle; }
.order-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #e8f5e9; color: #2e7d32; }
.btn-account-outline { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 2px solid #e91e8c; color: #e91e8c; background: transparent; text-decoration: none; transition: all 0.2s ease; }
.btn-account-outline:hover { background: #e91e8c; color: #fff; text-decoration: none; }

/* Product row in order */
.order-product-row td { background: #fdf5fb; border-bottom: 1px solid #f0e8f0 !important; }
.order-product-info { display: flex; align-items: center; gap: 12px; }
.order-product-info img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 2px solid #f0e0f0; }
.order-product-info .product-name-link { font-size: 13px; font-weight: 600; color: #333; text-decoration: none; }
.order-product-info .product-name-link:hover { color: #e91e8c; }
.order-product-meta { font-size: 11px; color: #888; margin-top: 3px; }

/* ===== SHARED CHECKOUT STYLES ===== */
.co-wrap{background:linear-gradient(135deg,#fdf0f7,#f8f4ff,#f0f8ff);min-height:70vh;padding:32px 0 56px;}

/* Progress */
.co-progress{display:flex;align-items:center;margin-bottom:32px;}
.co-step{display:flex;align-items:center;gap:8px;flex:1;}
.co-step-circle{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex-shrink:0;border:3px solid #eee;background:#fff;color:#ccc;transition:all .3s;}
.co-step.active .co-step-circle{background:linear-gradient(135deg,#e91e8c,#ff6b6b);border-color:transparent;color:#fff;box-shadow:0 4px 14px rgba(233,30,140,.35);}
.co-step.done .co-step-circle{background:linear-gradient(135deg,#43a047,#66bb6a);border-color:transparent;color:#fff;}
.co-step-label{font-size:12px;font-weight:700;color:#bbb;}
.co-step.active .co-step-label{color:#e91e8c;}
.co-step.done  .co-step-label{color:#43a047;}
.co-step-line{flex:1;height:2px;background:#eee;margin:0 6px;border-radius:2px;}
.co-step-line.done{background:linear-gradient(to right,#43a047,#66bb6a);}

/* Card */
.co-card{background:#fff;border-radius:18px;box-shadow:0 4px 28px rgba(0,0,0,.07);overflow:hidden;margin-bottom:20px;}
.co-card-header{background:linear-gradient(135deg,#e91e8c,#ff6b6b);padding:20px 26px;display:flex;align-items:center;gap:14px;}
.co-card-header .ch-icon{width:42px;height:42px;background:rgba(255,255,255,.2);border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:18px;border:1px solid rgba(255,255,255,.3);flex-shrink:0;}
.co-card-header h2{color:#fff;font-size:18px;font-weight:800;margin:0;}
.co-card-header p{color:rgba(255,255,255,.8);font-size:12px;margin:2px 0 0;}
.co-card-body{padding:26px;}

/* Done cards */
.co-done-card{background:#fff;border-radius:14px;box-shadow:0 2px 14px rgba(0,0,0,.06);padding:16px 20px;margin-bottom:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-left:4px solid #43a047;}
.co-done-card .done-icon{font-size:20px;flex-shrink:0;}
.co-done-card .done-body{flex:1;min-width:0;}
.co-done-card .done-title{font-size:11px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.6px;margin-bottom:4px;}
.co-done-card .done-val{font-size:13px;color:#333;font-weight:500;line-height:1.5;}
.co-done-card .btn-edit-step{display:inline-flex;align-items:center;gap:4px;padding:6px 14px;border:2px solid #e91e8c;border-radius:8px;color:#e91e8c;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;transition:all .2s;flex-shrink:0;}
.co-done-card .btn-edit-step:hover{background:#e91e8c;color:#fff;text-decoration:none;}

/* Form */
.co-form-group{margin-bottom:20px;}
.co-label{font-size:13px;font-weight:700;color:#444;margin-bottom:7px;display:block;}
.co-label .req{color:#e91e8c;}
.co-input{width:100%;border:2px solid #eee;border-radius:11px;padding:12px 16px;font-size:14px;color:#333;outline:none;transition:border-color .2s,box-shadow .2s;background:#fafafa;box-sizing:border-box;font-family:inherit;}
.co-input:focus{border-color:#e91e8c;box-shadow:0 0 0 3px rgba(233,30,140,.08);background:#fff;}
select.co-input{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px;}
textarea.co-input{resize:vertical;min-height:80px;}
.co-error{font-size:12px;color:#e53935;margin-top:4px;display:block;}
.co-note{font-size:11px;color:#e91e8c;margin-top:4px;}
.co-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;}
.co-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 18px;}
@media(max-width:640px){.co-grid-2,.co-grid-3{grid-template-columns:1fr;}}
.co-section-hdr{font-size:11px;font-weight:800;color:#bbb;text-transform:uppercase;letter-spacing:.8px;margin:8px 0 18px;display:flex;align-items:center;gap:8px;}
.co-section-hdr::after{content:'';flex:1;height:1px;background:#f0f0f0;}

/* Buttons */
.btn-co-next{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 28px;background:linear-gradient(135deg,#e91e8c,#ff6b6b);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:800;cursor:pointer;transition:all .2s;box-shadow:0 4px 16px rgba(233,30,140,.3);text-decoration:none;font-family:inherit;}
.btn-co-next:hover{transform:translateY(-2px);box-shadow:0 6px 22px rgba(233,30,140,.4);color:#fff;text-decoration:none;}
.btn-co-back{display:inline-flex;align-items:center;gap:6px;padding:12px 20px;border:2px solid #e0e0e0;border-radius:12px;color:#666;font-size:14px;font-weight:700;text-decoration:none;transition:all .2s;background:transparent;cursor:pointer;font-family:inherit;}
.btn-co-back:hover{border-color:#e91e8c;color:#e91e8c;text-decoration:none;}
.co-form-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:20px;border-top:2px solid #f3f3f3;margin-top:8px;}

/* Alerts */
.co-alert-s{background:linear-gradient(135deg,#e8f5e9,#f1f8e9);border:1px solid #a5d6a7;border-left:4px solid #43a047;border-radius:10px;padding:12px 16px;color:#2e7d32;font-weight:600;margin-bottom:18px;font-size:13px;}
.co-alert-d{background:linear-gradient(135deg,#ffebee,#fce4ec);border:1px solid #ef9a9a;border-left:4px solid #e53935;border-radius:10px;padding:12px 16px;color:#c62828;font-weight:600;margin-bottom:18px;font-size:13px;}

/* Summary Panel */
.co-sum-panel{background:#fff;border-radius:18px;box-shadow:0 4px 28px rgba(0,0,0,.07);overflow:hidden;position:sticky;top:20px;}
.co-sum-hdr{background:linear-gradient(135deg,#e91e8c,#ff6b6b);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;}
.co-sum-hdr h3{color:#fff;font-size:14px;font-weight:700;margin:0;}
.co-sum-hdr a{color:rgba(255,255,255,.85);font-size:12px;font-weight:700;text-decoration:none;background:rgba(255,255,255,.2);padding:4px 12px;border-radius:20px;}
.co-sum-hdr a:hover{background:rgba(255,255,255,.3);color:#fff;text-decoration:none;}
.co-sum-body{padding:18px;}
.co-sum-product{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid #f5f5f5;}
.co-sum-product img{width:50px;height:50px;border-radius:10px;object-fit:cover;border:2px solid #f0e0f0;flex-shrink:0;}
.co-sum-product .sp-name{font-size:13px;font-weight:700;color:#333;line-height:1.3;}
.co-sum-product .sp-meta{font-size:11px;color:#999;margin-top:3px;line-height:1.5;}
.co-sum-product .sp-price{font-size:13px;font-weight:800;color:#e91e8c;white-space:nowrap;margin-left:auto;padding-left:8px;}
.co-sum-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #f5f5f5;font-size:13px;color:#555;}
.co-sum-row:last-child{border-bottom:none;}
.co-sum-row .sl{font-weight:500;}
.co-sum-row .sv{font-weight:700;color:#333;}
.co-sum-grand{padding-top:14px;border-top:2px solid #f0f0f0;margin-top:4px;display:flex;justify-content:space-between;align-items:center;}
.co-sum-grand .sl{font-size:15px;font-weight:800;color:#222;}
.co-sum-grand .sv{font-size:17px;font-weight:800;background:linear-gradient(135deg,#e91e8c,#ff6b6b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}

/* Locked step */
.co-locked-step{background:#fff;border-radius:14px;box-shadow:0 2px 14px rgba(0,0,0,.05);padding:16px 20px;margin-bottom:16px;display:flex;align-items:center;gap:12px;opacity:.55;}
.co-locked-step .ls-num{width:32px;height:32px;border-radius:50%;background:#eee;display:flex;align-items:center;justify-content:center;font-weight:800;color:#aaa;font-size:13px;flex-shrink:0;}
.co-locked-step .ls-label{font-size:14px;font-weight:700;color:#aaa;}

/* Payment cards */
.pm-card{border:2px solid #f0f0f0;border-radius:14px;padding:16px 18px;margin-bottom:12px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:14px;position:relative;}
.pm-card:hover{border-color:#f0c0df;background:#fdf5fb;}
.pm-card.selected{border-color:#e91e8c;background:#fdf0f7;box-shadow:0 0 0 3px rgba(233,30,140,.08);}
.pm-card input[type=radio]{position:absolute;opacity:0;pointer-events:none;}
.pm-radio-dot{width:22px;height:22px;border-radius:50%;border:3px solid #ddd;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .2s;}
.pm-card.selected .pm-radio-dot{border-color:#e91e8c;background:#e91e8c;}
.pm-card.selected .pm-radio-dot::after{content:'';width:8px;height:8px;border-radius:50%;background:#fff;display:block;}
.pm-card-body{flex:1;}
.pm-title{font-size:14px;font-weight:700;color:#333;margin-bottom:3px;}
.pm-sub{font-size:12px;color:#999;}
.pm-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px;}
.pm-badges img{height:20px;}
.co-terms{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;background:#f8f8f8;border-radius:12px;font-size:13px;color:#555;margin-bottom:20px;}
.co-terms input[type=checkbox]{margin-top:2px;accent-color:#e91e8c;flex-shrink:0;}
.co-terms a{color:#e91e8c;font-weight:700;}

/* ===== CART PAGE ===== */
.cart-page-wrap { background: linear-gradient(135deg,#fdf0f7,#f8f4ff,#f0f8ff); min-height:60vh; padding:32px 0 48px; }
.cart-page-title { font-size:26px; font-weight:800; color:#222; margin-bottom:24px; display:flex; align-items:center; gap:10px; }
.cart-count-pill { background:linear-gradient(135deg,#e91e8c,#ff6b6b); color:#fff; font-size:13px; font-weight:700; padding:3px 12px; border-radius:20px; }
.cart-item-card { background:#fff; border-radius:16px; box-shadow:0 2px 16px rgba(0,0,0,0.06); margin-bottom:16px; padding:20px; display:flex; align-items:flex-start; gap:18px; transition:box-shadow 0.2s; }
.cart-item-card:hover { box-shadow:0 6px 24px rgba(233,30,140,0.1); }
.cart-item-img { width:90px; height:90px; border-radius:12px; object-fit:cover; border:2px solid #f0e0f0; flex-shrink:0; }
.cart-item-body { flex:1; min-width:0; }
.cart-item-name { font-size:15px; font-weight:700; color:#222; text-decoration:none; display:block; margin-bottom:6px; }
.cart-item-name:hover { color:#e91e8c; }
.cart-delivery-badge { display:inline-flex; align-items:center; gap:5px; background:linear-gradient(135deg,#e8f5e9,#f1f8e9); border:1px solid #a5d6a7; color:#2e7d32; font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; margin-bottom:8px; }
.cart-item-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.cart-item-tag { font-size:11px; background:#f5f5f5; color:#666; padding:2px 9px; border-radius:12px; }
.cart-item-tag.shipping { background:#fce4ec; color:#c2185b; }
.qty-control { display:inline-flex; align-items:center; gap:0; border:2px solid #f0f0f0; border-radius:10px; overflow:hidden; }
.qty-btn { width:34px; height:34px; background:#f8f8f8; border:none; cursor:pointer; font-size:16px; font-weight:700; color:#555; display:flex; align-items:center; justify-content:center; transition:background 0.15s; }
.qty-btn:hover { background:#fde0f0; color:#e91e8c; }
.qty-input { width:42px; height:34px; border:none; border-left:2px solid #f0f0f0; border-right:2px solid #f0f0f0; text-align:center; font-size:14px; font-weight:700; color:#333; outline:none; }
.cart-item-actions { display:flex; align-items:center; gap:10px; margin-top:12px; flex-wrap:wrap; }
.cart-item-price { font-size:15px; font-weight:800; color:#222; }
.cart-item-total { font-size:13px; color:#888; }
.btn-cart-remove { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; border-radius:8px; font-size:12px; font-weight:700; border:2px solid #ffcdd2; color:#e53935; background:transparent; cursor:pointer; text-decoration:none; transition:all 0.2s; }
.btn-cart-remove:hover { background:#e53935; color:#fff; border-color:#e53935; text-decoration:none; }
.btn-cart-back { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; border-radius:8px; font-size:12px; font-weight:700; border:2px solid #e0e0e0; color:#666; background:transparent; text-decoration:none; transition:all 0.2s; }
.btn-cart-back:hover { background:#666; color:#fff; text-decoration:none; }
.cart-empty { background:#fff; border-radius:16px; padding:56px 20px; text-align:center; box-shadow:0 2px 16px rgba(0,0,0,0.06); }
.cart-empty .empty-icon { font-size:64px; margin-bottom:16px; animation:floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.cart-empty h3 { font-size:20px; font-weight:700; color:#333; margin-bottom:8px; }
.cart-empty p { color:#999; margin-bottom:24px; }
.cart-summary-panel { background:#fff; border-radius:16px; box-shadow:0 2px 16px rgba(0,0,0,0.07); overflow:hidden; position:sticky; top:20px; }
.cart-summary-header { background:linear-gradient(135deg,#e91e8c,#ff6b6b); padding:18px 22px; }
.cart-summary-header h3 { color:#fff; font-size:16px; font-weight:700; margin:0; }
.cart-summary-body { padding:22px; }
.coupon-toggle { display:flex; align-items:center; gap:8px; padding:12px 16px; background:#fdf0f7; border:2px dashed #f0c0df; border-radius:10px; cursor:pointer; color:#e91e8c; font-weight:700; font-size:13px; margin-bottom:16px; transition:background 0.2s; }
.coupon-toggle:hover { background:#fde0f0; }
.coupon-form { display:none; margin-bottom:16px; }
.coupon-form .coupon-input-wrap { display:flex; gap:8px; }
.coupon-form input { flex:1; border:2px solid #eee; border-radius:10px; padding:10px 14px; font-size:13px; outline:none; transition:border-color 0.2s; }
.coupon-form input:focus { border-color:#e91e8c; }
.btn-coupon-apply { background:linear-gradient(135deg,#e91e8c,#ff6b6b); color:#fff; border:none; border-radius:10px; padding:10px 18px; font-size:13px; font-weight:700; cursor:pointer; white-space:nowrap; }
.summary-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #f5f5f5; font-size:14px; color:#555; }
.summary-row:last-child { border-bottom:none; }
.summary-row .label { font-weight:500; }
.summary-row .val { font-weight:700; color:#333; }
.summary-row.discount { color:#43a047; }
.summary-row.grand { padding-top:16px; margin-top:4px; border-top:2px solid #f0f0f0 !important; }
.summary-row.grand .label { font-size:16px; font-weight:800; color:#222; }
.summary-row.grand .val { font-size:18px; font-weight:800; background:linear-gradient(135deg,#e91e8c,#ff6b6b); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.btn-checkout { display:block; width:100%; padding:15px; background:linear-gradient(135deg,#e91e8c,#ff6b6b); color:#fff; border:none; border-radius:12px; font-size:15px; font-weight:800; cursor:pointer; text-align:center; text-decoration:none; margin-top:20px; transition:all 0.2s; box-shadow:0 4px 16px rgba(233,30,140,0.3); letter-spacing:0.3px; }
.btn-checkout:hover { transform:translateY(-2px); box-shadow:0 6px 22px rgba(233,30,140,0.4); color:#fff; text-decoration:none; }
.btn-keep-shopping { display:inline-flex; align-items:center; gap:6px; padding:11px 22px; border:2px solid #e0e0e0; border-radius:10px; color:#555; font-weight:700; font-size:13px; text-decoration:none; margin-top:16px; transition:all 0.2s; }
.btn-keep-shopping:hover { border-color:#e91e8c; color:#e91e8c; text-decoration:none; }
.trust-badges { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:18px; padding-top:16px; border-top:1px solid #f5f5f5; }
.trust-badge { font-size:11px; color:#666; display:flex; align-items:center; gap:4px; font-weight:600; }

/* Styles from sidebar.php */
/* ===== ACCOUNT SIDEBAR ===== */
.account-sidebar {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.account-sidebar .sidebar-avatar {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6b6b 100%);
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
}

.account-sidebar .sidebar-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 20px;
    background: #fff;
    border-radius: 20px 20px 0 0;
}

.account-sidebar .avatar-circle {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.25);
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.account-sidebar .sidebar-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.account-sidebar .sidebar-email {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.account-sidebar .sidebar-nav {
    list-style: none;
    padding: 8px 12px 16px;
    margin: 0;
}

.account-sidebar .sidebar-nav li {
    margin-bottom: 4px;
}

.account-sidebar .sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.account-sidebar .sidebar-nav li a .nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.account-sidebar .sidebar-nav li a:hover {
    background: #fef0f7;
    color: #e91e8c;
    text-decoration: none;
}

.account-sidebar .sidebar-nav li a:hover .nav-icon {
    background: #fde0f0;
    color: #e91e8c;
}

.account-sidebar .sidebar-nav li.active > a {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6b6b 100%);
    color: #fff;
}

.account-sidebar .sidebar-nav li.active > a .nav-icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.account-sidebar .sidebar-nav li:last-child a {
    color: #e53935;
}
.account-sidebar .sidebar-nav li:last-child a:hover {
    background: #fff0f0;
    color: #c62828;
}
.account-sidebar .sidebar-nav li:last-child a .nav-icon {
    color: #e53935;
}

/* Styles from order_list.php */
.empty-orders {
    text-align: center;
    padding: 56px 20px;
}
.empty-orders .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.empty-orders h4 { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 8px; }
.empty-orders p  { color: #888; font-size: 14px; margin-bottom: 24px; }

.order-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg,#fce4ec,#f8bbd0);
    color: #c2185b;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
}

.order-date-text {
    font-size: 13px;
    color: #888;
}

.order-total-text {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-processing { background: #fff8e1; color: #f57f17; }
.status-delivered  { background: #e8f5e9; color: #2e7d32; }
.status-shipped    { background: #e3f2fd; color: #1565c0; }
.status-cancelled  { background: #ffebee; color: #c62828; }
.status-pending    { background: #f3e5f5; color: #6a1b9a; }
.status-default    { background: #f5f5f5; color: #555; }

.order-section-row td {
    background: linear-gradient(to right, #fdf5fb, #f8f5ff);
    padding: 10px 16px !important;
    border-top: 2px solid #f0e0f0 !important;
}

.order-section-row .order-id-col {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Styles from order_info.php */
/* ===== ORDER INFO SPECIFIC STYLES ===== */
.order-info-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.order-info-id {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-info-id .order-num {
    background: linear-gradient(135deg,#e91e8c,#ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

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

.info-detail-card {
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    padding: 20px;
}

.info-detail-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
}

.info-detail-row .info-label {
    font-size: 12px;
    color: #999;
    min-width: 110px;
    flex-shrink: 0;
    font-weight: 600;
    padding-top: 1px;
}

.info-detail-row .info-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.order-products-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-product-card {
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color 0.2s;
}

.order-product-card:hover {
    border-color: #e91e8c;
}

.order-product-card .product-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #f0e0f0;
    flex-shrink: 0;
}

.order-product-card .product-body {
    flex: 1;
    min-width: 0;
}

.order-product-card .product-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.order-product-card .product-name:hover {
    color: #e91e8c;
}

.order-product-card .product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.product-tag {
    font-size: 11px;
    background: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.order-product-card .product-price-qty {
    font-size: 14px;
    font-weight: 700;
    color: #e91e8c;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.order-totals-box {
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}

.order-totals-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.total-row:last-child {
    border-bottom: none;
    font-size: 16px;
    font-weight: 800;
    color: #222;
    padding-top: 14px;
    margin-top: 4px;
}

.total-row .total-label {
    font-weight: 500;
}

.total-row .total-amount {
    font-weight: 700;
}

.total-row.discount-row { color: #43a047; }
.total-row.grand-total-row .total-label { color: #333; }
.total-row.grand-total-row .total-amount {
    background: linear-gradient(135deg,#e91e8c,#ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.message-card-box {
    background: linear-gradient(135deg,#fff8e1,#fff3cd);
    border: 2px solid #ffe082;
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.message-card-box .msg-icon { font-size: 28px; }

.message-card-box h4 {
    font-size: 13px;
    font-weight: 700;
    color: #795548;
    margin-bottom: 5px;
}

.message-card-box p {
    font-size: 14px;
    color: #5d4037;
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

/* Styles from edit.php */
.account-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.account-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 20px;
}
@media (max-width: 767px) {
    .account-form-grid-2,
    .account-form-grid-3 { grid-template-columns: 1fr; }
}
.account-form-divider {
    border: none;
    border-top: 2px solid #f3f3f3;
    margin: 8px 0 24px;
}
.account-form-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.account-form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
}

/* Styles from success.php */
/* ===== SUCCESS PAGE ===== */
.success-page-wrap {
    background: linear-gradient(135deg, #fdf0f7 0%, #f8f4ff 50%, #f0f8ff 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.success-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 48px rgba(233, 30, 140, 0.12);
    overflow: hidden;
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

/* Animated confetti top bar */
.success-card-top {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6b6b 100%);
    padding: 40px 32px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-card-top::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.success-card-top::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

/* Animated checkmark */
.success-checkmark {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    z-index: 1;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0%   { transform: scale(0); opacity: 0; }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

.success-card-top h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.success-card-top p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Floating confetti dots */
.confetti-dot {
    position: absolute;
    border-radius: 50%;
    animation: confettiFall 4s linear infinite;
    opacity: 0.6;
}

@keyframes confettiFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

/* Order info section */
.success-body { padding: 32px; }

/* Order ID pill */
.success-order-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.success-order-id .order-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.success-order-id .order-num {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    color: #c2185b;
    font-size: 18px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 30px;
    border: 2px solid #f0c0d8;
    letter-spacing: 1px;
}

/* Steps */
.success-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    position: relative;
}

.success-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, #e91e8c, #ff6b6b);
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e8c, #ff6b6b);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(233,30,140,0.3);
}

.step-label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

/* Info rows */
.success-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 500px) {
    .success-info-grid { grid-template-columns: 1fr; }
}

.success-info-item {
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-info-item .info-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.success-info-item .info-text {
    min-width: 0;
}

.success-info-item .info-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-info-item .info-val {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    word-break: break-word;
}

/* CTA buttons */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-success-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #e91e8c, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(233,30,140,0.3);
    letter-spacing: 0.3px;
}

.btn-success-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(233,30,140,0.4);
    color: #fff;
    text-decoration: none;
}

.btn-success-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-success-outline:hover {
    border-color: #e91e8c;
    color: #e91e8c;
    text-decoration: none;
}

/* Review banner */
.review-banner {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 2px solid #ffe082;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-banner .review-icon { font-size: 32px; flex-shrink: 0; }

.review-banner .review-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #795548;
    margin: 0 0 4px;
}

.review-banner .review-text p {
    font-size: 12px;
    color: #8d6e63;
    margin: 0 0 10px;
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-review:hover {
    background: #1558b0;
    color: #fff;
    text-decoration: none;
}

/* Email footer */
.success-email-note {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.success-email-note a {
    color: #e91e8c;
    font-weight: 600;
    text-decoration: none;
}
