/* ==========================================================================
   Registration, Login, and Account Pages
   ========================================================================== */


/* ============================================================
   SECTION 1: PRESERVED — Registration Form Styles
   These classes are used by the registration page (page-registration.php).
   ============================================================ */

/* --- Registration Form --- */
.hd-registration-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: var(--hd-white);
    border-radius: 8px;
    box-shadow: var(--hd-shadow-md);
}

.hd-registration-form h2 {
    text-align: center;
    margin-bottom: 10px;
}

.hd-registration-form .hd-form-intro {
    text-align: center;
    color: var(--hd-text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.hd-registration-form .hd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hd-registration-form .hd-form-full {
    grid-column: 1 / -1;
}

/* --- GSTIN Field --- */
.hd-gstin-field {
    position: relative;
}

.hd-gstin-field input {
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.hd-gstin-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.hd-gstin-valid { color: var(--hd-success); }
.hd-gstin-invalid { color: var(--hd-error); }

/* --- Password Strength --- */
.hd-password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: var(--hd-border);
    overflow: hidden;
}

.hd-password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.hd-pw-weak { width: 25%; background: var(--hd-error); }
.hd-pw-fair { width: 50%; background: var(--hd-warning); }
.hd-pw-good { width: 75%; background: #17a2b8; }
.hd-pw-strong { width: 100%; background: var(--hd-success); }

/* --- Registration Pending Message --- */
.hd-registration-pending {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
    margin: 40px auto;
}

.hd-registration-pending .hd-pending-icon {
    width: 80px;
    height: 80px;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.hd-registration-pending h2 {
    margin-bottom: 15px;
}

.hd-registration-pending p {
    color: var(--hd-text-light);
    line-height: 1.7;
}


/* ============================================================
   SECTION 2: Account Page Layout
   Main layout structure for the My Account page shell.
   ============================================================ */

.hd-account-page {
    padding-top: var(--hd-space-2xl);
    padding-bottom: var(--hd-space-3xl);
    background: var(--hd-bg-off-white);
    min-height: 80vh;
}

.hd-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: var(--hd-space-xl);
    align-items: flex-start;
}

.hd-account-content {
    flex: 1;
    min-width: 0;
}


/* ============================================================
   SECTION 3: Access Control Cards
   Login-required and pending-approval gate cards.
   ============================================================ */

.hd-account-gate {
    max-width: 480px;
    margin: 4rem auto;
    text-align: center;
    padding: var(--hd-space-2xl);
}

.hd-account-gate h2 {
    font-family: var(--hd-font-display);
    color: var(--hd-charcoal);
    margin-bottom: var(--hd-space-md);
}

.hd-account-gate p {
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-lg);
}

.hd-account-gate .hd-notice {
    text-align: left;
    margin-bottom: var(--hd-space-lg);
}

.hd-account-gate .hd-btn {
    margin-top: var(--hd-space-sm);
}

/* Reduce internal top padding for lost-password card */
.hd-account-gate:has(.woocommerce-ResetPassword) {
    padding-top: var(--hd-space-lg);
}

/* WooCommerce lost-password / reset-password form styling */
.hd-account-gate .woocommerce-ResetPassword,
.hd-account-gate .woocommerce-ResetPassword ~ form {
    text-align: left;
    margin-top: var(--hd-space-lg);
}

.hd-account-gate .woocommerce-form-row.form-row-first,
.hd-account-gate .woocommerce-form-row.form-row {
    width: 100%;
    float: none;
}

.hd-account-gate .woocommerce-ResetPassword > p:first-child {
    text-align: center;
    color: var(--hd-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--hd-space-lg);
}

.hd-account-gate .woocommerce-form-row label {
    display: block;
    font-weight: 600;
    color: var(--hd-charcoal);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.hd-account-gate .woocommerce-Input--text,
.hd-account-gate input[type="text"],
.hd-account-gate input[type="email"],
.hd-account-gate input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--hd-font-body);
    color: var(--hd-charcoal);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.hd-account-gate .woocommerce-Input--text:focus,
.hd-account-gate input[type="text"]:focus,
.hd-account-gate input[type="email"]:focus,
.hd-account-gate input[type="password"]:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.15);
}

.hd-account-gate .woocommerce-Button,
.hd-account-gate button[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--hd-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--hd-font-body);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: var(--hd-space-md);
    letter-spacing: 0.025em;
}

.hd-account-gate .woocommerce-Button:hover,
.hd-account-gate button[type="submit"]:hover {
    background: var(--hd-primary-dark);
    transform: translateY(-1px);
}

.hd-account-gate .woocommerce-form-row {
    margin-bottom: var(--hd-space-md);
}

.hd-account-gate .woocommerce-error,
.hd-account-gate .woocommerce-message,
.hd-account-gate .woocommerce-info {
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: var(--hd-space-md);
    font-size: 0.9rem;
    list-style: none;
}

.hd-account-gate .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hd-account-gate .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.hd-account-gate .woocommerce-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.hd-account-gate .required {
    color: #dc2626;
}


/* ============================================================
   SECTION 4: Sidebar
   Sticky sidebar with avatar, company name, and navigation.
   ============================================================ */

