/* ========================================
   TERMS V3 FINAL - RESPONSIVE & MOBILE READY
   Same design + optimized for Android/iPhone
   ======================================== */

:root{
  --primary:#dc3545;
  --primary2:#ff6b6b;
  --dark1:#1a1a2e;
  --dark2:#16213e;
  --bg1:#f8f9fa;
  --cardShadow:0 20px 60px rgba(0,0,0,0.08);
}

/* Improve mobile rendering */
.terms-v3-body{
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

.terms-v3-body *{
  box-sizing:border-box;
}

/* =======================
   1) Progress Sidebar (Desktop)
   ======================= */
.progress-sidebar{
  position:fixed;
  top:80px;
  right:20px;
  width:140px;
  z-index:1000;
  pointer-events:none;
}

.progress-container{
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(20px);
  border-radius:20px;
  padding:1.2rem 1rem;
  box-shadow:0 15px 40px rgba(0,0,0,0.1);
  border:1px solid rgba(255,255,255,0.3);
  pointer-events:auto;
}

.progress-label{
  font-size:0.85rem;
  color:#666;
  font-weight:700;
  margin-bottom:0.7rem;
  text-align:center;
  font-family:'Cairo', sans-serif;
}

.progress-track{
  width:100%;
  height:6px;
  background:#eee;
  border-radius:6px;
  overflow:hidden;
  margin-bottom:0.7rem;
}

.progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius:6px;
  transition:width 0.35s ease;
}

.progress-percent{
  font-size:0.9rem;
  font-weight:800;
  color:var(--primary);
  text-align:center;
  font-family:'Cairo', sans-serif;
}

/* =======================
   2) Main Content (Desktop)
   ======================= */
.terms-main-content{
  margin-right:160px;
  min-height:100vh;
  background:linear-gradient(180deg, var(--bg1) 0%, #fff 100%);
}

/* =======================
   3) Hero
   ======================= */
.hero-section{
  background:linear-gradient(135deg, var(--dark1) 0%, var(--dark2) 50%, var(--primary) 100%);
  padding:140px 0 100px;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.hero-content{
  text-align:center;
  max-width:900px;
  margin:0 auto;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,0.15);
  padding:12px 28px;
  border-radius:50px;
  font-weight:700;
  margin-bottom:2rem;
  backdrop-filter:blur(15px);
  border:1px solid rgba(255,255,255,0.2);
}

.hero-title{
  font-size:3.2rem;
  font-weight:800;
  margin-bottom:1.2rem;
  line-height:1.2;
}

.hero-subtitle{
  font-size:1.2rem;
  opacity:0.95;
  margin-bottom:2.2rem;
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}

.hero-stats{
  display:flex;
  gap:1.2rem;
  justify-content:center;
  flex-wrap:wrap;
  font-size:1.05rem;
}

.stat-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  background:rgba(255,255,255,0.12);
  border-radius:30px;
  backdrop-filter:blur(15px);
}

/* =======================
   4) TOC (Desktop collapsible)
   ======================= */
.toc-section{
  background:#fff;
  box-shadow:0 10px 40px rgba(0,0,0,0.08);
  margin-bottom:1px;
}

.toc-toggle-btn{
  width:100%;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  color:#fff;
  border:none;
  padding:1.25rem 1.5rem;
  font-size:1.1rem;
  font-weight:800;
  font-family:'Cairo', sans-serif;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.8rem;
}

.toc-content{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.35s ease, padding 0.35s ease;
  background:#fafbfc;
}

.toc-content.active{
  max-height:520px;
  padding:1.5rem;
}

.toc-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1.2rem;
  padding-bottom:1rem;
  border-bottom:1px solid #e9ecef;
  position:relative;
}

.toc-header h3{
  margin:0;
  color:var(--primary);
  font-size:1.2rem;
  display:flex;
  align-items:center;
  gap:10px;
}

.toc-close{
  background:none;
  border:none;
  color:#999;
  font-size:1.4rem;
  cursor:pointer;
  padding:8px;
  border-radius:50%;
}

.toc-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.toc-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  color:#555;
  text-decoration:none;
  border-radius:16px;
  font-weight:700;
  transition:all 0.25s;
  border-right:4px solid transparent;
  background:#fff;
}

