:root{
    --navy:#1B2A4A;
    --navy-2:#243a63;
    --parchment:#FBF3E7;
    --paper:#FFFDF9;
    --amber:#E8A33D;
    --amber-dark:#C9832A;
    --coral:#E15B5B;
    --teal:#2C6E6B;
    --ink:#2B2620;
    --line:#E7DCC8;
    --shadow: 0 10px 30px rgba(27,42,74,.12);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Cairo', sans-serif;
    background:var(--parchment);
    color:var(--ink);
    line-height:1.7;
    overflow-x:hidden;
  }
  h1,h2,h3,.display{font-family:'Rakkas', serif; font-weight:400;}
  img{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  button{font-family:inherit; cursor:pointer; border:none;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 20px;}
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:14px 28px; border-radius:14px; font-weight:700; font-size:16px;
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .btn-amber{background:var(--amber); color:var(--navy);}
  .btn-amber:hover{transform:translateY(-2px); box-shadow:0 8px 18px rgba(232,163,61,.4);}
  .btn-navy{background:var(--navy); color:var(--paper);}
  .btn-navy:hover{transform:translateY(-2px); box-shadow:0 8px 18px rgba(27,42,74,.3);}
  .btn-outline{background:transparent; border:2px solid var(--navy); color:var(--navy);}
  .btn-ghost{background:transparent; color:var(--navy); text-decoration:underline; padding:6px 4px;}
  .btn-block{width:100%;}

  /* Promo bar */
  .promo{background:var(--navy); color:var(--parchment); text-align:center; font-size:13.5px; padding:9px 14px; font-weight:600; letter-spacing:.2px;}

  /* Header */
  header.site{background:var(--paper); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40;}
  .headrow{display:flex; align-items:center; justify-content:space-between; padding:14px 20px; gap:16px;}
  .logo{display:flex; align-items:center; gap:10px; cursor:pointer;}
  .logo svg{width:42px; height:42px; flex-shrink:0;}
  .logo .word{font-family:'Rakkas',serif; font-size:24px; color:var(--navy); line-height:1;}
  .logo .sub{font-size:10.5px; color:var(--teal); font-weight:700; letter-spacing:.5px; margin-top:2px;}
  nav.main{display:flex; gap:28px; align-items:center;}
  nav.main a{font-weight:700; font-size:15px; color:var(--navy); position:relative; padding:4px 0;}
  nav.main a:hover{color:var(--coral);}
  .head-actions{display:flex; align-items:center; gap:14px;}
  .icon-btn{width:42px; height:42px; border-radius:50%; background:var(--parchment); display:flex; align-items:center; justify-content:center; font-size:18px; border:1px solid var(--line); position:relative;}
  .cart-count{position:absolute; top:-4px; left:-4px; background:var(--coral); color:#fff; font-size:10.5px; font-weight:800; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center;}
  .burger{display:none; font-size:22px; background:none; color:var(--navy);}
  @media(max-width:820px){ nav.main{display:none;} .burger{display:block;} }

  /* Hero */
  .hero{padding:60px 20px 40px; background:radial-gradient(circle at 85% 10%, rgba(232,163,61,.18), transparent 45%), var(--parchment);}
  .hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;}
  @media(max-width:900px){ .hero-grid{grid-template-columns:1fr; text-align:center;} }
  .eyebrow-badge{display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); padding:7px 16px; border-radius:999px; font-size:13px; font-weight:700; color:var(--teal); margin-bottom:18px;}
  .hero h1{font-size:clamp(34px,5vw,54px); color:var(--navy); line-height:1.25; margin-bottom:18px;}
  .hero h1 span{color:var(--coral);}
  .hero p.lead{font-size:17.5px; color:#55503f; max-width:480px; margin-bottom:28px;}
  @media(max-width:900px){ .hero p.lead{margin-inline:auto;} }
  .hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
  @media(max-width:900px){ .hero-ctas{justify-content:center;} }
  .hero-art{position:relative; display:flex; justify-content:center;}
  .book-illustration{width:100%; max-width:420px; aspect-ratio:1/1.05; background:linear-gradient(160deg, var(--navy), var(--navy-2)); border-radius:28px; position:relative; box-shadow:var(--shadow); display:flex; align-items:center; justify-content:center; overflow:hidden;}
  .book-illustration:before{content:""; position:absolute; inset:0; background:radial-gradient(circle at 30% 20%, rgba(232,163,61,.35), transparent 55%);}
  .book-illustration svg{width:62%; position:relative; z-index:1;}
  .float-badge{position:absolute; background:#fff; border-radius:16px; padding:12px 16px; box-shadow:var(--shadow); font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; color:var(--navy);}
  .fb1{top:8%; left:-4%;}
  .fb2{bottom:10%; right:-6%;}
  @media(max-width:900px){ .float-badge{display:none;} }

  /* Features strip */
  .features{padding:36px 20px; background:var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .features-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; max-width:1180px; margin:0 auto;}
  @media(max-width:760px){ .features-grid{grid-template-columns:1fr;} }
  .feature-item{display:flex; gap:14px; align-items:flex-start;}
  .feature-icon{width:48px; height:48px; border-radius:12px; background:var(--parchment); display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0;}
  .feature-item h3{font-family:'Cairo'; font-weight:800; font-size:16px; color:var(--navy); margin-bottom:4px;}
  .feature-item p{font-size:14px; color:#665f4c;}

  /* Section heading */
  .section{padding:56px 20px;}
  .section-head{text-align:center; max-width:560px; margin:0 auto 38px;}
  .section-head h2{font-size:clamp(26px,3.6vw,36px); color:var(--navy); margin-bottom:10px;}
  .section-head p{color:#665f4c; font-size:15.5px;}

  /* Story grid */
  .story-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
  @media(max-width:900px){ .story-grid{grid-template-columns:repeat(2,1fr);} }
  @media(max-width:560px){ .story-grid{grid-template-columns:1fr;} }
  .story-card{background:var(--paper); border:1px solid var(--line); border-radius:20px; overflow:hidden; transition:transform .18s ease, box-shadow .18s ease; cursor:pointer; display:flex; flex-direction:column;}
  .story-card:hover{transform:translateY(-6px); box-shadow:var(--shadow);}
  .cover{aspect-ratio:4/5; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden;}
  .cover img{width:100%; height:100%; object-fit:contain;}
  .cover .emoji{font-size:76px;}
  .badge-tag{position:absolute; top:12px; right:12px; background:var(--coral); color:#fff; font-size:11.5px; font-weight:800; padding:5px 12px; border-radius:999px;}
  .discount-tag{position:absolute; top:12px; left:12px; background:var(--navy); color:#fff; font-size:11.5px; font-weight:800; padding:5px 12px; border-radius:999px;}
  .card-body{padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1;}
  .card-body h3{font-family:'Cairo'; font-size:16.5px; font-weight:800; color:var(--navy);}
  .price-row{display:flex; align-items:baseline; gap:8px; margin-top:auto;}
  .price-now{font-size:19px; font-weight:800; color:var(--coral);}
  .price-old{font-size:13.5px; color:#a39c85; text-decoration:line-through;}
  .stars{color:var(--amber-dark); font-size:13px;}
  .empty-state{text-align:center; padding:60px 20px; color:#8a8368;}

  /* Reviews */
  .reviews-strip{background:var(--navy); padding:56px 20px; color:var(--parchment);}
  .reviews-head{text-align:center; margin-bottom:34px;}
  .reviews-head h2{color:#fff; font-size:clamp(24px,3.4vw,32px);}
  .reviews-head p{color:#c7cfe0; margin-top:8px;}
  .review-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:1180px; margin:0 auto;}
  @media(max-width:900px){ .review-grid{grid-template-columns:1fr;} }
  .review-card{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:16px; padding:22px;}
  .review-card .stars{color:var(--amber); margin-bottom:10px; display:block;}
  .review-card p{font-size:14.5px; color:#e6e9f2; margin-bottom:14px;}
  .review-card .who{font-size:13px; font-weight:700; color:var(--amber);}

  /* Trust strip */
  .trust{padding:30px 20px; background:var(--paper); border-top:1px solid var(--line);}
  .trust-grid{display:flex; justify-content:center; gap:40px; flex-wrap:wrap; max-width:900px; margin:0 auto; text-align:center;}
  .trust-item{font-size:13.5px; font-weight:700; color:var(--navy); display:flex; flex-direction:column; align-items:center; gap:6px;}
  .trust-item span.ic{font-size:26px;}

  /* Footer */
  footer.site{background:var(--navy); color:#c7cfe0; padding:52px 20px 26px;}
  .foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; max-width:1180px; margin:0 auto 30px;}
  @media(max-width:760px){ .foot-grid{grid-template-columns:1fr 1fr;} }
  .foot-grid h4{color:#fff; font-size:15px; margin-bottom:14px;}
  .foot-grid ul{list-style:none; display:flex; flex-direction:column; gap:9px;}
  .foot-grid ul a{font-size:13.5px; color:#c7cfe0;}
  .foot-grid ul a:hover{color:var(--amber);}
  .foot-logo{display:flex; align-items:center; gap:10px; margin-bottom:12px;}
  .foot-logo .word{font-family:'Rakkas'; font-size:22px; color:#fff;}
  .foot-about{font-size:13.5px; color:#9fa9c4; max-width:280px;}
  .foot-bottom{border-top:1px solid rgba(255,255,255,.12); padding-top:20px; display:flex; justify-content:space-between; align-items:center; max-width:1180px; margin:0 auto; font-size:12.5px; color:#8f9ac0; flex-wrap:wrap; gap:10px;}
  .foot-bottom a{text-decoration:underline;}

  /* Floating whatsapp */
  .wa-float{position:fixed; bottom:22px; left:22px; background:#25D366; color:#fff; width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow:0 8px 22px rgba(37,211,102,.5); z-index:50;}

  /* Popup */
  .overlay{position:fixed; inset:0; background:rgba(27,20,10,.55); display:flex; align-items:center; justify-content:center; z-index:80; padding:16px;}
  .popup{background:var(--paper); border-radius:20px; max-width:380px; width:100%; padding:28px 26px 26px; text-align:center; position:relative; box-shadow:var(--shadow);}
  .popup-close{position:absolute; top:12px; left:14px; font-size:20px; color:#9c9576; background:none;}
  .popup .kicker{color:var(--coral); font-weight:800; font-size:13px; margin-bottom:6px;}
  .popup h3{font-size:26px; color:var(--navy); margin-bottom:8px;}
  .popup .code{background:var(--parchment); border:1.5px dashed var(--amber-dark); border-radius:10px; padding:10px; font-weight:800; letter-spacing:2px; color:var(--navy); margin:14px 0;}
  .popup .timer{font-weight:800; color:var(--coral); font-size:18px; margin-bottom:16px; direction:ltr; display:inline-block;}

  /* Product page */
  .product-page{padding:36px 20px 60px;}
  .crumb{font-size:13px; color:#8a8368; margin-bottom:20px;}
  .crumb a{text-decoration:underline;}
  .product-grid{display:grid; grid-template-columns:.95fr 1.05fr; gap:44px; align-items:flex-start;}
  @media(max-width:920px){ .product-grid{grid-template-columns:1fr;} }
  .gallery-main{border-radius:20px; overflow:hidden; aspect-ratio:1/1; background:var(--navy); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow);}
  .gallery-main img{width:100%; height:100%; object-fit:contain;}
  .gallery-main .emoji{font-size:110px;}
  .product-title{font-size:clamp(26px,3.4vw,34px); color:var(--navy); margin-bottom:10px;}
  .price-block{display:flex; align-items:baseline; gap:12px; margin-bottom:6px;}
  .price-block .now{font-size:28px; font-weight:800; color:var(--coral);}
  .price-block .old{font-size:16px; color:#a39c85; text-decoration:line-through;}
  .save-note{font-size:13px; color:var(--teal); font-weight:700; margin-bottom:16px;}
  .product-desc{font-size:15px; color:#55503f; margin-bottom:20px;}
  .mini-features{display:flex; gap:18px; flex-wrap:wrap; margin-bottom:24px;}
  .mini-feature{display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--navy); background:var(--parchment); padding:8px 13px; border-radius:999px;}

  .form-card{background:var(--paper); border:1px solid var(--line); border-radius:18px; padding:22px;}
  .form-card h3{font-size:18px; color:var(--navy); margin-bottom:16px;}
  .field{margin-bottom:16px;}
  .field label{display:block; font-size:13.5px; font-weight:700; color:var(--navy); margin-bottom:7px;}
  .field input[type=text], .field input[type=number], .field textarea, .field select{
    width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:10px; font-family:inherit; font-size:14.5px; background:#fff; color:var(--ink);
  }
  .field textarea{resize:vertical; min-height:80px;}
  .field input:focus, .field textarea:focus, .field select:focus{outline:2px solid var(--amber); border-color:var(--amber);}
  .gender-row{display:flex; gap:12px;}
  .gender-opt{flex:1; padding:12px; border:1.5px solid var(--line); border-radius:10px; text-align:center; font-weight:700; cursor:pointer; font-size:14px;}
  .gender-opt.active{border-color:var(--amber-dark); background:#fdf2df;}
  .upload-box{border:2px dashed var(--line); border-radius:12px; padding:22px; text-align:center; cursor:pointer; font-size:13.5px; color:#7a7458;}
  .upload-box.has-img{border-color:var(--teal); background:#f2f8f7;}
  .upload-box img{max-height:120px; margin:0 auto 8px; border-radius:8px;}
  .lang-row{display:flex; gap:12px;}
  .lang-opt{flex:1; padding:11px; border:1.5px solid var(--line); border-radius:10px; text-align:center; font-weight:700; cursor:pointer; font-size:14px;}
  .lang-opt.active{border-color:var(--amber-dark); background:#fdf2df;}
  .dedication-opts{display:flex; flex-direction:column; gap:10px; margin-bottom:10px;}
  .ded-opt{border:1.5px solid var(--line); border-radius:10px; padding:12px 14px; font-size:13.5px; cursor:pointer;}
  .ded-opt.active{border-color:var(--amber-dark); background:#fdf2df;}
  .perk-row{display:flex; gap:16px; margin:16px 0; flex-wrap:wrap;}
  .perk{display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--teal);}
  .summary-row{display:flex; justify-content:space-between; font-size:14px; color:#55503f; padding:6px 0;}
  .summary-row.total{font-size:19px; font-weight:800; color:var(--navy); border-top:1px solid var(--line); margin-top:8px; padding-top:12px;}
  .guarantee-note{font-size:12.5px; color:#8a8368; margin-top:14px; text-align:center;}

  /* Toast */
  .toast{position:fixed; bottom:24px; right:24px; background:var(--navy); color:#fff; padding:14px 22px; border-radius:12px; font-weight:700; font-size:14px; z-index:100; box-shadow:var(--shadow); animation:toastIn .25s ease;}
  @keyframes toastIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

  /* Admin */
  .admin-wrap{max-width:960px; margin:0 auto; padding:40px 20px 80px;}
  .admin-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; flex-wrap:wrap; gap:12px;}
  .admin-header h1{font-size:28px; color:var(--navy);}
  .admin-card{background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:22px; margin-bottom:24px;}
  .admin-card h2{font-size:18px; color:var(--navy); margin-bottom:16px;}
  .admin-grid-2{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  @media(max-width:640px){ .admin-grid-2{grid-template-columns:1fr;} }
  .story-row{display:flex; align-items:center; gap:14px; padding:12px; border:1px solid var(--line); border-radius:12px; margin-bottom:10px;}
  .story-row .mini-cover{width:52px; height:52px; border-radius:10px; background:var(--navy); display:flex; align-items:center; justify-content:center; font-size:24px; overflow:hidden; flex-shrink:0;}
  .story-row .mini-cover img{width:100%; height:100%; object-fit:cover;}
  .story-row .info{flex:1; min-width:0;}
  .story-row .info h4{font-size:14.5px; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .story-row .info span{font-size:12.5px; color:#8a8368;}
  .row-actions{display:flex; gap:8px;}
  .row-actions button{padding:7px 12px; border-radius:8px; font-size:12.5px; font-weight:700;}
  .login-box{max-width:360px; margin:80px auto; background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:30px; text-align:center;}
  .login-box h2{color:var(--navy); margin-bottom:16px;}
  .emoji-picker{display:flex; gap:8px; flex-wrap:wrap;}
  .emoji-opt{width:42px; height:42px; border:1.5px solid var(--line); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer;}
  .emoji-opt.active{border-color:var(--amber-dark); background:#fdf2df;}
  .color-picker{display:flex; gap:8px; flex-wrap:wrap;}
  .color-opt{width:32px; height:32px; border-radius:50%; cursor:pointer; border:2px solid transparent;}
  .color-opt.active{border-color:var(--navy);}