.hd-account-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.hd-account-sidebar-card {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    overflow: hidden;
}

/* --- Sidebar Header (Avatar + Company Name) --- */
.hd-account-sidebar-header {
    padding: var(--hd-space-lg);
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.hd-account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hd-primary-light);
    color: var(--hd-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hd-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--hd-space-sm);
    border: 2px solid rgba(197, 157, 95, 0.2);
}

.hd-account-sidebar-header h4 {
    font-family: var(--hd-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.hd-partner-badge {
    display: inline-block;
    font-family: var(--hd-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-primary);
    background: rgba(197, 157, 95, 0.1);
    padding: 0.125rem 0.625rem;
    border-radius: var(--hd-radius-full);
}

/* --- Sidebar Navigation --- */
.hd-account-nav {
    padding: var(--hd-space-sm) 0;
}

.hd-account-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem var(--hd-space-lg);
    color: var(--hd-text-muted);
    text-decoration: none;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--hd-transition-fast);
    border-left: 3px solid transparent;
}

.hd-account-nav-item:hover {
    color: var(--hd-charcoal);
    background: var(--hd-surface-offset);
}

.hd-account-nav-item .material-symbols-outlined {
    font-size: 20px;
}

/* Active state */
.hd-nav-active {
    color: var(--hd-primary-dark);
    background: rgba(197, 157, 95, 0.08);
    border-left-color: var(--hd-primary);
    font-weight: 600;
}

.hd-nav-active .material-symbols-outlined {
    color: var(--hd-primary);
}

/* Logout item */
.hd-nav-logout {
    color: var(--hd-error);
    margin-top: var(--hd-space-sm);
    border-top: 1px solid #f1f5f9;
    padding-top: calc(var(--hd-space-sm) + 0.75rem);
}

.hd-nav-logout:hover {
    background: #fef2f2;
    color: var(--hd-error);
}

.hd-nav-logout .material-symbols-outlined {
    color: var(--hd-error);
}


/* ============================================================
   SECTION 5: Breadcrumbs
   Used on orders, order detail, and edit-account pages.
   ============================================================ */

.hd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-lg);
    flex-wrap: wrap;
}

.hd-breadcrumb a {
    color: var(--hd-text-muted);
    text-decoration: none;
    transition: color var(--hd-transition-fast);
}

.hd-breadcrumb a:hover {
    color: var(--hd-primary);
}

.hd-breadcrumb .hd-breadcrumb-current {
    color: var(--hd-charcoal);
    font-weight: 600;
}

.hd-breadcrumb .material-symbols-outlined {
    font-size: 16px;
    color: var(--hd-slate-400);
}


/* ============================================================
   SECTION 6: Dashboard Greeting
   Welcome heading + subtitle on the dashboard page.
   ============================================================ */

.hd-dashboard-greeting {
    margin-bottom: var(--hd-space-xl);
}

.hd-dashboard-greeting h1 {
    font-family: var(--hd-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.hd-dashboard-greeting h1 .hd-greeting-name {
    font-style: italic;
}

.hd-dashboard-greeting p {
    font-family: var(--hd-font-sans);
    color: var(--hd-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}


/* ============================================================
   SECTION 7: Dashboard Stat Cards
   3-column grid of stat cards (Total Orders, Address, Spent).
   ============================================================ */

.hd-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hd-space-lg);
    margin-bottom: var(--hd-space-2xl);
}

.hd-stat-card {
    background: white;
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-lg);
    box-shadow: var(--hd-shadow-layered);
    transition: all var(--hd-transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hd-shadow-layered-hover);
}

.hd-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hd-gradient-metallic-gold);
}

/* Stat card header: icon + label */
.hd-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--hd-space-md);
}

.hd-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--hd-radius-md);
    background: rgba(197, 157, 95, 0.1);
    color: var(--hd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--hd-transition-base);
}

.hd-stat-card:hover .hd-stat-icon {
    background: var(--hd-primary);
    color: white;
}

.hd-stat-icon .material-symbols-outlined {
    font-size: 22px;
}

.hd-stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.hd-stat-card:hover .hd-stat-icon-blue {
    background: #2563eb;
    color: white;
}

.hd-stat-icon-green {
    background: #ecfdf5;
    color: #059669;
}

.hd-stat-card:hover .hd-stat-icon-green {
    background: #059669;
    color: white;
}

