/* ==========================================
   MarketSplit Customer Space Styles
   ========================================== */

/* ---- Customer Sub-Navigation ---- */
.customer-subnav {
    display: flex;
    gap: 4px;
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.customer-subnav::-webkit-scrollbar { display: none; }

.c-tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.c-tab-btn i { width: 15px; height: 15px; }
.c-tab-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.c-tab-btn.active {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.1));
    border-color: var(--primary);
    color: var(--primary);
}
.c-tab-btn .notif-badge {
    background: var(--danger);
    color: white;
    border-radius: 10px;
    font-size: 10px;
    padding: 1px 6px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* ---- Customer Page Sections ---- */
.c-page { display: none; padding: 20px 24px; }
.c-page.active { display: block; }

/* ---- Filter & Sort Bar ---- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.filter-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}
.filter-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-price-input {
    width: 72px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    padding: 6px 8px;
}
.filter-price-input:focus { outline: none; border-color: var(--primary); }
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.filter-toggle input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; }
.filter-reset-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
}
.filter-reset-btn:hover { color: var(--danger); }

/* ---- Autocomplete Dropdown ---- */
.search-wrapper {
    position: relative;
    flex: 1;
}
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-md);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: fadeSlideDown 0.15s ease-out;
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
body.light-theme .autocomplete-dropdown { background: #fff; }

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: rgba(249, 115, 22, 0.1) !important; }
.autocomplete-item img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.autocomplete-item-info { flex: 1; min-width: 0; }
.autocomplete-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #000000 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.autocomplete-item-meta {
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8 !important;
    margin-top: 2px;
}
.autocomplete-item-price {
    font-size: 14px;
    font-weight: 800;
    color: #f97316 !important;
    flex-shrink: 0;
}
.autocomplete-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ---- Product Card Enhancements ---- */
.product-card { position: relative; }
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
    z-index: 2;
}
.wishlist-btn:hover { background: rgba(236,72,153,0.3); transform: scale(1.1); }
.wishlist-btn i { width: 16px; height: 16px; color: #fff; }
.wishlist-btn.active i { color: var(--secondary); fill: var(--secondary); }
.wishlist-btn.active { background: rgba(236,72,153,0.2); }

.product-rating-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.stars-display { color: #f59e0b; letter-spacing: 1px; font-size: 12px; }

/* ---- Product Detail Overlay ---- */
.product-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}
.product-detail-overlay.show { display: flex; }
.product-detail-panel {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    animation: slideUpPanel 0.3s cubic-bezier(0.34,1.56,0.64,1);
    color: #000000 !important;
}
body.light-theme .product-detail-panel { background: #ffffff !important; }
@keyframes slideUpPanel {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
@media (max-width: 700px) {
    .product-detail-grid { grid-template-columns: 1fr; }
}
.product-detail-image {
    height: 320px;
    object-fit: cover;
    border-radius: 20px 0 0 0;
    width: 100%;
}
@media (max-width: 700px) {
    .product-detail-image { border-radius: 20px 20px 0 0; height: 220px; }
}
.product-detail-info {
    padding: 28px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.product-detail-close {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #000000 !important;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 18px;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}
.product-detail-close:hover { background: #f97316 !important; color: #ffffff !important; }
.product-detail-category-tag {
    font-size: 11px;
    background: rgba(139,92,246,0.15);
    color: var(--primary);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-weight: 600;
    display: inline-block;
}
.product-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #000000 !important;
    line-height: 1.3;
}
.product-detail-price {
    font-size: 28px;
    font-weight: 800;
    color: #f97316 !important;
    background: none !important;
    -webkit-text-fill-color: #f97316 !important;
}
.product-detail-store {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f3f4f6 !important;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.product-detail-store img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}
.product-detail-store-info { font-size: 12px; }
.product-detail-store-info strong { color: #1d4ed8 !important; font-size: 13px; }
.product-detail-store-info span { color: #4b5563 !important; }
.product-detail-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}
.stock-in { color: var(--success); }
.stock-out { color: var(--danger); }
.product-detail-desc {
    font-size: 13px;
    color: #374151 !important;
    line-height: 1.6;
}
.product-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}
.product-detail-actions .btn { flex: 1; padding: 12px; font-size: 14px; }

/* Product Detail Tabs */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
}
.detail-tab-btn {
    padding: 12px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: -1px;
}
.detail-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.detail-tab-content { display: none; padding: 20px 24px 24px; }
.detail-tab-content.active { display: block; }

/* ---- Star Rating Widget ---- */
.star-picker {
    display: flex;
    gap: 6px;
    font-size: 28px;
    cursor: pointer;
}
.star-picker span {
    color: var(--border-color);
    transition: color 0.1s, transform 0.1s;
    line-height: 1;
    user-select: none;
}
.star-picker span.active,
.star-picker span.hover { color: #f59e0b; transform: scale(1.15); }

/* ---- Review Cards ---- */
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
    object-fit: cover;
}
.review-meta { flex: 1; }
.review-meta strong { font-size: 13px; color: var(--text-primary); }
.review-meta span { font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; }
.review-stars { color: #f59e0b; font-size: 13px; }
.review-comment { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 6px; }
.review-image {
    margin-top: 10px;
    max-width: 160px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.review-image:hover { transform: scale(1.03); }
.review-form-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.review-summary-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
}
.review-avg-score {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.review-avg-label { font-size: 11px; color: var(--text-muted); }

/* ---- Order History ---- */
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.order-card:hover { border-color: var(--primary); }
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
}
.order-id-label { font-size: 12px; color: var(--text-muted); }
.order-id-num { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.order-total { font-size: 16px; font-weight: 700; color: var(--success); }
.order-date { font-size: 11px; color: var(--text-muted); text-align: right; }
.order-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}
.status-confirmed { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-preparing { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-ready { background: rgba(16,185,129,0.15); color: #34d399; }
.status-out_for_delivery { background: rgba(139,92,246,0.15); color: var(--primary); }
.status-delivered { background: rgba(16,185,129,0.15); color: var(--success); }
.order-card-body { padding: 0 18px 18px; display: none; }
.order-card-body.open { display: block; }

/* Tracking Timeline */
.tracking-timeline {
    display: flex;
    align-items: center;
    margin: 16px 0;
    overflow-x: auto;
    padding-bottom: 8px;
}
.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    gap: 6px;
    position: relative;
}
.tracking-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}
.tracking-step:last-child::before { display: none; }
.tracking-step.done::before { background: var(--success); }
.tracking-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 1;
    transition: var(--transition-smooth);
}
.tracking-step.done .tracking-dot { border-color: var(--success); background: var(--success); color: white; }
.tracking-step.current .tracking-dot { border-color: var(--primary); background: var(--primary); color: white; box-shadow: 0 0 10px var(--primary-glow); }
.tracking-label {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    text-transform: capitalize;
    white-space: nowrap;
}
.tracking-step.done .tracking-label,
.tracking-step.current .tracking-label { color: var(--text-primary); font-weight: 600; }

.order-items-mini { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.order-item-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.order-item-mini img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.order-item-mini-info { flex: 1; }
.order-item-mini-info strong { font-size: 13px; color: var(--text-primary); }
.order-item-mini-info span { font-size: 11px; color: var(--text-muted); display: block; }
.order-item-mini-price { font-size: 13px; font-weight: 700; color: var(--primary); }

/* ---- Wishlist Grid ---- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.wishlist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.wishlist-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.wishlist-card-img {
    height: 140px;
    object-fit: cover;
    width: 100%;
}
.wishlist-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wishlist-card-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.wishlist-card-store { font-size: 11px; color: var(--text-muted); }
.wishlist-card-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.wishlist-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.wishlist-card-actions .btn { flex: 1; font-size: 12px; padding: 7px; }

/* ---- Notifications ---- */
.notifications-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}
.notif-item:hover { border-color: var(--primary); }
.notif-item.unread { border-left: 3px solid var(--primary); }
.notif-item.unread::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.notif-icon.order { background: rgba(59,130,246,0.15); }
.notif-icon.payment { background: rgba(16,185,129,0.15); }
.notif-icon.delivery { background: rgba(139,92,246,0.15); }
.notif-icon.promo { background: rgba(245,158,11,0.15); }
.notif-icon.message { background: rgba(236,72,153,0.15); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.notif-message { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* ---- Messages ---- */
.messages-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.messages-sidebar {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    background: rgba(255,255,255,0.01);
}
.messages-sidebar-header {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}
.message-thread-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.message-thread-item:hover,
.message-thread-item.active { background: rgba(139,92,246,0.08); }
.message-thread-store-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.message-thread-info { flex: 1; min-width: 0; }
.message-thread-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-thread-preview { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.messages-chat-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.messages-chat-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255,255,255,0.01);
}
.messages-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
}
.chat-bubble.sent {
    background: linear-gradient(135deg, var(--primary), rgba(139,92,246,0.7));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.received {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
}
.messages-chat-input {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(255,255,255,0.01);
}
.messages-chat-input textarea {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    padding: 10px 12px;
    resize: none;
    min-height: 44px;
    max-height: 100px;
    transition: border-color 0.2s;
}
.messages-chat-input textarea:focus { outline: none; border-color: var(--primary); }
.messages-chat-input button { padding: 10px 16px; flex-shrink: 0; }

/* ---- Profile Page ---- */
.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .customer-subnav {
        padding: 0 18px 10px;
        gap: 8px;
    }
    .c-page {
        padding: 18px 18px;
    }
    .filter-bar {
        padding: 12px 18px;
        gap: 10px;
    }
    .filter-group,
    .filter-price-inputs {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
    .filter-price-input {
        width: 100%;
    }
    .category-pill {
        padding: 10px 14px;
        font-size: 13px;
    }
}
@media (max-width: 700px) {
    .profile-layout { grid-template-columns: 1fr; }
    .c-page { padding: 16px 16px; }
    .filter-bar { padding: 12px 14px; }
    .notifications-list, .wishlist-card-actions {
        flex-direction: column;
    }
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .messages-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .messages-chat-input {
        flex-direction: column;
    }
    .messages-chat-input button,
    .filter-select,
    .filter-price-input {
        width: 100%;
    }
    .product-detail-image {
        height: 220px;
    }
    .product-detail-panel {
        max-width: 100%;
        margin: 0 10px;
    }
}
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.profile-avatar-wrapper { position: relative; }
.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    border: 3px solid var(--primary);
}
.profile-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.profile-email { font-size: 12px; color: var(--text-muted); }
.profile-member-since { font-size: 11px; color: var(--text-muted); }
.profile-stats-row {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 20px; font-weight: 800; color: var(--primary); }
.profile-stat-lbl { font-size: 10px; color: var(--text-muted); }
.profile-edit-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
}
.profile-edit-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; color: var(--text-primary); }
.profile-form { display: flex; flex-direction: column; gap: 14px; }

/* ---- Page Section Headers ---- */
.c-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.c-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.c-section-header h3 i { width: 20px; height: 20px; color: var(--primary); }

/* ---- Notification Bell ---- */
.notif-bell-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.notif-bell-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(139,92,246,0.1); }
.notif-bell-btn i { width: 18px; height: 18px; }
.notif-bell-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    min-width: 16px;
    text-align: center;
    border: 2px solid var(--bg-main);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state i {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
    opacity: 0.4;
}
.empty-state h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 13px; }

/* ---- OTP Input ---- */
.otp-digits {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 12px 0;
}
.otp-digits input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}
.otp-digits input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
