/* ═══════════════════════════════════════════
   SIBHA & KEYS — E-Commerce Styles
   RTL Arabic-First | Luxury Gold/Amber Theme
   ═══════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --gold: #c9a96e;
    --gold-light: #f0d69a;
    --gold-dark: #8b6914;
    --amber: #d4a056;
    --amber-light: #f5e6c8;
    --bg: #faf8f3;
    --bg-dark: #1a1510;
    --text: #2c2416;
    --text-light: #6b5d4a;
    --text-muted: #9a8b74;
    --white: #ffffff;
    --border: #e8dfcc;
    --shadow: rgba(44, 36, 22, 0.08);
    --shadow-lg: rgba(44, 36, 22, 0.15);
    --green: #25d366;
    --green-dark: #1da851;
    --red: #e74c3c;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'Noto Naskh Arabic', serif;
    --font-en: 'Playfair Display', serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Announcement Bar ─── */
.announcement-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--amber), var(--gold-dark));
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ─── Navigation ─── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    position: relative;
    background: none;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text);
}

.cart-btn:hover {
    background: var(--amber-light);
}

.cart-count {
    position: absolute;
    top: -2px;
    left: -2px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 110, 0.4);
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-whatsapp {
    background: var(--green);
    color: var(--white);
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-add {
    background: var(--gold);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add:hover {
    background: var(--gold-dark);
    transform: scale(1.05);
}

/* ─── Hero Section ─── */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 160, 86, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--amber-light);
    color: var(--gold-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title-ar {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.hero-title-en {
    display: block;
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 600;
    margin: 8px 0;
}

.hero-title-tagline {
    display: block;
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-lg);
}

.hero-image-placeholder {
    background: linear-gradient(135deg, var(--amber-light), var(--gold-light));
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gold-dark);
}

/* Hero Image */
.hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: 0 8px 30px var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    animation: floatCard 3s ease-in-out infinite;
}

.hero-float-card small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.hero-float-1 {
    top: 20px;
    left: -20px;
    animation-delay: 0s;
}