.hd-stat-label {
    font-family: var(--hd-font-sans);
    font-size: 0.6875rem;
    color: var(--hd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* Stat card value + description */
.hd-stat-value {
    font-family: var(--hd-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hd-stat-desc {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-md);
}

/* Stat card footer link */
.hd-stat-footer {
    padding-top: var(--hd-space-md);
    border-top: 1px solid #f1f5f9;
}

.hd-stat-footer a {
    font-family: var(--hd-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color var(--hd-transition-fast);
}

.hd-stat-footer a:hover {
    color: var(--hd-primary-dark);
}

.hd-stat-footer a .material-symbols-outlined {
    font-size: 14px;
}


/* ============================================================
   SECTION 8: Content Card (Generic)
   White rounded card used as wrapper for tables, forms, etc.
   ============================================================ */

.hd-content-card {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    overflow: hidden;
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hd-space-lg) var(--hd-space-xl);
    border-bottom: 1px solid #f1f5f9;
}

.hd-content-card-header h2 {
    font-family: var(--hd-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hd-charcoal);
    margin-bottom: 0;
}

.hd-content-card-header a {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hd-primary);
    text-decoration: none;
    transition: color var(--hd-transition-fast);
}

.hd-content-card-header a:hover {
    color: var(--hd-primary-dark);
}


/* ============================================================
   SECTION 9: Order Table
   Table for both dashboard recent orders and order history page.
   ============================================================ */

.hd-order-table {
    width: 100%;
    border-collapse: collapse;
}

.hd-order-table th {
    font-family: var(--hd-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hd-text-muted);
    padding: 0.75rem var(--hd-space-xl);
    text-align: left;
    background: var(--hd-surface-offset);
    border-bottom: 1px solid #e2e8f0;
}

.hd-order-table th:last-child {
    text-align: right;
}

.hd-order-table td {
    padding: 1rem var(--hd-space-xl);
    border-bottom: 1px solid #f1f5f9;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    vertical-align: middle;
    color: var(--hd-charcoal);
}

.hd-order-table td:last-child {
    text-align: right;
}

.hd-order-table tbody tr {
    transition: background var(--hd-transition-fast);
}

.hd-order-table tbody tr:hover {
    background: rgba(197, 157, 95, 0.03);
}

.hd-order-table tbody tr:last-child td {
    border-bottom: none;
}

/* Order number link */
.hd-order-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hd-charcoal);
    text-decoration: none;
}

.hd-order-number:hover {
    color: var(--hd-primary);
}

/* Order total */
.hd-order-total {
    font-family: var(--hd-font-display);
    font-weight: 700;
    color: var(--hd-charcoal);
}

/* Cancelled order row */
.hd-order-cancelled .hd-order-number {
    text-decoration: line-through;
    color: var(--hd-text-muted);
}

.hd-auto-cancel-note {
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    color: var(--hd-error);
    font-style: italic;
    margin-top: 0.25rem;
}

/* Action button (eye icon) */
.hd-order-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--hd-text-muted);
    text-decoration: none;
    transition: all var(--hd-transition-fast);
    border: 1px solid transparent;
}

.hd-order-action-btn:hover {
    background: var(--hd-primary);
    color: white;
    border-color: var(--hd-primary);
}

.hd-order-action-btn .material-symbols-outlined {
    font-size: 20px;
}


/* ============================================================
   SECTION 10: Status Badges
   Extend base .hd-badge from main.css with account-specific
   variants (shipped, dot-style).
   ============================================================ */

/* Dot-style badge (matches Stitch screen_01 design) */
.hd-badge-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--hd-radius-full);
    font-family: var(--hd-font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
}

.hd-badge-dot::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Badge with icon (for shipped/delivered) */
.hd-badge .material-symbols-outlined {
    font-size: 14px;
    margin-right: 0.25rem;
}

/* Shipped: amber tones (Stitch authority) */
.hd-badge-shipped {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid rgba(254, 243, 199, 0.5);
}

.hd-badge-dot.hd-badge-shipped::before {
    background: #f59e0b;
}

/* Processing: blue */
.hd-badge-dot.hd-badge-info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.hd-badge-dot.hd-badge-info::before {
    background: #3b82f6;
}

/* Delivered/Completed: emerald */
.hd-badge-dot.hd-badge-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.hd-badge-dot.hd-badge-success::before {
    background: #22c55e;
}

/* Pending/On Hold: amber */
.hd-badge-dot.hd-badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.hd-badge-dot.hd-badge-warning::before {
    background: #f59e0b;
}

/* Cancelled: slate */
.hd-badge-dot.hd-badge-gray {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.hd-badge-dot.hd-badge-gray::before {
    background: #94a3b8;
}

/* Error/Refunded: red */
.hd-badge-dot.hd-badge-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hd-badge-dot.hd-badge-error::before {
    background: #ef4444;
}

/* Tracking link below shipped badge */
.hd-badge-tracking-link {
    display: block;
    font-family: var(--hd-font-sans);
    font-size: 0.6875rem;
    color: var(--hd-primary);
    text-decoration: underline;
    margin-top: 0.25rem;
    transition: color var(--hd-transition-fast);
}

.hd-badge-tracking-link:hover {
    color: var(--hd-primary-dark);
}


/* ============================================================
   SECTION 11: Pagination
   Previous/Next buttons + "Showing X of Y" info.
   ============================================================ */

.hd-order-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hd-space-md) var(--hd-space-xl);
    border-top: 1px solid #f1f5f9;
}

.hd-pagination-info {
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    color: var(--hd-text-muted);
}

.hd-pagination-buttons {
    display: flex;
    gap: var(--hd-space-sm);
}

.hd-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: var(--hd-radius-sm);
    background: white;
    color: var(--hd-charcoal);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--hd-transition-fast);
}

.hd-pagination-btn:hover {
    border-color: var(--hd-primary);
    color: var(--hd-primary);
}

.hd-pagination-btn[disabled],
.hd-pagination-btn.hd-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.hd-pagination-btn .material-symbols-outlined {
    font-size: 16px;
}


