:root {
    --book-navy: #0d2247; --book-navy-light: #15326b; --book-red: #cc111a;
    --book-white: #ffffff; --book-gray: #a3b1c6; --book-gray-light: #f4f7fb;
    --book-black: #111111; --noon-yellow: #feee00; --font-family: 'Cairo', sans-serif; --transition: all 0.3s ease;
}
body.lang-en { --font-family: 'Montserrat', sans-serif; direction: ltr; }
body.lang-en .fa-arrow-left { transform: scaleX(-1); }
body.lang-en .footer-links a i { transform: scaleX(-1); }
body.lang-en .discount-ribbon { right: auto; left: 20px; }
body.lang-en .text-page-container ul { padding-right: 0; padding-left: 20px; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-family); }
html { scroll-behavior: smooth; }
body { background-color: var(--book-gray-light); color: var(--book-black); }
a { text-decoration: none; }

/* Header & Language Bar */
.header-wrapper { background-color: var(--book-navy); color: var(--book-white); position: relative; padding-bottom: 20px; }
.watermark-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.04; background-image: radial-gradient(circle at 10px 10px, white 2px, transparent 0), radial-gradient(circle at 40px 40px, white 2px, transparent 0); background-size: 60px 60px; pointer-events: none; }
.top-language-bar { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo strong { font-size: 1.8rem; letter-spacing: 1px; color: var(--book-white); }
.btn-lang-switcher { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--book-white); padding: 8px 20px; font-weight: 700; border-radius: 30px; cursor: pointer; transition: var(--transition); display: flex; gap: 8px; }
.btn-lang-switcher:hover { background: var(--book-red); border-color: var(--book-red); }

/* Pages Hero */
.page-hero { padding: 40px 20px; text-align: center; position: relative; z-index: 5; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 10px; color: var(--book-white); }
.page-hero p { font-size: 1.2rem; color: var(--noon-yellow); font-weight: 700; }

/* Text Pages (Terms & Privacy) */
.text-page-container { max-width: 900px; margin: -30px auto 60px; background: var(--book-white); padding: 50px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); position: relative; z-index: 10; border-top: 5px solid var(--book-red); }
.text-page-container h2 { color: var(--book-navy); font-size: 1.5rem; margin: 30px 0 15px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.text-page-container h2 i { color: var(--book-red); }
.text-page-container p { color: #555; line-height: 1.8; font-weight: 600; margin-bottom: 15px; font-size: 1.05rem; }
.text-page-container ul { padding-right: 20px; margin-bottom: 20px; }
.text-page-container li { color: #555; line-height: 1.8; font-weight: 600; margin-bottom: 10px; }

/* Coupons Grid */
.coupons-section { padding: 40px 20px 80px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 10; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.coupon-card { background: var(--book-white); border-radius: 16px; padding: 30px 25px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.05); transition: var(--transition); display: flex; flex-direction: column; }
.coupon-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(13, 34, 71, 0.1); }
.discount-ribbon { position: absolute; top: -15px; right: 20px; background: var(--book-red); color: white; padding: 8px 15px; border-radius: 8px; font-weight: 900; font-size: 1.1rem; }
.store-logo { width: 80px; height: 80px; margin: 10px auto 20px; border-radius: 50%; background: #f8f9fa; display: grid; place-items: center; border: 2px solid var(--book-gray-light); }
.store-logo img { width: 60%; height: auto; }
.card-title { font-weight: 900; font-size: 1.3rem; color: var(--book-navy); margin-bottom: 10px; }
.card-desc { font-weight: 600; color: #777; margin-bottom: 25px; font-size: 0.95rem; line-height: 1.5; flex-grow: 1; }
.code-box-wrapper { margin-bottom: 15px; cursor: pointer; }
.code-box { background: #fdf2f3; border: 2px dashed var(--book-red); padding: 15px; font-size: 1.5rem; font-weight: 900; color: var(--book-red); letter-spacing: 2px; border-radius: 10px; transition: var(--transition); display: flex; justify-content: center; gap: 15px; }
.code-box-wrapper:hover .code-box { background: var(--book-red); color: var(--book-white); }
.btn-copy { width: 100%; padding: 16px; background: var(--book-navy); color: var(--book-white); border: none; border-radius: 10px; font-weight: 900; font-size: 1.1rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-copy:hover { background: var(--book-navy-light); }
.btn-copy.copied { background: #28a745; }

/* Footer */
.footer-premium-dark { background: #08162d; padding: 80px 20px 30px; color: var(--book-gray); font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; margin-bottom: 50px; }
.footer-col h4 { font-size: 1.4rem; font-weight: 900; color: white; margin-bottom: 25px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--book-gray); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a i { font-size: 0.8rem; color: var(--book-red); }
.footer-links a:hover { color: white; padding-right: 8px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 768px) {
    .text-page-container { padding: 30px 20px; margin: -20px 15px 40px; }
    .grid-container { display: flex; flex-direction: column; gap: 20px; }
}