.toc-item:hover,
.toc-item.active{
  background:rgba(220,53,69,0.08);
  color:var(--primary);
  border-right-color:var(--primary);
}

.toc-item span{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#f3f4f6;
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.85rem;
  font-weight:900;
}

/* =======================
   5) Cards
   ======================= */
.content-section{
  padding:5rem 0 4rem;
}

.content-card{
  background:#fff;
  margin-bottom:3rem;
  border-radius:25px;
  overflow:hidden;
  box-shadow:var(--cardShadow);
  opacity:0;
  transform:translateY(40px);
  transition:all 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.content-card.animate{
  opacity:1;
  transform:translateY(0);
}

.content-card.active{
  border-top:6px solid var(--primary);
  box-shadow:0 30px 90px rgba(220,53,69,0.15);
}

.card-header{
  display:flex;
  align-items:center;
  gap:1.6rem;
  padding:2.2rem 2.5rem;
  background:linear-gradient(135deg, #fafbfc 0%, #fff 100%);
  position:relative;
}

.card-number{
  width:64px;
  height:64px;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  color:#fff;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:1.35rem;
  flex-shrink:0;
  box-shadow:0 15px 40px rgba(220,53,69,0.35);
}

.card-header h2{
  margin:0;
  font-size:1.8rem;
  color:#1a1a1a;
  font-weight:800;
  flex:1;
}

.card-body{
  padding:0 2.5rem 2.5rem;
  color:#444;
  line-height:1.85;
  font-size:1.05rem;
}

.brand{
  color:var(--primary);
  font-weight:900;
}

/* Grids */
.defs-grid,
.responsibilities-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1.2rem;
  margin-top:2rem;
}

.def-item,
.resp-item{
  background:#f8f9fa;
  padding:1.4rem;
  border-radius:18px;
  border-right:5px solid var(--primary);
}

.def-item h4,
.resp-item h4{
  color:var(--primary);
  margin:0 0 0.8rem;
  font-size:1.15rem;
  font-weight:900;
}

.resp-item i{
  color:var(--primary);
  font-size:1.2rem;
  margin-bottom:0.6rem;
  display:inline-block;
}

/* Payment table */
.payment-table-container{
  margin:2rem 0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.12);
}

.payment-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  font-family:'Cairo', sans-serif;
}

.payment-table th{
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  color:#fff;
  padding:1.2rem 1.2rem;
  text-align:right;
  font-weight:900;
  font-size:1rem;
}

.payment-table td{
  padding:1.2rem 1.2rem;
  border-bottom:1px solid #f0f0f0;
  background:#fafbfc;
}