/* ============================================================
   SECTION 12: Support Banner
   Gold gradient CTA banner below orders table.
   ============================================================ */

.hd-support-banner {
    margin-top: var(--hd-space-xl);
    background: var(--hd-gradient-metallic-gold);
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-xl) var(--hd-space-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    gap: var(--hd-space-lg);
}

.hd-support-banner h3 {
    font-family: var(--hd-font-display);
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.hd-support-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
}

.hd-support-banner .hd-btn {
    flex-shrink: 0;
}


/* ============================================================
   SECTION 13: Dashboard Bottom CTA Grid
   2-column grid: Download Catalog + Need Assistance.
   ============================================================ */

.hd-dashboard-ctas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hd-space-lg);
    margin-top: var(--hd-space-2xl);
}

.hd-cta-dark {
    position: relative;
    background: linear-gradient(135deg, var(--hd-slate-900), var(--hd-charcoal));
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-xl);
    overflow: hidden;
    transition: box-shadow var(--hd-transition-base);
}

.hd-cta-dark:hover {
    box-shadow: var(--hd-shadow-layered-hover);
}

.hd-cta-dark h3 {
    font-family: var(--hd-font-display);
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--hd-space-sm);
}

.hd-cta-dark p {
    color: var(--hd-slate-400);
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    margin-bottom: var(--hd-space-lg);
    max-width: 280px;
}

.hd-cta-light {
    position: relative;
    background: white;
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-xl);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: var(--hd-shadow-soft);
    transition: box-shadow var(--hd-transition-base);
}

.hd-cta-light:hover {
    box-shadow: var(--hd-shadow-layered-hover);
}

.hd-cta-light h3 {
    font-family: var(--hd-font-display);
    color: var(--hd-charcoal);
    font-size: 1.25rem;
    margin-bottom: var(--hd-space-sm);
}

.hd-cta-light p {
    color: var(--hd-text-muted);
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    margin-bottom: var(--hd-space-lg);
    max-width: 280px;
}

.hd-cta-light .hd-cta-icon {
    position: absolute;
    bottom: var(--hd-space-md);
    right: var(--hd-space-md);
    color: var(--hd-surface-offset);
    font-size: 64px;
}


/* ============================================================
   SECTION 14: Order Detail Header
   Order number, date, status badge, and action buttons.
   ============================================================ */

.hd-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--hd-space-xl);
    flex-wrap: wrap;
    gap: var(--hd-space-md);
}

.hd-order-header h1 {
    font-family: var(--hd-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0.25rem;
}

.hd-order-header-meta {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
}

.hd-order-header-actions {
    display: flex;
    align-items: center;
    gap: var(--hd-space-md);
}


/* ============================================================
   SECTION 15: Shipping Tracker
   Horizontal progress bar with step labels.
   ============================================================ */

.hd-shipping-tracker {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    padding: var(--hd-space-xl);
    margin-bottom: var(--hd-space-xl);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--hd-space-lg);
}

.hd-tracker-header h3 {
    font-family: var(--hd-font-display);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.hd-tracker-carrier {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
}

.hd-tracker-carrier strong {
    color: var(--hd-charcoal);
    font-weight: 600;
}

/* Progress bar track */
.hd-tracker-bar {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: var(--hd-radius-full);
    margin-bottom: var(--hd-space-lg);
    overflow: hidden;
}

/* Progress bar fill */
.hd-tracker-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--hd-gradient-metallic-gold);
    border-radius: var(--hd-radius-full);
    transition: width var(--hd-transition-slow);
}

/* Step labels */
.hd-tracker-steps {
    display: flex;
    justify-content: space-between;
}

.hd-tracker-step {
    text-align: center;
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    color: var(--hd-text-muted);
    font-weight: 500;
    position: relative;
    flex: 1;
}

.hd-tracker-step::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto var(--hd-space-xs);
    border: 2px solid #e2e8f0;
    transition: all var(--hd-transition-base);
}

/* Active step */
.hd-step-active {
    color: var(--hd-primary-dark);
    font-weight: 700;
}

.hd-step-active::before {
    background: var(--hd-primary);
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.2);
}

/* Current step (pulsing dot) */
.hd-step-current::before {
    animation: hd-tracker-pulse 2s infinite;
}

@keyframes hd-tracker-pulse {
    0% { box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(197, 157, 95, 0.1); }
    100% { box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.2); }
}


/* ============================================================
   SECTION 16: Order Items Table (Detail View)
   Extended table for order detail with product images + SKU.
   ============================================================ */

