/* ═══════════════════════════════════════════════════════════════
   HRN PERFUMES - Additional Features
   ═══════════════════════════════════════════════════════════════ */

.notifications-panel {
    position: fixed;
    top: 70px;
    left: 12px;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: 500px;
    background: #F2EDE5;
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(90, 78, 66, 0.25);
    z-index: 1100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popupIn 0.25s ease;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.notif-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-dark);
}

.notif-header h3 i { color: var(--brand-gold); }

.notif-clear {
    background: transparent;
    border: none;
    color: var(--brand-gold);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.notif-clear:hover { background: rgba(184, 153, 104, 0.15); }

.notif-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
}

.notif-item:hover { background: rgba(255, 255, 255, 0.7); }
.notif-item.unread { background: rgba(184, 153, 104, 0.08); }

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(184, 153, 104, 0.15);
    color: var(--brand-gold);
}

.notif-icon.order, .notif-icon.success { background: rgba(90, 160, 100, 0.15); color: #4A8050; }
.notif-icon.warning { background: rgba(200, 160, 60, 0.15); color: #A07830; }
.notif-icon.promo { background: rgba(200, 90, 80, 0.15); color: #C85A50; }

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

.notif-content strong {
    display: block;
    font-size: 13px;
    color: var(--brand-dark);
    margin-bottom: 2px;
}

.notif-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notif-content small { font-size: 10px; color: var(--text-muted); }

.notif-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.notif-empty i { font-size: 40px; opacity: 0.4; display: block; margin-bottom: 12px; }
.notif-empty p { font-size: 13px; }

/* REVIEWS */
.tile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--brand-gold);
    font-weight: 700;
    margin-top: 2px;
}

.reviews-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    max-height: 400px;
    overflow-y: auto;
}

.reviews-header { margin-bottom: 16px; }
.reviews-summary { margin-bottom: 16px; }

.reviews-avg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.avg-number { font-size: 32px; font-weight: 900; color: var(--brand-dark); line-height: 1; }
.stars-display { display: flex; gap: 2px; color: var(--brand-gold); }
.reviews-count { font-size: 12px; color: var(--text-muted); margin-right: auto; }

.write-review {
    padding: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.write-review h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.star-rating-input {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--brand-gold);
    cursor: pointer;
}

.star-rating-input i { transition: transform 0.15s; }
.star-rating-input i:hover { transform: scale(1.15); }

.write-review textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    outline: none;
    margin-bottom: 10px;
}

.write-review textarea:focus { border-color: var(--brand-gold); }

.reviews-list { display: flex; flex-direction: column; gap: 10px; }

.review-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-darker));
    color: var(--brand-gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.review-head strong { display: block; font-size: 13px; color: var(--brand-dark); }

.review-stars {
    display: flex;
    gap: 2px;
    font-size: 11px;
    color: var(--brand-gold);
    margin-top: 2px;
}

.review-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
}

.review-item small { font-size: 10px; color: var(--text-muted); }

.no-reviews { text-align: center; padding: 30px 20px; color: var(--text-muted); }
.no-reviews i { font-size: 36px; opacity: 0.4; display: block; margin-bottom: 10px; }
.no-reviews p { font-size: 12px; }

/* LOYALTY */
.loyalty-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(184, 153, 104, 0.15), rgba(212, 181, 137, 0.1));
    border: 1px solid rgba(184, 153, 104, 0.3);
    border-radius: var(--radius-md);
    margin: 12px 0;
    width: 100%;
}

.loyalty-box i { font-size: 26px; color: var(--brand-gold); }
.loyalty-box strong { display: block; font-size: 20px; font-weight: 900; color: var(--brand-dark); line-height: 1; }
.loyalty-box small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.loyalty-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
}

.loyalty-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-gold);
    cursor: pointer;
}

/* COUPON */
.coupon-box {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.coupon-box .input-group { flex: 1; margin: 0; }

.btn-apply-coupon {
    padding: 0 18px;
    background: linear-gradient(135deg, var(--brand-gold-bright), var(--brand-gold));
    color: var(--brand-darker);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

/* ANALYTICS */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.analytics-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.analytics-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(90, 78, 66, 0.12), rgba(184, 153, 104, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--brand-dark);
    flex-shrink: 0;
}

.analytics-value { display: block; font-size: 20px; font-weight: 900; color: var(--brand-dark); line-height: 1.1; }
.analytics-label { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

.analytics-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.analytics-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.analytics-section h3 i { color: var(--brand-gold); font-size: 18px; }

.top-products-list { display: flex; flex-direction: column; gap: 8px; }

.top-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(242, 237, 229, 0.6);
    border-radius: var(--radius-md);
}

.top-product-item .rank {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 900;
    color: var(--brand-gold);
    min-width: 32px;
}

.top-product-item .product-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
}

.top-product-item .product-qty { font-size: 12px; color: var(--text-muted); font-weight: 700; }

.sales-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 180px;
    padding: 10px 0;
    overflow-x: auto;
}

.sales-bar {
    flex: 1;
    min-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--brand-gold-bright), var(--brand-gold));
    border-radius: 6px 6px 0 0;
    min-height: 4px;
}

.bar-label { font-size: 10px; color: var(--text-muted); font-weight: 700; text-align: center; }
.bar-value { font-size: 10px; color: var(--brand-gold); font-weight: 800; }
.no-data { color: var(--text-muted); font-size: 13px; text-align: center; padding: 20px; }

@media (max-width: 768px) {
    .notifications-panel { left: 12px; right: 12px; width: auto; max-height: 70vh; }
    .reviews-container { max-height: 300px; }
    .analytics-grid { grid-template-columns: repeat(2, 1fr); }
    .analytics-card { padding: 14px; gap: 10px; }
    .analytics-icon { width: 38px; height: 38px; font-size: 18px; }
    .analytics-value { font-size: 16px; }
    .analytics-label { font-size: 10px; }
    .coupon-box { flex-direction: column; }
    .btn-apply-coupon { padding: 12px; width: 100%; }
    .sales-chart { height: 140px; }
    .avg-number { font-size: 26px; }
}

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