.success{ color:#28a745; font-weight:900; font-size:1.15rem; }
.warning{ color:#ffc107; font-weight:900; }
.danger{ color:var(--primary); font-weight:900; }

.note-box{
  display:flex;
  align-items:flex-start;
  gap:1rem;
  background:linear-gradient(135deg, #fff3cd, #ffeaa7);
  padding:1.4rem;
  border-radius:18px;
  border-right:6px solid #ffc107;
}

.note-box i{
  color:#856404;
  font-size:1.3rem;
  margin-top:2px;
}

/* Final */
.final-card{
  border-bottom:8px solid var(--primary);
  margin-bottom:4rem;
}

.signature-section{
  text-align:center;
  padding-top:2rem;
  margin-top:2rem;
  border-top:2px solid #e9ecef;
}

.signature{
  display:inline-flex;
  align-items:center;
  gap:1rem;
  background:linear-gradient(135deg, #f8f9fa, #fff);
  padding:1rem 1.6rem;
  border-radius:50px;
  color:var(--primary);
  font-weight:900;
  font-size:1.05rem;
  border:2px solid rgba(220,53,69,0.12);
}

/* CTA */
.cta-section{
  background:linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
  padding:5rem 0;
  text-align:center;
  color:#fff;
}

.cta-box{
  max-width:620px;
  margin:0 auto;
}

.cta-box i{
  font-size:4rem;
  margin-bottom:1.5rem;
  opacity:0.9;
}

.cta-box h3{
  font-size:2rem;
  margin-bottom:1.2rem;
  font-weight:900;
}

.btn-primary.large{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.8rem;
  padding:18px 40px;
  font-size:1.1rem;
  font-weight:900;
  min-height:56px;
}

/* ========================================
   MOBILE OPTIMIZATION (Android/iPhone)
   ======================================== */
@media (max-width: 992px){
  /* Hide progress sidebar on phones */
  .progress-sidebar{ display:none !important; }

  /* Full width content */
  .terms-main-content{
    margin-right:0 !important;
  }

  /* Better hero spacing for small screens */
  .hero-section{
    padding:105px 0 65px;
  }

  .hero-title{
    font-size:2.2rem;
  }

  .hero-subtitle{
    font-size:1.05rem;
    padding:0 8px;
  }

  .stat-item{
    min-height:44px;
    padding:10px 16px;
    font-size:0.95rem;
  }

  /* Cards: comfortable reading */
  .content-section{
    padding:3rem 0 2.5rem;
  }

  .content-card{
    border-radius:20px;
    margin-bottom:2rem;
    transform:translateY(24px);
  }

  .card-header{
    padding:1.6rem 1.4rem 1.4rem 4.5rem;
    min-height:92px;
  }

  .card-number{
    position:absolute;
    right:16px;
    top:16px;
    width:54px;
    height:54px;
    border-radius:16px;
    font-size:1.2rem;
  }

  .card-header h2{
    font-size:1.45rem;
    line-height:1.35;
  }

  .card-body{
    padding:0 1.4rem 1.4rem;
    font-size:1rem; /* 16px */
    line-height:1.8;
  }

  /* Grid -> 1 column for better read */
  .defs-grid,
  .responsibilities-grid{
    grid-template-columns:1fr;
    gap:1rem;
  }

  /* Table: keep readable */
  .payment-table{
    font-size:0.95rem;
  }
  .payment-table th,
  .payment-table td{
    padding:1rem;
  }

  /* TOC becomes full-screen drawer */
  .toc-content{
    position:fixed;
    inset:0;
    z-index:9999;
    max-height:none;
    padding:0;
    transform:translateX(100%);
    transition:transform 0.35s ease;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }

  .toc-content.active{
    transform:translateX(0);
    max-height:none;
    padding:1.2rem;
  }

  .toc-close{
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .toc-item{
    min-height:52px;
    padding:14px 14px;
  }
}

/* Extra small phones */
@media (max-width: 360px){
  .hero-title{ font-size:2rem; }
  .card-header h2{ font-size:1.35rem; }
}

/* =========================================
   FIX: Mobile title behind number box
   (Android / iPhone)
   Paste at END of terms-v3.css
   ========================================= */

@media (max-width: 992px) {
  /* Make header a safe layout area */
  .card-header{
    position: relative !important;
    /* Important: reserve space for the number box on the right */
    padding-right: 92px !important;
    padding-left: 18px !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
    min-height: 92px !important;
    align-items: center !important;
  }

  /* Number box always above */
  .card-number{
    position: absolute !important;
    right: 16px !important;
    top: 16px !important;
    width: 56px !important;
    height: 56px !important;
    z-index: 3 !important;
  }

  /* Title always visible and never behind */
  .card-header h2{
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    /* keep readable and prevent “under box” */
    padding-right: 0 !important;
    text-align: right !important;
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Extra small phones (very narrow screens) */
@media (max-width: 380px) {
  .card-header{
    padding-right: 86px !important;
    min-height: 88px !important;
  }
  .card-number{
    width: 52px !important;
    height: 52px !important;
  }
  .card-header h2{
    font-size: 1.35rem !important;
  }
}

/* ========================================
   FOOTER - نفس index.html (بدون Payment)
   ======================================== */

/* Footer Base */
.terms-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-links h3,
.footer-contact h3,
.footer-cta h3 {
  color: #dc3545;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Licenses */
.licenses-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.license-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  border: 1px solid rgba(220,53,69,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.license-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(-5px);
}

.license-icon {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.license-icon.mci { background: linear-gradient(135deg, #00A651, #008C44); color: #fff; }
.license-icon.ect { background: linear-gradient(135deg, #DC3545, #C82333); color: #fff; }
.license-icon.gpc { background: linear-gradient(135deg, #007BFF, #0056B3); color: #fff; }

.license-info h4 {
  color: #dc3545;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.license-info p {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0;
}

/* Contact */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: #ccc;
  font-size: 1rem;
}

.contact-info .icon-red {
  color: #dc3545 !important;
  font-size: 1.2rem;
  width: 24px;
}

.social-footer {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-link.whatsapp { background: #25D366; color: #fff; }
.social-link.instagram { 
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #F58529); 
  color: #fff; 
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
}

/* CTA */
.footer-cta {
  text-align: center;
}

.footer-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 14px 28px;
  font-size: 1rem;
  min-height: 52px;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
  font-size: 0.95rem;
}

/* ========================================
   MOBILE FOOTER RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .terms-footer {
    padding: 40px 0 20px;
    margin-top: 4rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .license-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .license-icon {
    width: 65px;
    height: 65px;
    font-size: 1.4rem;
  }
  
  .contact-info p {
    justify-content: center;
    font-size: 1rem;
  }
  
  .social-footer {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-links h3,
  .footer-contact h3,
  .footer-cta h3 {
    font-size: 1.2rem;
  }
  
  .social-link {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* ========================================
   CTA V2 - Mobile First (Beautiful)
   Paste at END of terms-v3.css
   ======================================== */

.cta-v2{
  padding: 5.5rem 0;
  background: radial-gradient(1200px 600px at 90% 10%, rgba(255,255,255,0.18), transparent 55%),
              linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
  position: relative;
  overflow: hidden;
}

.cta-v2::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 350px at 10% 80%, rgba(26,26,46,0.25), transparent 60%),
    radial-gradient(500px 300px at 80% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events:none;
}

.cta-card{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.2rem;
  align-items: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  padding: 2.4rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 80px rgba(0,0,0,0.22);
}

.cta-visual{
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.cta-icon{
  width: 110px;
  height: 110px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}

.cta-icon i{
  font-size: 2.8rem;
  color: #fff;
}

.cta-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cta-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.cta-text h3{
  color: #fff;
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.cta-text p{
  color: rgba(255,255,255,0.92);
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 760px;
}

.cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-main-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: #fff;
  color: #dc3545;
  text-decoration: none;
  font-weight: 900;
  min-height: 54px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta-main-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.cta-alt-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  min-height: 54px;
  transition: transform .2s ease, background .2s ease;
}

.cta-alt-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.20);
}

.cta-small{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 1.4rem;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 0.98rem;
}

.cta-small i{
  margin-left: 8px;
}

/* Mobile */
@media (max-width: 992px){
  .cta-v2{
    padding: 4.2rem 0;
  }

  .cta-card{
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.8rem;
    border-radius: 22px;
  }

  .cta-text h3{
    font-size: 1.65rem;
  }

  .cta-text p{
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .cta-actions{
    justify-content: center;
  }

  .cta-main-btn,
  .cta-alt-btn{
    width: 100%;
    max-width: 420px;
  }

  .cta-small{
    justify-content: center;
    font-size: 0.95rem;
  }
}

/* ========================================
   SIGNATURE PREMIUM DESIGN
   أضف في نهاية terms-v3.css
   ======================================== */

/* Signature Section */
.signature-section {
  position: relative;
  padding: 3rem 0;
  margin-top: 3rem;
  text-align: center;
}

/* Wave Background */
.signature-wave {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  z-index: 1;
}

.signature-wave svg {
  width: 100%;
  height: 100%;
}

/* Signature Card */
.signature-container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.signature-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  padding: 2.2rem 2.8rem;
  border-radius: 24px;
  border: 1px solid #e9ecef;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,255,255,0.8) inset;
  backdrop-filter: blur(12px);
  z-index: 2;
}

/* Signature Icon + Animated Ring */
.signature-icon {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.signature-icon i {
  position: relative;
  z-index: 3;
  font-size: 1.8rem;
  color: #dc3545;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signature-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 84px;
  height: 84px;
  z-index: 2;
}

.signature-ring circle {
  stroke-dashoffset: 0;
}

/* Signature Text */
.signature-text {
  flex: 1;
}

.signature-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  position: relative;
}

.signature-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 45px;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, transparent);
  border-radius: 2px;
}

.signature-date {
  font-size: 1rem;
  color: #666;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Official Seal */
.signature-seal {
  position: relative;
}

.seal-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #dc3545, #ff6b6b, #dc3545);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(220,53,69,0.3),
    inset 0 2px 8px rgba(255,255,255,0.3);
  animation: sealRotate 8s linear infinite;
}

@keyframes sealRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.seal-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #dc3545;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-weight: 900;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .signature-section {
    padding: 2.2rem 0;
    margin-top: 2.5rem;
  }
  
  .signature-card {
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.8rem 1.6rem;
  }
  
  .signature-icon {
    width: 64px;
    height: 64px;
  }
  
  .signature-icon i {
    font-size: 1.6rem;
    width: 64px;
    height: 64px;
  }
  
  .signature-ring {
    top: -4px;
    left: -4px;
    width: 72px;
    height: 72px;
  }
  
  .signature-title {
    font-size: 1.15rem;
  }
  
  .signature-date {
    font-size: 0.95rem;
  }
  
  .seal-ring {
    width: 48px;
    height: 48px;
  }
  
  .seal-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .signature-card {
    padding: 1.6rem 1.2rem;
  }
  
  .signature-title {
    font-size: 1.1rem;
  }
}

/* Hover Effect (Desktop) */
@media (min-width: 993px) {
  .signature-card:hover {
    transform: translateY(-4px);
    box-shadow: 
      0 30px 90px rgba(0,0,0,0.12),
      0 0 0 1px rgba(255,255,255,0.9) inset;
  }
  
  .seal-ring {
    animation-play-state: paused;
  }
  
  .signature-card:hover .seal-ring {
    animation-play-state: running;
  }
}

/* ========================================
   BACK TO HOME - ULTRA PROFESSIONAL
   ======================================== */

.back-home-pro {
  padding: 3.5rem 0 6rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.back-home-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(800px 400px at 20% 80%, rgba(220,53,69,0.08), transparent 50%),
    radial-gradient(600px 300px at 80% 20%, rgba(255,107,107,0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.back-home-wrapper {
  position: relative;
  z-index: 1;
}

.back-home-pro-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 580px;
  margin: 0 auto;
  text-decoration: none;
  color: #fff;
  padding: 24px 32px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 25px 80px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  overflow: hidden;
}

.back-home-pro-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.back-home-pro-btn:hover::before {
  left: 100%;
}

.back-home-pro-btn:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 
    0 35px 110px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Icon */
.back-home-pro-icon {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(220,53,69,0.3);
  transition: transform 0.3s ease;
}

.back-home-pro-btn:hover .back-home-pro-icon {
  transform: scale(1.08) rotate(5deg);
}

.back-home-pro-icon i {
  font-size: 1.6rem;
  color: #fff;
  z-index: 2;
  position: relative;
}

.icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(220,53,69,0.4), rgba(255,107,107,0.2));
  top: 4px;
  left: 4px;
  z-index: 1;
  animation: iconPulse 2s ease-in-out infinite alternate;
}

@keyframes iconPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* Content */
.back-home-pro-content {
  flex: 1;
  text-align: right;
  line-height: 1.3;
}

.back-home-pro-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.back-home-pro-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Arrow */
.back-home-pro-arrow {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.back-home-pro-btn:hover .back-home-pro-arrow {
  background: rgba(220,53,69,0.2);
  transform: translateX(-4px) rotate(-180deg);
}

/* ========================================
   MOBILE PROFESSIONAL
   ======================================== */
@media (max-width: 992px) {
  .back-home-pro {
    padding: 2.8rem 0 5rem;
  }
  
  .back-home-pro-btn {
    width: 100%;
    max-width: 100%;
    padding: 22px 28px;
    border-radius: 20px;
    gap: 18px;
  }
  
  .back-home-pro-icon {
    width: 60px;
    height: 60px;
  }
  
  .back-home-pro-icon i {
    font-size: 1.45rem;
  }
  
  .back-home-pro-title {
    font-size: 1.25rem;
  }
  
  .back-home-pro-arrow {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .back-home-pro {
    padding: 2.2rem 0 4.5rem;
  }
  
  .back-home-pro-btn {
    padding: 20px 24px;
    gap: 16px;
  }
  
  .back-home-pro-title {
    font-size: 1.15rem;
  }
  
  .back-home-pro-subtitle {
    font-size: 0.95rem;
  }
}

/* Loading animation on click */
@keyframes backHomeClick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.98); }
}

.back-home-pro-btn:active {
  animation: backHomeClick 0.2s ease;
}