.hd-order-items-card {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    overflow: hidden;
    margin-bottom: var(--hd-space-xl);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-order-items-card .hd-order-table th {
    background: white;
    border-bottom: 2px solid #f1f5f9;
}

/* Product cell with image + name + SKU */
.hd-order-item-product {
    display: flex;
    align-items: center;
    gap: var(--hd-space-md);
}

.hd-order-item-image {
    width: 56px;
    height: 56px;
    border-radius: var(--hd-radius-sm);
    background: var(--hd-surface-offset);
    overflow: hidden;
    flex-shrink: 0;
}

.hd-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-order-item-name {
    font-family: var(--hd-font-sans);
    font-weight: 600;
    color: var(--hd-charcoal);
    font-size: 0.875rem;
}

.hd-order-item-sku {
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    color: var(--hd-text-muted);
    margin-top: 0.125rem;
}

/* Tier badge in order items */
.hd-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: rgba(197, 157, 95, 0.1);
    color: var(--hd-primary-dark);
    border-radius: var(--hd-radius-full);
    font-family: var(--hd-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
}


/* ============================================================
   SECTION 17: Order Summary (GST Breakdown)
   Price breakdown card with subtotal, tax, shipping, total.
   ============================================================ */

.hd-order-summary {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    padding: var(--hd-space-lg);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-order-summary h3 {
    font-family: var(--hd-font-display);
    font-size: 1.125rem;
    margin-bottom: var(--hd-space-lg);
    padding-bottom: var(--hd-space-sm);
    border-bottom: 1px solid #f1f5f9;
}

.hd-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
}

.hd-summary-row-label {
    color: var(--hd-text-muted);
}

.hd-summary-row-value {
    font-weight: 600;
    color: var(--hd-charcoal);
}

/* Grand total row */
.hd-summary-total {
    border-top: 2px solid var(--hd-primary-light);
    margin-top: var(--hd-space-sm);
    padding-top: var(--hd-space-md);
}

.hd-summary-total .hd-summary-row-label {
    font-weight: 700;
    color: var(--hd-charcoal);
    font-size: 1rem;
}

.hd-summary-total .hd-summary-row-value {
    font-family: var(--hd-font-display);
    font-size: 1.5rem;
    font-weight: 700;
}


/* ============================================================
   SECTION 18: GST Info + Notes Cards
   Info cards for GST numbers and order notes.
   ============================================================ */

.hd-info-card {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    padding: var(--hd-space-lg);
    margin-bottom: var(--hd-space-xl);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-info-card h3 {
    font-family: var(--hd-font-display);
    font-size: 1rem;
    margin-bottom: var(--hd-space-md);
}

.hd-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    border-bottom: 1px solid #f8f9fa;
}

.hd-info-row:last-child {
    border-bottom: none;
}

.hd-info-row-label {
    color: var(--hd-text-muted);
}

.hd-info-row-value {
    font-weight: 500;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    color: var(--hd-charcoal);
}

.hd-notes-text {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    line-height: 1.6;
}


/* ============================================================
   SECTION 19: Address Cards
   2-column grid for billing + shipping addresses.
   ============================================================ */

.hd-address-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hd-space-lg);
    margin-bottom: var(--hd-space-xl);
}

.hd-address-card {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    padding: var(--hd-space-lg);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-address-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--hd-space-md);
}

.hd-address-card-header .material-symbols-outlined {
    font-size: 20px;
    color: var(--hd-primary);
}

.hd-address-card-header h4 {
    font-family: var(--hd-font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0;
}

.hd-address-card p {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.hd-address-edit-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--hd-radius-md);
    color: var(--hd-primary);
    transition: background 0.2s ease, color 0.2s ease;
}

.hd-address-edit-link:hover {
    background: rgba(197, 157, 95, 0.1);
}

.hd-address-edit-link .material-symbols-outlined {
    font-size: 18px;
}

.hd-address-phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
}

.hd-address-phone .material-symbols-outlined {
    font-size: 16px;
    color: var(--hd-primary);
}

.hd-address-empty {
    font-style: italic;
    color: var(--hd-text-muted);
    opacity: 0.7;
}

.hd-address-section {
    margin-top: var(--hd-space-xl);
    padding-top: var(--hd-space-xl);
    border-top: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-address-section h3 {
    font-family: var(--hd-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: var(--hd-space-lg);
}


/* ============================================================
   SECTION 19b: WC Notices on Account Pages
   Success/error/info messages from form submissions.
   ============================================================ */

.hd-account-content .woocommerce-message,
.hd-account-content .woocommerce-error,
.hd-account-content .woocommerce-info {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    padding: var(--hd-space-md) var(--hd-space-lg);
    border-radius: var(--hd-radius-md);
    margin-bottom: var(--hd-space-lg);
    list-style: none;
}

.hd-account-content .woocommerce-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.hd-account-content .woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.hd-account-content .woocommerce-error li {
    list-style: none;
}

.hd-account-content .woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}


/* ============================================================
   SECTION 20: Edit Account Form
   Profile editing form with 2-column grid.
   ============================================================ */

.hd-edit-form {
    background: white;
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-layered);
    padding: var(--hd-space-xl);
    margin-bottom: var(--hd-space-xl);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.hd-edit-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--hd-space-xl);
}

.hd-edit-form-header h2 {
    font-family: var(--hd-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0;
}

.hd-edit-form-header .hd-btn {
    flex-shrink: 0;
}

/* 2-column form grid */
.hd-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hd-space-md);
}

.hd-form-full {
    grid-column: 1 / -1;
}


/* ============================================================
   SECTION 21: Locked Fields
   Read-only fields for Company Name + GSTIN.
   ============================================================ */

