/* ─── assessment.html Custom Styles ─── */

/* ─── CSS Variables ─── */
    :root {
      --brand-green: #2E5B4B;
      --brand-green-light: #f0f7eb;
      --brand-yellow: #f5c518;
      --brand-dark: #002842;
      --brand-orange: #d94512;
      --brand-orange-light: #fff5f2;
      --bg: #FAF9F6;
      --white: #ffffff;
      --text-primary: #3A4045;
      --text-secondary: #5a6068;
      --border: #ccd6dd;
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 20px;
      --radius-pill: 100px;
      --shadow-sm: 0 4px 12px rgba(0, 0, 0, .05);
      --shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
      --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);
      --transition: .4s cubic-bezier(.4, 0, .2, 1);
      --max-w: 1200px;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Noto Sans TC', sans-serif;
      background: var(--bg);
      color: var(--text-primary);
      line-height: 1.6;
      overflow-x: hidden;
      opacity: 0;
      /* JS loads header/footer and then fades in body */
      transition: opacity 0.5s ease;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* ─── Main Container Layout ─── */
    .assessment-container {
      max-width: var(--max-w);
      margin: 40px auto;
      padding: 0 24px;
      min-height: calc(100vh - 400px);
    }

    .view-section {
      display: none;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .view-section.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    /* ─── Screen 1: Hero Section ─── */
    .hero-wrap {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 50px;
      align-items: center;
      background: var(--white);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      border: 3px solid var(--brand-green);
    }

    .hero-img-side {
      background: var(--brand-green-light);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 30px;
      height: 100%;
      min-height: 420px;
    }

    .hero-img-side img {
      max-width: 100%;
      height: auto;
      border-radius: var(--radius-md);
      transform: scale(1);
      transition: transform 0.8s var(--transition);
    }

    .hero-wrap:hover .hero-img-side img {
      transform: scale(1.03);
    }

    .hero-content-side {
      padding: 50px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .hero-badge {
      background: var(--brand-green);
      color: var(--white);
      padding: 6px 16px;
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 700;
      display: inline-block;
      align-self: flex-start;
      margin-bottom: 20px;
    }

    .hero-title {
      font-size: 32px;
      font-weight: 800;
      color: var(--brand-dark);
      line-height: 1.35;
      margin-bottom: 20px;
    }

    .hero-desc {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 30px;
      line-height: 1.8;
    }

    .hero-form-group {
      margin-bottom: 25px;
      text-align: left;
    }

    .hero-form-group label {
      font-size: 15px;
      font-weight: 700;
      color: var(--brand-dark);
      display: block;
      margin-bottom: 8px;
    }

    .hero-form-group input {
      width: 100%;
      padding: 14px 20px;
      border: 2px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 15px;
      outline: none;
      transition: all var(--transition);
    }

    .hero-form-group input:focus {
      border-color: var(--brand-green);
      box-shadow: 0 0 0 4px rgba(46, 91, 75, 0.15);
    }

    .hero-btn {
      background: var(--brand-orange);
      color: var(--white);
      font-size: 17px;
      font-weight: 700;
      padding: 16px 36px;
      border-radius: var(--radius-pill);
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(217, 69, 18, 0.25);
      transition: all var(--transition);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .hero-btn:hover {
      background: #c03d12;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(217, 69, 18, 0.35);
    }

    /* ─── Screen 2: Question Wizard ─── */
    .wizard-card {
      max-width: 860px;
      margin: 0 auto;
      background: var(--white);
      border-radius: var(--radius-lg);
      border: 3px solid var(--brand-green);
      box-shadow: var(--shadow-lg);
      overflow: hidden;
    }

    .wizard-header {
      padding: 30px 40px;
      background: var(--brand-green-light);
      border-bottom: 1px solid rgba(46, 91, 75, 0.1);
      text-align: center;
    }

    .wizard-progress-bar-container {
      width: 100%;
      height: 10px;
      background: #e2e8f0;
      border-radius: var(--radius-pill);
      overflow: hidden;
      margin-top: 15px;
    }

    .wizard-progress-bar {
      height: 100%;
      width: 33%;
      background: linear-gradient(90deg, #8ad15a 0%, var(--brand-green) 100%);
      transition: width 0.4s var(--transition);
    }

    .wizard-step-info {
      font-size: 14px;
      font-weight: 800;
      color: var(--brand-green);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .wizard-step-label {
      font-size: 13.5px;
      color: #5a6068;
      margin-top: 10px;
      font-weight: 700;
      animation: pulse 2s infinite ease-in-out;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 0.85;
      }

      50% {
        opacity: 1;
        transform: scale(1.01);
      }
    }

    .wizard-body {
      padding: 40px;
      min-height: 320px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .question-title {
      font-size: 24px;
      font-weight: 800;
      color: var(--brand-dark);
      text-align: center;
      margin-bottom: 30px;
    }

    /* Selection Options Grid */
    .options-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .options-grid.two-cols {
      grid-template-columns: 1fr 1fr;
    }

    .options-grid.four-cols {
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }

    .options-grid.four-cols .card-option {
      padding: 24px 10px;
    }

    .options-grid.four-cols .option-name {
      font-size: 15.5px;
      white-space: nowrap;
    }

    .options-grid.four-cols .option-desc {
      font-size: 12px;
      line-height: 1.35;
    }

    .card-option {
      border: 2px solid var(--border);
      border-radius: var(--radius-md);
      padding: 30px 20px;
      text-align: center;
      cursor: pointer;
      transition: all var(--transition);
      background: var(--white);
      position: relative;
    }

    .card-option:hover {
      border-color: var(--brand-green);
      transform: translateY(-4px);
      box-shadow: var(--shadow-sm);
    }

    .card-option.active {
      border-color: var(--brand-green);
      background-color: var(--brand-green-light);
      box-shadow: 0 0 0 4px rgba(46, 91, 75, 0.15);
    }

    .card-option .option-icon {
      font-size: 40px;
      margin-bottom: 15px;
      display: inline-block;
      transition: transform 0.3s ease;
    }

    .card-option:hover .option-icon {
      transform: scale(1.15);
    }

    .card-option .option-name {
      font-size: 17px;
      font-weight: 700;
      color: var(--brand-dark);
      margin-bottom: 5px;
    }

    .card-option .option-desc {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.4;
    }

    .wizard-footer {
      padding: 24px 40px;
      background: #f7fafc;
      border-top: 1px solid #edf2f7;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .wizard-back-btn {
      background: none;
      border: none;
      color: var(--text-secondary);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      padding: 10px 20px;
      transition: color 0.2s;
    }

    .wizard-back-btn:hover {
      color: var(--brand-dark);
    }

    .wizard-next-btn {
      background: var(--brand-green);
      color: var(--white);
      font-size: 15px;
      font-weight: 700;
      padding: 12px 28px;
      border-radius: var(--radius-pill);
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(46, 91, 75, 0.2);
      transition: all var(--transition);
    }

    .wizard-next-btn:hover {
      background: #1e3c31;
      transform: translateY(-1px);
    }

    /* ─── Screen 3: Data Report ─── */
    .report-wrap {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }

    /* Pet tabs switcher (白金極簡輕奢 White-Gold Minimal Luxury) */
    .pet-tabs-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      border-bottom: 1px solid #EAEAE6;
      padding-bottom: 12px;
      flex-wrap: wrap;
    }

    .pet-tab-prefix-label {
      font-size: 12.5px;
      font-weight: 700;
      color: #777777;
      display: inline-flex;
      align-items: center;
      margin-right: 4px;
      letter-spacing: 0.5px;
    }

    /* 未選取狀態 (QQ)：半透明奶白 (#F9F9F8) ＋ 淺灰細邊 (#E5E5E0) ＋ 低調中灰字 */
    .pet-tab {
      height: 30px;
      padding: 0 16px;
      background-color: #F9F9F8 !important;
      border: 1px solid #E5E5E0 !important;
      border-radius: 6px !important; /* Leica/Apple 微精圓角，擺脫跑道腸仔感 */
      color: #666666 !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      box-shadow: none !important; /* 零厚重黑灰陰影，純正 Flat Minimal */
      line-height: 1;
      letter-spacing: 0.3px;
    }

    .pet-tab:hover {
      background-color: #FFFFFF !important;
      border-color: #D4AF37 !important;
      color: #121212 !important;
    }

    /* 選取中 (TEST001)：暖純白 (#FFFFFF) ＋ 濃郁黑字 (#121212) ＋ 全環繞燙金金邊 (#D4AF37) */
    .pet-tab.active {
      background-color: #FFFFFF !important;
      color: #121212 !important;
      border: 1.5px solid #D4AF37 !important;
      font-weight: 800 !important;
      box-shadow: none !important;
    }

    .crown-svg {
      fill: #D4AF37 !important;
    }

    .delete-tab-icon {
      font-size: 12px;
      color: #a0aec0;
      padding: 2px;
      border-radius: 50%;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .delete-tab-icon:hover {
      background: #fed7d7;
      color: #e53e3e;
      transform: scale(1.2);
    }


    /* Report Layout Grid */
    .report-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }

    .report-card-left,
    .report-card-right {
      background: var(--white);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      border: 2px solid #e5ded4;
      padding: 40px;
    }

    .report-card-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .report-card-title-prefix {
      font-size: 12.5px;
      font-weight: 800;
      color: var(--brand-green);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 6px;
      background: var(--brand-green-light);
      padding: 4px 14px;
      border-radius: var(--radius-pill);
      display: inline-block;
    }

    .report-card-title {
      font-size: 24px;
      font-weight: 800;
      color: var(--brand-dark);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .report-card-subtitle {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 30px;
    }

    /* Radar Chart Box */
    .chart-container {
      width: 100%;
      max-width: 320px;
      height: 320px;
      margin: 0 auto 20px;
      position: relative;
    }

    .radar-stats-list {
      width: 100%;
      text-align: left;
      margin-top: 20px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
    }

    .radar-stat-item {
      background: #f7fafc;
      padding: 12px 16px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      border: 1px solid transparent;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      gap: 5px;
      position: relative;
    }

    .radar-stat-item.stat-highlight {
      background: var(--brand-green-light) !important;
      border-color: var(--brand-green) !important;
      transform: scale(1.05);
      box-shadow: 0 4px 15px rgba(46, 91, 75, 0.15);
      z-index: 2;
    }

    .radar-stat-item strong {
      display: block;
      color: var(--brand-green);
      font-size: 16px;
    }

    .report-prescription-box {
      background: rgba(240, 247, 235, 0.55);
      border: 1px solid rgba(46, 91, 75, 0.2);
      border-radius: var(--radius-md);
      padding: 30px;
      text-align: left;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(46, 91, 75, 0.04);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .prescription-badge {
      background: rgba(46, 91, 75, 0.85);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
      padding: 5px 14px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 700;
      display: inline-block;
      margin-bottom: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .prescription-title {
      font-size: 26px;
      font-weight: 800;
      color: var(--brand-dark);
      margin-bottom: 12px;
    }

    .prescription-desc {
      font-size: 15px;
      color: var(--text-primary);
      line-height: 1.8;
      margin-bottom: 20px;
    }

    /* Care Packages Section */
    .packages-section {
      margin-top: 40px;
    }

    .packages-section-title {
      font-size: 22px;
      font-weight: 800;
      color: var(--brand-dark);
      margin-bottom: 40px;
      text-align: left;
    }

    .packages-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .package-card {
      background: var(--white);
      border-radius: var(--radius-md);
      border: 2px solid var(--border);
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      transition: all var(--transition);
      position: relative;
    }

    .package-card:hover {
      transform: translateY(-8px) scale(1.04) !important;
      box-shadow: var(--shadow-md);
      border-color: var(--brand-green);
    }

    /* Highlight matching recommended package */
    .package-card.recommended-pkg {
      border: 3px solid var(--brand-orange) !important;
      transform: translateY(-10px) scale(1.04) !important;
      box-shadow: 0 20px 45px rgba(217, 69, 18, 0.22) !important;
      z-index: 10;
    }

    .package-card.recommended-pkg::before {
      content: '🏆 島牧首選';
      position: absolute;
      top: -15px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, #d94512 0%, #ff6a3d 100%);
      color: #fff;
      padding: 5px 18px;
      font-size: 12px;
      font-weight: 800;
      border-radius: var(--radius-pill);
      z-index: 15;
      box-shadow: 0 6px 15px rgba(217, 69, 18, 0.4);
      white-space: nowrap;
      border: 1px solid rgba(255, 255, 255, 0.2);
      letter-spacing: 0.5px;
    }

    /* Ingredient Badge styling */
    .ingredients-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }

    .ingredient-badge {
      background: #f0f4f1;
      color: var(--brand-green);
      padding: 3px 10px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      border: 1px solid rgba(46, 91, 75, 0.1);
    }

    /* CSS Tooltip term styling */
    .tooltip-term {
      border-bottom: 1.5px dotted var(--brand-green);
      cursor: help;
      position: relative;
      display: inline-block;
      font-weight: 700;
      color: var(--brand-dark);
    }

    .tooltip-term::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: 130%;
      left: 50%;
      transform: translateX(-50%) translateY(0);
      background: var(--brand-dark);
      color: #fff;
      padding: 8px 14px;
      border-radius: 6px;
      font-size: 12px;
      white-space: normal;
      width: 200px;
      box-shadow: var(--shadow-lg);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 9999;
      line-height: 1.5;
      text-align: left;
      font-weight: 500;
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .tooltip-term:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(-6px);
      pointer-events: auto;
    }

    /* Card hover actions */
    .card-hover-action-wrap {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
      margin-top: 0;
      text-align: center;
    }

    .package-card:hover .card-hover-action-wrap {
      max-height: 60px;
      margin-top: 15px;
    }

    .btn-card-action {
      background: var(--brand-green);
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
      width: 100%;
      box-shadow: 0 4px 10px rgba(46, 91, 75, 0.15);
    }

    .btn-card-action:hover {
      background: #1e3c31;
      transform: scale(1.02);
      box-shadow: 0 6px 15px rgba(46, 91, 75, 0.25);
    }

    .package-card-header {
      padding: 20px;
      color: var(--white);
      text-align: center;
      font-weight: 800;
      font-size: 18px;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
    }

    .package-card.gi .package-card-header {
      background: #558B6E;
    }

    .package-card.vitc .package-card-header {
      background: #88B04B;
    }

    .package-card.stress .package-card-header {
      background: #dcae1d;
    }

    .package-card.eye .package-card-header {
      background: #df8a49;
    }

    .package-card.urinary .package-card-header {
      background: #3E829B;
    }

    .package-card.appetite .package-card-header {
      background: #ba6375;
    }

    .package-card-body {
      padding: 24px;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    /*成分-數據-效益 三段式佈局*/
    .p-tier {
      text-align: left;
    }

    .p-tier-label {
      font-size: 12px;
      font-weight: 700;
      color: #999;
      margin-bottom: 2px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .p-tier-label i {
      color: var(--brand-green);
    }

    .p-tier-val {
      font-size: 13.5px;
      color: var(--text-primary);
      font-weight: 500;
      line-height: 1.5;
    }

    .p-tier-data {
      font-size: 19px;
      font-weight: 800;
      color: var(--brand-orange);
      font-family: 'Fredoka One', cursive;
    }

    /* Small visuals for stats in package cards */
    .mini-progress {
      width: 100%;
      height: 6px;
      background: #edf2f7;
      border-radius: 3px;
      overflow: hidden;
      margin-top: 6px;
    }

    .mini-progress-bar {
      height: 100%;
      background: var(--brand-orange);
      border-radius: 3px;
    }

    /* Pricing block in package card */
    .p-tier-price {
      margin-top: auto;
      padding-top: 15px;
      border-top: 1px solid #edf2f7;
      display: flex;
      align-items: baseline;
      justify-content: center;
      gap: 10px;
    }

    .p-tier-price .price-val {
      font-size: 21px;
      font-weight: 800;
      color: var(--brand-orange);
    }

    .p-tier-price .price-orig {
      font-size: 13px;
      color: #b2bec3;
      text-decoration: line-through;
    }

    .p-tier-price .price-spec {
      font-size: 11px;
      color: #666;
      background: #edf2f7;
      padding: 3px 8px;
      border-radius: 4px;
    }

    /* Bottom Actions CTA */
    .report-bottom-cta {
      margin-top: 40px;
      background: #faf8f5;
      border: 2px solid #e5ded4;
      border-radius: var(--radius-lg);
      padding: 35px;
      text-align: center;
      box-shadow: var(--shadow-sm);
    }

    .cta-plan-title {
      font-size: 22px;
      font-weight: 800;
      color: var(--brand-dark);
      margin-bottom: 8px;
    }

    .cta-plan-desc {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 24px;
    }

    .cta-buttons-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    /* Primary strong subscribe button */
    .btn-subscribe {
      background: var(--brand-orange) !important;
      color: var(--white) !important;
      font-size: 19px !important;
      font-weight: 800 !important;
      padding: 16px 48px !important;
      border-radius: var(--radius-pill) !important;
      border: none !important;
      cursor: pointer !important;
      box-shadow: 0 10px 25px rgba(217, 69, 18, 0.4) !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      transform: scale(1);
    }

    .btn-subscribe:hover {
      background: #eb521a !important;
      transform: translateY(-4px) scale(1.04) !important;
      box-shadow: 0 15px 35px rgba(217, 69, 18, 0.55) !important;
    }

    .btn-subscribe:active {
      transform: scale(0.97) !important;
    }

    /* Lighter visual weight reassess button - Ghost Button style */
    .btn-reassess {
      background: transparent !important;
      color: #718096 !important;
      font-size: 15px !important;
      font-weight: 700 !important;
      padding: 14px 28px !important;
      border-radius: var(--radius-pill) !important;
      border: 1px solid rgba(0, 40, 66, 0.2) !important;
      cursor: pointer !important;
      transition: all var(--transition) !important;
      box-shadow: none !important;
    }

    .btn-reassess:hover {
      background: rgba(46, 91, 75, 0.04) !important;
      color: var(--brand-green) !important;
      border-color: var(--brand-green) !important;
    }

    /* Urgency notice text */
    .cta-urgency-notice {
      font-size: 13.5px;
      color: #b8602b;
      margin-top: 18px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    /* ─── Security Warning Label ─── */
    .security-notice-footer {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 13px;
      color: var(--text-secondary);
      background: #f7fafc;
      border: 1px solid #edf2f7;
      padding: 10px 24px;
      border-radius: var(--radius-md);
      margin: 35px auto 15px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
      max-width: 90%;
    }

    

    /* ─── Success Modal Overlay ─── */
    .success-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 40, 66, 0.7);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 100000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

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

    .success-modal-box {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 40px 30px;
      max-width: 420px;
      width: 90%;
      text-align: center;
      box-shadow: var(--shadow-lg);
      border: 3px solid var(--brand-green);
      transform: scale(0.9);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .success-modal-overlay.active .success-modal-box {
      transform: scale(1);
    }

    .success-modal-box i {
      font-size: 70px;
      color: #8ad15a;
      margin-bottom: 20px;
    }

    .success-modal-box h3 {
      font-size: 22px;
      font-weight: 800;
      color: var(--brand-dark);
      margin-bottom: 12px;
    }

    .success-modal-box p {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 25px;
      line-height: 1.6;
    }

    .success-modal-btn {
      background: var(--brand-green);
      color: var(--white);
      padding: 12px 30px;
      border-radius: var(--radius-pill);
      border: none;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(46, 91, 75, 0.2);
      transition: all 0.2s;
    }

    .success-modal-btn:hover {
      background: #1e3c31;
    }

    /* ─── Responsive Styles ─── */