.hero-float-2 {
    bottom: 40px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Seasonal Banner ─── */
.seasonal-banner {
    background: linear-gradient(135deg, var(--bg-dark), #2a2015);
    padding: 20px 0;
}

.seasonal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.seasonal-emoji {
    font-size: 2rem;
}

.seasonal-text {
    display: flex;
    flex-direction: column;
    color: var(--gold-light);
}

.seasonal-text strong {
    font-size: 1.1rem;
}

.seasonal-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ─── Section Styles ─── */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: var(--amber-light);
    color: var(--gold-dark);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ─── Products ─── */
.products {
    padding: 80px 0;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.badge-premium { background: var(--gold-dark); }
.product-badge.badge-new { background: #667eea; }
.product-badge.badge-custom { background: #2c3e50; }

/* Tag number badge — visible under images */
.product-tag-number {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    direction: ltr;
    text-align: center;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-img-placeholder {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-size: 3rem;
}

.product-img-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-ar);
}

.product-info {
    padding: 20px;
}

.product-material {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 6px 0 8px;
    color: var(--text);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.rating-count {
    color: var(--text-muted);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── About Section ─── */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow-lg);
}

.about-img-placeholder {
    background: linear-gradient(135deg, var(--amber-light), var(--gold-light));
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gold-dark);
    font-size: 4rem;
}

.about-img-placeholder p {
    font-size: 1rem;
    font-weight: 600;
}

.about-tagline {
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}

.feature small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Reviews ─── */
.reviews {
    padding: 80px 0;
    background: var(--bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: 0 10px 30px var(--shadow);
}

.review-stars {
    font-size: 1rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.review-author strong {
    display: block;
    font-size: 0.9rem;
}

.review-author small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Contact ─── */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-method strong {
    display: block;
    font-size: 0.95rem;
}

.contact-method small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-form > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--white);
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group textarea {
    resize: vertical;
}

/* ─── Photography Briefs Page ─── */
.pb-main {
    min-height: 80vh;
    padding: 120px 0 60px;
}

.pb-header {
    text-align: center;
    margin-bottom: 50px;
}

.pb-header h1 {
    font-size: 2.2em;
    color: var(--gold-dark);
    font-family: var(--font-en);
    margin-bottom: 10px;
}

.pb-subtitle {
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.pb-tag-info {
    background: var(--amber-light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: right;
    font-size: 0.95em;
    line-height: 1.6;
    border-right: 4px solid var(--gold);
}

.pb-tag-info code {
    background: var(--gold-dark);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.tag-badge {
    display: inline-block;
    background: var(--gold-dark);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.product-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 10px;
}

.pb-section-title {
    font-size: 1.6em;
    color: var(--text);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.pb-section-desc {
    color: var(--text-light);
    margin-bottom: 30px;
}

.pb-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s;
}

.pb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--shadow-lg);
}

.pb-card.premium {
    border-right: 4px solid var(--gold);
}

.pb-card-header {
    padding: 18px 25px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-card-header h3 {
    font-size: 1.1em;
    color: var(--text);
    flex: 1;
}

.pb-card-body {
    padding: 25px;
}

.pb-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

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

.pb-specs h4,
.pb-brief h4 {
    font-size: 0.95em;
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.pb-specs ul {
    list-style: none;
    padding: 0;
}

.pb-specs ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
    color: var(--text-light);
}

.pb-specs ul li:last-child {
    border-bottom: none;
}

.pb-specs ul li strong {
    color: var(--text);
}

.pb-brief p {
    font-size: 0.9em;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.pb-footer-note {
    text-align: center;
    padding: 40px;
    margin-top: 30px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.pb-footer-note p {
    font-size: 0.95em;
    color: var(--text-light);
}

/* ─── Footer ─── */
.footer {
    background: var(--bg-dark);
    color: var(--gold-light);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-light);
}

.footer-brand p {
    margin-top: 10px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-brand small {
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-powered {
    margin-top: 5px;
    font-size: 0.8rem;
}

/* ─── Floating WhatsApp Button ─── */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ─── Cart Sidebar ─── */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 2001;
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 1.2rem;
}

.cart-close {
    background: none;
    font-size: 1.3rem;
    color: var(--text-light);
    padding: 5px;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.cart-empty span {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    color: var(--red);
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: rgba(231, 76, 60, 0.1);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cart-total strong {
    color: var(--gold-dark);
    font-size: 1.3rem;
}

/* ─── Benefits (Why Misbaha Key Holder) ─── */
.benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.benefits .section-header {
    position: relative;
    z-index: 1;
}

.benefits .section-title {
    color: var(--white);
}

.benefits .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.benefits .section-badge {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.benefit-title {
    color: var(--gold);
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Benefits Gallery */
.benefits-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-image-placeholder { height: 300px; }

    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px var(--shadow);
    }

    .hero-title-ar { font-size: 2.2rem; }
    .hero-title-tagline { font-size: 1.5rem; }
    .hero-title-en { font-size: 1.1rem; }

    .section-title { font-size: 1.8rem; }

    .products-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .benefits-gallery { grid-template-columns: 1fr 1fr; }

    .hero-stats { gap: 20px; }
    .stat-num { font-size: 1.4rem; }

    .seasonal-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 0; }
    .hero-title-ar { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .product-filters { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
    .benefits-grid { grid-template-columns: 1fr; }
    .benefits-gallery { grid-template-columns: 1fr; }
}

/* ─── Islamic Geometric Pattern (CSS-only) ─── */
.islamic-pattern {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.05;
    background:
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%),
        linear-gradient(60deg, var(--gold-light) 25%, transparent 25.5%, transparent 75%, var(--gold-light) 75%),
        linear-gradient(60deg, var(--gold-light) 25%, transparent 25.5%, transparent 75%, var(--gold-light) 75%);
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
}

/* ─── Scroll animations ─── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   CHECKOUT MODAL & PAYMENT STYLES
   ═══════════════════════════════════════════ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    font-size: 1.3rem;
    color: var(--text-light);
    padding: 5px;
    transition: var(--transition);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
}

/* Checkout Sections */
.checkout-section {
    margin-bottom: 25px;
}

.checkout-section h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-items {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-name {
    font-weight: 500;
}

.checkout-item-qty {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkout-item-price {
    font-weight: 700;
    color: var(--gold-dark);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.checkout-grand-total {
    border-top: 2px solid var(--gold);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.checkout-grand-total strong {
    color: var(--gold-dark);
    font-size: 1.3rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: var(--gold);
    background: var(--amber-light);
}

.payment-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.payment-label strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}

.payment-label small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Card Payment Form */
.payment-note {
    background: #e8f5e9;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #2e7d32;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.payment-logos span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.payment-logo {
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* Success Modal */
.modal-success {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounceIn 0.5s ease;
}

.modal-success h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.modal-success p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ─── Responsive for Modal ─── */
@media (max-width: 480px) {
    .modal {
        max-height: 95vh;
        border-radius: var(--radius);
    }
    .modal-header { border-radius: var(--radius) var(--radius) 0 0; }
    .form-row { grid-template-columns: 1fr; }
    .modal-footer { flex-direction: column; }
    .payment-logos { gap: 6px; }
}

/* ─── Product Image CSS Art ─── */
.product-img {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-img-inner {
    position: relative;
    width: 180px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bead string - vertical loop of beads */
.bead-string {
    position: absolute;
    width: 120px;
    height: 160px;
    border-radius: 60px;
    border: 3px solid;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.bead {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.3);
}

/* Position 33 beads around the oval */
.bead:nth-child(1)  { top: 0%; }
.bead:nth-child(2)  { top: 3.1%; left: 70%; }
.bead:nth-child(3)  { top: 6.2%; left: 85%; }
.bead:nth-child(4)  { top: 9.3%; left: 95%; }
.bead:nth-child(5)  { top: 12.4%; left: 100%; }
.bead:nth-child(6)  { top: 18.6%; left: 100%; }
.bead:nth-child(7)  { top: 24.8%; left: 95%; }
.bead:nth-child(8)  { top: 31%; left: 85%; }
.bead:nth-child(9)  { top: 37.2%; left: 70%; }
.bead:nth-child(10) { top: 43.4%; left: 50%; }
.bead:nth-child(11) { top: 49.6%; left: 30%; }
.bead:nth-child(12) { top: 55.8%; left: 15%; }
.bead:nth-child(13) { top: 62%; left: 5%; }
.bead:nth-child(14) { top: 68.2%; left: 0%; }
.bead:nth-child(15) { top: 74.4%; left: 0%; }
.bead:nth-child(16) { top: 80.6%; left: 5%; }
.bead:nth-child(17) { top: 86.8%; left: 15%; }
.bead:nth-child(18) { top: 90.7%; left: 30%; }
.bead:nth-child(19) { top: 93.8%; left: 50%; }
.bead:nth-child(20) { top: 90.7%; left: 70%; }
.bead:nth-child(21) { top: 86.8%; left: 85%; }
.bead:nth-child(22) { top: 80.6%; left: 95%; }
.bead:nth-child(23) { top: 74.4%; left: 100%; }
.bead:nth-child(24) { top: 68.2%; left: 100%; }
.bead:nth-child(25) { top: 62%; left: 95%; }
.bead:nth-child(26) { top: 55.8%; left: 85%; }
.bead:nth-child(27) { top: 49.6%; left: 70%; }
.bead:nth-child(28) { top: 43.4%; left: 50%; }
.bead:nth-child(29) { top: 37.2%; left: 30%; }
.bead:nth-child(30) { top: 31%; left: 15%; }
.bead:nth-child(31) { top: 24.8%; left: 5%; }
.bead:nth-child(32) { top: 18.6%; left: 0%; }
.bead:nth-child(33) { top: 12.4%; left: 0%; }

/* Key ring at bottom */
.key-ring {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid;
    z-index: 2;
}

.key-connector {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: currentColor;
    z-index: 2;
}

/* Engraving tag for custom product */
.engraving-tag {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.7;
    z-index: 3;
}

/* Product image label */
.product-img-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    white-space: nowrap;
    z-index: 3;
}

/* Amber product */
.product-img-amber {
    background: linear-gradient(160deg, #d4a056 0%, #f0d69a 40%, #c8944a 100%);
}
.product-img-amber .bead-string { border-color: rgba(139, 105, 20, 0.6); }
.product-img-amber .bead { background: radial-gradient(circle at 35% 35%, #f5e6a0, #d4a056 50%, #a07830); }
.product-img-amber .key-ring { border-color: #c0c0c0; background: linear-gradient(135deg, #e8e8e8, #a0a0a0); }
.product-img-amber .key-connector { background: #c0c0c0; }

/* Oud product */
.product-img-oud {
    background: linear-gradient(160deg, #5c3d2e 0%, #8b6914 40%, #4a2f1e 100%);
}
.product-img-oud .bead-string { border-color: rgba(139, 105, 20, 0.8); }
.product-img-oud .bead { background: radial-gradient(circle at 35% 35%, #8b6914, #5c3d2e 50%, #3a2010); }
.product-img-oud .key-ring { border-color: #d4a056; background: linear-gradient(135deg, #f0d69a, #c9a96e); }
.product-img-oud .key-connector { background: #d4a056; }

/* Pearl product */
.product-img-pearl {
    background: linear-gradient(160deg, #e8e0d4 0%, #f5f0e8 40%, #d4ccc0 100%);
}
.product-img-pearl .bead-string { border-color: rgba(180, 160, 140, 0.6); }
.product-img-pearl .bead { background: radial-gradient(circle at 35% 35%, #ffffff, #f0e8dc 50%, #d4ccc0); }
.product-img-pearl .key-ring { border-color: #c0c0c0; background: linear-gradient(135deg, #f0f0f0, #c0c0c0); }
.product-img-pearl .key-connector { background: #c0c0c0; }

/* Acrylic product */
.product-img-acrylic {
    background: linear-gradient(160deg, #667eea 0%, #764ba2 40%, #5a67d8 100%);
}
.product-img-acrylic .bead-string { border-color: rgba(255, 255, 255, 0.4); }
.product-img-acrylic .bead { background: radial-gradient(circle at 35% 35%, #a78bfa, #764ba2 50%, #4c1d95); }
.product-img-acrylic .key-ring { border-color: #a0a0a0; background: linear-gradient(135deg, #d0d0d0, #808080); }
.product-img-acrylic .key-connector { background: #a0a0a0; }

/* Custom product */
.product-img-custom {
    background: linear-gradient(160deg, #2c3e50 0%, #c9a96e 40%, #1a252f 100%);
}
.product-img-custom .bead-string { border-color: rgba(201, 169, 110, 0.6); }
.product-img-custom .bead { background: radial-gradient(circle at 35% 35%, #4a5568, #2c3e50 50%, #1a202c); }
.product-img-custom .key-ring { border-color: #d4a056; background: linear-gradient(135deg, #f0d69a, #c9a96e); }
.product-img-custom .key-connector { background: #d4a056; }

/* ─── Coupon Code Styles ─── */
.coupon-input-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-en);
    letter-spacing: 2px;
    transition: var(--transition);
}

.coupon-input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.coupon-message {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 20px;
}

.coupon-message.success { color: #2e7d32; }
.coupon-message.error { color: var(--red); }

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 14px;
    background: #e8f5e9;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #2e7d32;
}

.coupon-applied strong {
    color: #1b5e20;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════ */
/* PHASE 2 — NEW STYLES */
/* ═══════════════════════════════════════════ */

/* Wishlist Heart on Product Cards */
.wishlist-heart {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #999;
    transition: all 0.25s;
    backdrop-filter: blur(4px);
}
.wishlist-heart:hover { transform: scale(1.15); }
.wishlist-heart.active { color: #e91e63; background: #fce4ec; }
.product-card { position: relative; }

/* Nav Wishlist Count */
.wishlist-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e91e63;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Quick View Modal */
.quickview-modal {
    max-width: 900px !important;
    width: 90% !important;
}

/* Wishlist Page */
.wishlist-page { padding-top: 120px; min-height: 60vh; }
.wishlist-empty { text-align: center; padding: 60px 20px; }
.wishlist-empty span { font-size: 4rem; display: block; margin-bottom: 16px; }
.wishlist-empty h2 { font-size: 1.5rem; margin-bottom: 8px; }
.wishlist-empty p { color: var(--text-muted); margin-bottom: 20px; }
.wishlist-grid .product-card { cursor: pointer; }

/* Responsive Quick View */
@media (max-width: 768px) {
    .quickview-modal .modal-body { grid-template-columns: 1fr !important; }
    .wishlist-heart { width: 32px; height: 32px; font-size: 1rem; top: 8px; left: 8px; }
}

/* ═══════════════════════════════════════════ */
/* REFERRAL SECTION */
/* ═══════════════════════════════════════════ */
.referral {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1510 0%, #2a2015 50%, #1a1510 100%);
    position: relative;
    overflow: hidden;
}

.referral::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.referral .section-header {
    position: relative;
    z-index: 1;
}

.referral .section-title {
    color: var(--gold-light);
}

.referral .section-desc {
    color: rgba(255, 255, 255, 0.65);
}

.referral .section-badge {
    background: rgba(201, 169, 110, 0.18);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.25);
}

/* Referral Card */
.referral-card {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.referral-card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--amber), var(--gold));
    background-size: 300% 300%;
    animation: glowBorder 4s ease-in-out infinite alternate;
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: 0;
}

@keyframes glowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.referral-card-content {
    position: relative;
    z-index: 1;
    background: rgba(42, 32, 21, 0.97);
    border-radius: var(--radius-lg);
    padding: 45px 40px;
    margin: 2px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    text-align: center;
}

.referral-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.referral-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    font-family: var(--font-ar);
}

.referral-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.referral-desc strong {
    color: var(--gold);
}

/* Steps */
.referral-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.referral-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: var(--radius);
    padding: 14px 18px;
    min-width: 200px;
    text-align: right;
    transition: var(--transition);
}

.referral-step:hover {
    border-color: rgba(201, 169, 110, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.referral-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.referral-step strong {
    display: block;
    color: var(--gold-light);
    font-size: 0.95rem;
}

.referral-step small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    margin-top: 2px;
}

.referral-step-arrow {
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.5;
    flex-shrink: 0;
}

/* Generator */
.referral-generator {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
}

.referral-generator label {
    display: block;
    color: var(--gold-light);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.referral-input-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.referral-input-row input {
    flex: 1;
    max-width: 300px;
    padding: 12px 18px;
    border: 2px solid rgba(201, 169, 110, 0.25);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-ar);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    transition: var(--transition);
    text-align: center;
}

.referral-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.referral-input-row input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

/* Result */
.referral-result {
    margin-top: 20px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.referral-code-box {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.referral-code-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.referral-code-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 24px;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    letter-spacing: 3px;
}

.referral-link-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 15px;
}

.referral-link-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
}

.referral-link-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.referral-link-row input {
    flex: 1;
    max-width: 350px;
    padding: 10px 16px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--gold-light);
    direction: ltr;
    text-align: center;
}

.referral-copy-feedback {
    display: none;
    color: #4caf50;
    font-size: 0.82rem;
    margin-top: 8px;
    text-align: center;
}

.referral-copy-feedback.show {
    display: block;
}

.referral-benefit-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.6;
}

.referral-benefit-note strong {
    color: var(--gold-light);
}

/* Success Modal Referral Box */
.referral-success-box {
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.referral-success-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.referral-success-box h3 {
    color: var(--gold-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.referral-success-box p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.referral-success-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.referral-success-code {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: white;
    padding: 8px 24px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    letter-spacing: 3px;
}

.referral-success-feedback {
    display: none;
    color: #2e7d32;
    font-size: 0.82rem;
    margin-top: 8px;
    text-align: center;
}

.referral-success-feedback.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .referral-steps {
        flex-direction: column;
        align-items: stretch;
    }
    .referral-step-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
    .referral-card-content {
        padding: 30px 20px;
    }
    .referral-title {
        font-size: 1.3rem;
    }
    .referral-code-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .referral-input-row {
        flex-direction: column;
    }
    .referral-input-row input {
        max-width: 100%;
    }
    .referral-step {
        min-width: unset;
    }
}