.hd-locked-fields {
    background: var(--hd-surface-offset);
    border-radius: var(--hd-radius-md);
    padding: var(--hd-space-lg);
    margin: var(--hd-space-xl) 0;
    opacity: 0.85;
}

.hd-locked-fields .hd-form-group label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.hd-locked-fields .hd-form-group label .material-symbols-outlined {
    font-size: 14px;
    color: var(--hd-text-muted);
}

.hd-input-locked {
    background: #e2e8f0 !important;
    cursor: not-allowed;
    color: var(--hd-text-muted) !important;
}

.hd-input-locked:focus {
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}

select.hd-select {
    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='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.hd-locked-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    color: var(--hd-text-muted);
    margin-top: var(--hd-space-md);
    margin-bottom: 0;
}

.hd-locked-hint .material-symbols-outlined {
    font-size: 14px;
}


/* ============================================================
   SECTION 22: Password Change Section
   Bordered section within edit-account form.
   ============================================================ */

.hd-password-section {
    border-top: 1px solid #f1f5f9;
    padding-top: var(--hd-space-xl);
    margin-top: var(--hd-space-xl);
}

.hd-password-section h3 {
    font-family: var(--hd-font-display);
    font-size: 1.125rem;
    margin-bottom: var(--hd-space-lg);
}

/* Password toggle button (show/hide) */
.hd-password-toggle {
    position: relative;
}

.hd-password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hd-text-muted);
    padding: 0.25rem;
    transition: color var(--hd-transition-fast);
}

.hd-password-toggle-btn:hover {
    color: var(--hd-primary);
}

.hd-password-toggle-btn .material-symbols-outlined {
    font-size: 20px;
}


/* ============================================================
   SECTION 23: Bottom Grid (Order Detail)
   2-column layout for notes/GST + summary.
   ============================================================ */

.hd-order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hd-space-xl);
    margin-bottom: var(--hd-space-xl);
}


/* ============================================================
   SECTION 24: Invoice Downloads
   Download buttons for proforma and tax invoices.
   ============================================================ */

.hd-invoice-downloads {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hd-invoice-downloads .hd-btn {
    text-decoration: none;
}

.hd-invoice-downloads .material-symbols-outlined {
    font-size: 16px;
}

/* Small button variant (used in order detail header) */
.hd-btn-sm {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    gap: 0.375rem;
}

.hd-btn-sm .material-symbols-outlined {
    font-size: 16px;
}


/* ============================================================
   SECTION 25: Empty State
   No-content placeholder with icon and CTA.
   ============================================================ */

.hd-empty-state {
    text-align: center;
    padding: var(--hd-space-3xl) var(--hd-space-xl);
}

.hd-empty-state .material-symbols-outlined {
    font-size: 48px;
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-md);
    display: block;
}

.hd-empty-state h3 {
    font-family: var(--hd-font-display);
    color: var(--hd-charcoal);
    margin-bottom: var(--hd-space-sm);
}

.hd-empty-state p {
    font-family: var(--hd-font-sans);
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-lg);
}


/* ============================================================
   SECTION 26: Responsive — Account Pages
   Mobile-first adjustments for sidebar and content layout.
   ============================================================ */

@media (max-width: 1024px) {
    .hd-account-container {
        flex-direction: column;
    }

    .hd-account-sidebar {
        width: 100%;
        position: static;
    }

    .hd-account-sidebar-card {
        display: flex;
        align-items: center;
        gap: var(--hd-space-md);
    }

    .hd-account-sidebar-header {
        display: flex;
        align-items: center;
        gap: var(--hd-space-md);
        text-align: left;
        border-bottom: none;
        border-right: 1px solid #f1f5f9;
        padding-right: var(--hd-space-lg);
        flex-shrink: 0;
    }

    .hd-account-avatar {
        margin: 0;
    }

    .hd-account-nav {
        display: flex;
        flex-wrap: wrap;
        padding: var(--hd-space-sm) var(--hd-space-md);
        gap: 0;
    }

    .hd-account-nav-item {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.5rem 1rem;
    }

    .hd-nav-active {
        border-left-color: transparent;
        border-bottom-color: var(--hd-primary);
    }

    .hd-nav-logout {
        border-top: none;
        margin-top: 0;
        padding-top: 0.5rem;
        margin-left: auto;
    }

    .hd-stat-cards {
        grid-template-columns: 1fr;
    }

    .hd-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .hd-address-cards {
        grid-template-columns: 1fr;
    }

    .hd-dashboard-ctas {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hd-account-page {
        padding-top: var(--hd-space-lg);
        padding-bottom: var(--hd-space-2xl);
    }

    .hd-account-sidebar-card {
        flex-direction: column;
    }

    .hd-account-sidebar-header {
        flex-direction: column;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-right: var(--hd-space-lg);
    }

    .hd-account-avatar {
        margin: 0 auto;
    }

    .hd-account-nav {
        justify-content: center;
    }

    .hd-order-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hd-order-table {
        min-width: 520px;
    }

    .hd-support-banner {
        flex-direction: column;
        text-align: center;
    }

    .hd-order-header {
        flex-direction: column;
    }

    .hd-order-pagination {
        flex-direction: column;
        gap: var(--hd-space-md);
        text-align: center;
    }

    .hd-form-grid {
        grid-template-columns: 1fr;
    }

    .hd-dashboard-greeting h1 {
        font-size: 1.5rem;
    }

    .hd-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hd-account-container {
        padding: 0 0.75rem;
    }

    .hd-account-gate {
        margin: 2rem auto;
        padding: var(--hd-space-lg);
    }

    .hd-content-card-header {
        padding: var(--hd-space-md);
    }

    .hd-order-table th,
    .hd-order-table td {
        padding-left: var(--hd-space-md);
        padding-right: var(--hd-space-md);
    }

    .hd-edit-form {
        padding: var(--hd-space-lg);
    }

    .hd-shipping-tracker {
        padding: var(--hd-space-lg);
    }

    .hd-tracker-step {
        font-size: 0.625rem;
    }
}


/* ============================================================
   DASHBOARD STITCH ADDITIONS (screen_01 b335bab9)
   ============================================================ */

/* === Dashboard Greeting (Stitch: full-width above sidebar) === */
.hd-dashboard-greeting {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--hd-space-md);
    margin-bottom: var(--hd-space-xl);
}
.hd-dashboard-greeting h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0;
}
.hd-dashboard-greeting h1 .hd-greeting-name {
    font-style: italic;
    background: var(--hd-gradient-metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hd-dashboard-greeting-meta {
    text-align: right;
}
.hd-dashboard-greeting-meta .hd-last-login {
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    font-weight: 300;
    margin-bottom: 0.25rem;
}
.hd-dashboard-greeting-meta .hd-partner-status {
    font-size: 0.75rem;
    color: var(--hd-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === Stat Card Stitch Enhancements === */
/* Override the existing .hd-stat-card to remove the gold top border
   and match Stitch's cleaner card style */
.hd-stat-card::before {
    display: none;
}
.hd-stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--hd-space-md);
}
.hd-stat-icon {
    padding: 0.75rem;
    border-radius: var(--hd-radius-lg);
    transition: background var(--hd-transition-fast), color var(--hd-transition-fast);
}
.hd-stat-card:hover .hd-stat-icon-gold {
    background: var(--hd-primary);
    color: white;
}
.hd-stat-icon-gold {
    background: rgba(197, 157, 95, 0.1);
    color: var(--hd-primary);
}
.hd-stat-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}
.hd-stat-card:hover .hd-stat-icon-blue {
    background: #2563eb;
    color: white;
}
.hd-stat-icon-emerald {
    background: #ecfdf5;
    color: #059669;
}
.hd-stat-card:hover .hd-stat-icon-emerald {
    background: #059669;
    color: white;
}
.hd-stat-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hd-text-muted);
}
.hd-stat-tag-emerald {
    color: #059669;
    background: #ecfdf5;
    padding: 0.125rem 0.5rem;
    border-radius: var(--hd-radius-full);
}
.hd-stat-description {
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    margin-bottom: var(--hd-space-md);
}
.hd-stat-footer {
    padding-top: var(--hd-space-md);
    border-top: 1px solid #f8fafc;
}
.hd-stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color var(--hd-transition-fast);
}
.hd-stat-link-gold {
    color: var(--hd-primary);
}
.hd-stat-link-gold:hover {
    color: var(--hd-primary-dark);
}
.hd-stat-link-muted {
    color: var(--hd-text-muted);
}
.hd-stat-link-muted:hover {
    color: var(--hd-primary);
}
.hd-stat-link .material-symbols-outlined {
    font-size: 14px;
}

/* Address card value is smaller than numeric cards */
.hd-stat-value-text {
    font-family: var(--hd-font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}
.hd-stat-description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Stitch Status Badges (standalone color variants) === */
.hd-badge-dot-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.hd-badge-dot-blue::before {
    background: #3b82f6;
}
.hd-badge-dot-emerald {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.hd-badge-dot-emerald::before {
    background: #10b981;
}
.hd-badge-dot-amber {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.hd-badge-dot-amber::before {
    background: #f59e0b;
}
.hd-badge-dot-yellow {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}
.hd-badge-dot-yellow::before {
    background: #eab308;
}
.hd-badge-dot-red {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.hd-badge-dot-red::before {
    background: #ef4444;
}
.hd-badge-dot-gray {
    background: #f8fafc;
    color: var(--hd-text-muted);
    border: 1px solid #e2e8f0;
}
.hd-badge-dot-gray::before {
    background: #94a3b8;
}

/* === Dashboard CTA Grid === */
.hd-dashboard-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hd-space-lg);
    margin-top: var(--hd-space-xl);
}

/* Dark CTA card (Download Catalog) */
.hd-cta-card-dark {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-xl);
    overflow: hidden;
    transition: box-shadow var(--hd-transition-base);
}
.hd-cta-card-dark:hover {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}
.hd-cta-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    filter: blur(2rem);
    transform: translate(50%, -50%);
}
.hd-cta-card-dark h3 {
    font-family: var(--hd-font-display);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.hd-cta-card-dark p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: var(--hd-space-lg);
    max-width: 20rem;
    position: relative;
    z-index: 1;
}
.hd-cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--hd-radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--hd-transition-fast);
    position: relative;
    z-index: 1;
}
.hd-cta-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}
.hd-cta-btn-ghost .material-symbols-outlined {
    font-size: 18px;
}

/* Light CTA card (Need Assistance) */
.hd-cta-card-light {
    position: relative;
    background: white;
    border-radius: var(--hd-radius-xl);
    padding: var(--hd-space-xl);
    border: 1px solid #f1f5f9;
    box-shadow: var(--hd-shadow-soft);
    overflow: hidden;
    transition: box-shadow var(--hd-transition-base);
}
.hd-cta-card-light:hover {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}
.hd-cta-card-light::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: rgba(197, 157, 95, 0.05);
    border-radius: 50%;
    filter: blur(2rem);
    transform: translate(50%, -50%);
}
.hd-cta-card-light h3 {
    font-family: var(--hd-font-display);
    font-size: 1.25rem;
    color: var(--hd-charcoal);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.hd-cta-card-light p {
    color: var(--hd-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--hd-space-lg);
    max-width: 20rem;
    position: relative;
    z-index: 1;
}
.hd-cta-card-light .hd-cta-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hd-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--hd-transition-fast);
    position: relative;
    z-index: 1;
}
.hd-cta-card-light .hd-cta-text-btn:hover {
    color: var(--hd-primary-dark);
    transform: translateX(0.25rem);
}
.hd-cta-card-light .hd-cta-text-btn .material-symbols-outlined {
    font-size: 18px;
}
.hd-cta-watermark {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: #f1f5f9;
    z-index: 0;
}
.hd-cta-watermark .material-symbols-outlined {
    font-size: 4rem;
}

/* === Recent Orders Glass Panel (Stitch style) === */
.hd-orders-glass-panel {
    background: rgba(255,255,255,0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: var(--hd-radius-xl);
    overflow: hidden;
}
.hd-orders-glass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hd-space-lg) var(--hd-space-xl);
    border-bottom: 1px solid #f1f5f9;
    background: rgba(255,255,255,0.5);
}
.hd-orders-glass-header h2 {
    font-family: var(--hd-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
}
.hd-orders-glass-header a {
    font-size: 0.875rem;
    color: var(--hd-primary);
    font-weight: 700;
    text-decoration: none;
}
.hd-orders-glass-header a:hover {
    color: var(--hd-primary-dark);
}

/* ============================================================
   SECTION 27: Payment Proof Card (Order Detail)
   Upload form and read-only display for payment proof on
   the My Account → View Order page.
   ============================================================ */

.hd-payment-proof-card h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hd-proof-existing {
    margin-bottom: var(--hd-space-md);
    padding-bottom: var(--hd-space-md);
    border-bottom: 1px solid #f1f5f9;
}

.hd-proof-view-link {
    color: var(--hd-primary);
    text-decoration: none;
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: color var(--hd-transition-fast);
}

.hd-proof-view-link:hover {
    color: var(--hd-primary-dark);
    text-decoration: underline;
}

/* 2-column upload form grid */
.hd-proof-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hd-space-md);
    margin-bottom: var(--hd-space-md);
}

.hd-proof-field label {
    display: block;
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hd-charcoal);
    margin-bottom: 0.375rem;
}

.hd-proof-field .hd-input {
    width: 100%;
}

/* Upload zone reuse from checkout styles */
.hd-payment-proof-card .hd-upload-zone {
    position: relative;
    border: 2px dashed #e2e8f0;
    border-radius: var(--hd-radius-md);
    padding: 0.75rem 1rem;
    transition: border-color var(--hd-transition-fast), background var(--hd-transition-fast);
}

.hd-payment-proof-card .hd-upload-zone:hover {
    border-color: var(--hd-primary);
    background: rgba(197, 157, 95, 0.03);
}

.hd-payment-proof-card .hd-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.hd-payment-proof-card .hd-upload-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
}

.hd-payment-proof-card .hd-upload-text {
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    color: var(--hd-text-muted);
}

.hd-payment-proof-card .hd-upload-trigger .material-symbols-outlined {
    font-size: 20px;
    color: var(--hd-primary);
}

/* Form actions row */
.hd-proof-form-actions {
    display: flex;
    align-items: center;
    gap: var(--hd-space-md);
    flex-wrap: wrap;
}

/* Upload status messages */
.hd-upload-status {
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--hd-radius-sm);
}

.hd-upload-status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hd-upload-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Verified note for read-only state */
.hd-proof-verified-note {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: #065f46;
    margin-top: var(--hd-space-md);
    margin-bottom: 0;
}

/* Responsive: collapse proof grid on mobile */
@media (max-width: 768px) {
    .hd-proof-form-grid {
        grid-template-columns: 1fr;
    }
}


/* === Responsive: Dashboard Stitch === */
@media (max-width: 768px) {
    .hd-dashboard-greeting {
        flex-direction: column;
        align-items: flex-start;
    }
    .hd-dashboard-greeting-meta {
        text-align: left;
    }
    .hd-dashboard-greeting h1 {
        font-size: 1.75rem;
    }
    .hd-dashboard-cta-grid {
        grid-template-columns: 1fr;
    }
}
