﻿@charset "UTF-8";
.upgrade-cards-clean {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 80vh;
  padding: 2.5rem 0;
}

.upgrade-card-clean {
  background: var(--PrimaryBG);
  border-radius: 2.2rem;
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 290px;
  max-width: 400px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.22s, transform 0.22s;
  border: none;
}

.upgrade-card-clean:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16);
  transform: translateY(-8px) scale(1.035);
  z-index: 3;
}

.upgrade-icon-clean {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.3rem;
  margin-top: -1.2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--PrimaryBG, #fff);
  background: linear-gradient(135deg, var(--ThirdColor, #1fa2ff) 0%, var(--FourColor, #a6ffcb) 100%);
  background: linear-gradient(135deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
  color: var(--PrimaryBG, #fff);
  transition: box-shadow 0.22s, transform 0.33s cubic-bezier(0.4, 2, 0.6, 1);
  position: relative;
  z-index: 2;
}

.icon-credits-clean {
  background: linear-gradient(135deg, var(--ThirdColor, #1fa2ff) 0%, var(--FourColor, #a6ffcb) 100%);
  background: linear-gradient(135deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
}

.icon-affiliate-clean {
  background: linear-gradient(135deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
  color: var(--PrimaryBG, #fff);
}

.upgrade-card-clean:hover .upgrade-icon-clean {
  box-shadow: 0 8px 32px var(--ThirdColor, rgba(255, 210, 0, 0.2666666667));
  transform: scale(1.13) rotate(-8deg);
}

.upgrade-title-wrap-clean {
  width: 100%;
  text-align: center;
  margin-bottom: 0.7rem;
}

.upgrade-title-clean {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: "Inter", "Tajawal", Arial, sans-serif;
  margin-bottom: 0.2rem;
}

.upgrade-underline-clean {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  margin: 0 auto;
  margin-bottom: 0.1rem;
}

.underline-credits-clean {
  background: linear-gradient(90deg, var(--ThirdColor, #1fa2ff) 0%, var(--FourColor, #a6ffcb) 100%);
}

.underline-affiliate-clean {
  background: linear-gradient(90deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
}

.upgrade-desc-clean {
  font-size: 1.01rem;
  color: var(--FiveColor, #888);
  margin-bottom: 1.2rem;
  line-height: 1.7;
  text-align: center;
}

.upgrade-btn-clean {
  margin-top: auto;
  padding: 0.7rem 1.7rem;
  border-radius: 1.5rem;
  border: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--ThirdColor, #1fa2ff) 0%, var(--FourColor, #a6ffcb) 100%);
  background: linear-gradient(135deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
  color: var(--PrimaryBG, #fff);
  box-shadow: 0 2px 12px var(--ThirdColor, rgba(31, 162, 255, 0.1333333333));
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.btn-affiliate-clean {
  background: linear-gradient(90deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
  color: var(--PrimaryBG, #fff);
  box-shadow: 0 2px 12px var(--ThirdColor, rgba(255, 210, 0, 0.1333333333));
}

.upgrade-btn-clean:hover {
  filter: brightness(1.08);
  transform: scale(1.06);
  box-shadow: 0 4px 18px var(--ThirdColor, rgba(31, 162, 255, 0.2));
}

.btn-affiliate-clean:hover {
  box-shadow: 0 4px 18px var(--ThirdColor, rgba(255, 210, 0, 0.2));
}

.upgrade-features-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.2rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.feature-point {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.01rem;
  font-weight: 500;
  background: var(--SecondBG, #f8f8f8);
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  color: var(--PrimaryColor_);
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.18s;
  position: relative;
}

.feature-point .feature-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--ThirdColor, #1fa2ff) 0%, var(--FourColor, #a6ffcb) 100%);
  background: linear-gradient(135deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  margin-right: 0.2rem;
  flex-shrink: 0;
  transition: transform 0.18s, box-shadow 0.18s;
  color: var(--ThirdIn);
}

.feature-point.feature-credit .feature-icon {
  background: linear-gradient(135deg, var(--ThirdColor, #1fa2ff) 0%, var(--FourColor, #a6ffcb) 100%);
  background: linear-gradient(135deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
}

.feature-point.feature-affiliate .feature-icon {
  background: linear-gradient(135deg, var(--ThirdColor, #f7971e) 0%, var(--loadinPagebarSec, #ffd200) 100%);
}

.feature-point:hover {
  /* لا ظل ولا تغيير خلفية */
  background: var(--SecondBG, #f8f8f8);
  color: var(--PrimaryColor, #111);
  transform: none;
  box-shadow: none;
}

.feature-point:hover .feature-icon {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 16px var(--ThirdColor, rgba(31, 162, 255, 0.2666666667));
}

.upgrade-offer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(7px) saturate(1.5);
  -webkit-backdrop-filter: blur(7px) saturate(1.5);
  border-radius: 1.5rem;
  border: 2.5px solid;
  border-image: linear-gradient(90deg, var(--ThirdColor, #ffda57) 0%, #ffd97a 100%) 1;
  box-shadow: 0 4px 24px 0 rgba(255, 218, 87, 0.13), 0 1.5px 8px 0 rgba(0, 0, 0, 0.07);
  color: var(--ThirdColor, #ffda57);
  font-weight: 800;
  font-size: 1.13rem;
  padding: 0.7rem 1.5rem;
  margin: 0.7rem 0 1.1rem 0;
  letter-spacing: 0.7px;
  min-height: 2.5rem;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}

.upgrade-offer-bar .lnil {
  font-size: 1.45rem;
  margin-right: 0.4rem;
  animation: offer-bounce 1.2s infinite alternate cubic-bezier(0.4, 2, 0.6, 1);
  color: var(--ThirdColor, #ffda57);
  filter: drop-shadow(0 2px 6px rgba(255, 217, 122, 0.5333333333));
}

.upgrade-offer-bar b {
  font-size: 1.18em;
  letter-spacing: 1px;
  color: var(--PrimaryBG, #222);
  margin: 0 0.2em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5333333333);
}

.upgrade-offer-bar:hover {
  box-shadow: 0 8px 32px 0 rgba(255, 217, 122, 0.2666666667), 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transform: scale(1.03) translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--ThirdColor, #ffda57);
}

@keyframes offer-bounce {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1.18) translateY(-5px);
  }
}
@media (max-width: 900px) {
  .upgrade-offer-bar {
    font-size: 1.01rem;
    padding: 0.6rem 0.7rem;
  }
}
.affiliate-progress-bar-wrap {
  width: 100%;
  margin: 0.7rem 0 1.1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.affiliate-progress-bar-bg {
  width: 100%;
  height: 13px;
  background: var(--SecondBG, #f8f8f8);
  border-radius: 1.2rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.affiliate-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ThirdColor, #f7971e) 0%, #ffd97a 100%);
  border-radius: 1.2rem 0 0 1.2rem;
  box-shadow: 0 1px 6px var(--ThirdColor, rgba(255, 210, 0, 0.1333333333));
  transition: width 0.7s cubic-bezier(0.4, 2, 0.6, 1);
}

.affiliate-progress-hint {
  font-size: 0.97rem;
  color: var(--FiveColor, #888);
  margin-top: 0.2rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .upgrade-cards-clean {
    flex-direction: column;
    gap: 2.2rem;
    align-items: center;
  }
  .upgrade-card-clean {
    max-width: 98vw;
  }
  .upgrade-features-list {
    width: 100%;
  }
  .upgrade-offer-bar, .affiliate-progress-bar-wrap {
    width: 100%;
  }
}
.upgrade-ribbon-vertical {
  position: absolute;
  left: -18px;
  top: 28px;
  height: 90px;
  width: 44px;
  background: linear-gradient(135deg, var(--ThirdColor, #ffda57) 0%, #ffd97a 100%);
  color: var(--PrimaryBG, #222);
  font-weight: 900;
  font-size: 1.01rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0 1.5rem 1.5rem 0;
  box-shadow: 0 2px 12px rgba(255, 217, 122, 0.2);
  z-index: 3;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0.3rem 0.2rem;
  border-right: 3px solid var(--PrimaryBG, #fff);
  transition: box-shadow 0.18s, filter 0.18s, left 0.18s;
}

.upgrade-ribbon-vertical .lnil {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  color: var(--PrimaryBG, #222);
  filter: drop-shadow(0 2px 6px rgba(255, 217, 122, 0.5333333333));
}

.upgrade-card-clean:hover .upgrade-ribbon-vertical {
  box-shadow: 0 6px 24px rgba(255, 217, 122, 0.3333333333);
  filter: brightness(1.08) saturate(1.2);
  left: -10px;
}

@media (max-width: 900px) {
  .upgrade-ribbon-vertical {
    left: -10px;
    top: 18px;
    height: 70px;
    width: 38px;
    font-size: 0.93rem;
  }
}
.upgrade-badge-floating {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--ThirdColor, #ffda57) 0%, #ffd97a 100%);
  color: var(--PrimaryBG, #222);
  font-weight: 900;
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 2.2rem;
  box-shadow: 0 2px 12px rgba(255, 217, 122, 0.2);
  z-index: 5;
  letter-spacing: 0.5px;
  padding: 0.45rem 1.3rem 0.45rem 1.1rem;
  border: 2.5px solid #fff;
  min-height: 2.2rem;
  min-width: 2.2rem;
  text-align: center;
  transition: box-shadow 0.18s, filter 0.18s, top 0.18s;
  cursor: pointer;
  user-select: none;
}

.upgrade-badge-floating .lnil {
  font-size: 1.18rem;
  color: var(--PrimaryBG, #222);
  filter: drop-shadow(0 2px 6px rgba(255, 217, 122, 0.5333333333));
}

.upgrade-card-clean:hover .upgrade-badge-floating {
  box-shadow: 0 6px 24px rgba(255, 217, 122, 0.3333333333);
  filter: brightness(1.08) saturate(1.2);
  top: -24px;
}

@media (max-width: 900px) {
  .upgrade-badge-floating {
    font-size: 0.93rem;
    padding: 0.35rem 0.8rem 0.35rem 0.7rem;
    top: -12px;
  }
}
.upgrade-ribbon-angled {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 48px;
  background: linear-gradient(90deg, #1ec88b 0%, rgba(30, 200, 13, 0.36) 100%);
  background: linear-gradient(90deg, #5c47cf 0%, #7764e1 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(33, 150, 243, 0.2666666667);
  z-index: 10;
  letter-spacing: 1px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  border-top-left-radius: 1.2rem;
  border-bottom-right-radius: 1.2rem;
  user-select: none;
  transition: box-shadow 0.18s, filter 0.18s, top 0.18s;
  pointer-events: none;
}

.upgrade-ribbon-timer {
  display: block;
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 2px;
  letter-spacing: 0.2px;
  color: #e3f2fd;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.upgrade-offer-timer {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: #2196f3;
  text-align: center;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.0666666667);
}

.upgrade-badge-corner {
  position: absolute;
  top: 18px;
  right: -26px;
  background: #1ec88b;
  background: #c81e56;
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.32em 1.1em;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px rgba(200, 30, 86, 0.2);
  transform: rotate(30deg);
  letter-spacing: 1px;
  z-index: 12;
  user-select: none;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  animation: badge-pulse 1.4s infinite cubic-bezier(0.4, 2, 0.6, 1);
}

.dashboard-header.offer .upgrade-badge-corner {
  width: 185px;
  top: 24px;
  right: -43px;
  transform: rotate(35deg);
  border-radius: 0;
}

@keyframes badge-pulse {
  0% {
    filter: brightness(1) scale(1);
    box-shadow: 0 2px 8px rgba(200, 30, 86, 0.2);
  }
  60% {
    filter: brightness(1.15) scale(1.11);
    box-shadow: 0 4px 16px rgba(200, 30, 86, 0.3333333333);
  }
  100% {
    filter: brightness(1) scale(1);
    box-shadow: 0 2px 8px rgba(200, 30, 86, 0.2);
  }
}
@media (max-width: 900px) {
  .upgrade-badge-corner {
    top: 8px;
    right: 8px;
    font-size: 0.89rem;
  }
}
.upgrade-card-clean {
  position: relative;
}

@media (max-width: 900px) {
  .upgrade-ribbon-angled {
    width: 100px;
    height: 36px;
    font-size: 1.01rem;
  }
}
.ribbon-3d-number {
  display: inline-block;
  font-size: 1.6em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(30, 200, 139, 0.5333333333), 0 1px 0 #2196f3, 0 0 16px rgba(0, 0, 0, 0.2666666667);
  transform: perspective(80px) rotateX(12deg) scale(1.18);
  letter-spacing: 1.5px;
  transition: transform 0.18s cubic-bezier(0.4, 2, 0.6, 1);
  animation: ribbon3d-pop 0.7s cubic-bezier(0.4, 2, 0.6, 1);
}

@keyframes ribbon3d-pop {
  0% {
    transform: perspective(80px) rotateX(60deg) scale(0.5);
    opacity: 0.2;
  }
  60% {
    transform: perspective(80px) rotateX(-8deg) scale(1.25);
    opacity: 1;
  }
  100% {
    transform: perspective(80px) rotateX(12deg) scale(1.18);
    opacity: 1;
  }
}
.upgrade-choice-header {
  text-align: center;
  margin-bottom: 2.2rem;
  margin-top: 1.2rem;
}

.upgrade-choice-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--PrimaryBG, #222);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #2196f3 0%, #21cbf3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

.upgrade-choice-desc {
  font-size: 1.13rem;
  color: var(--FiveColor, #888);
  margin: 0 auto;
  max-width: 540px;
  font-weight: 500;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .upgrade-choice-title {
    font-size: 1.3rem;
  }
  .upgrade-choice-desc {
    font-size: 1.01rem;
  }
}
.switch-credit-header {
  text-align: center;
  margin-bottom: 2.2rem;
  margin-top: 1.2rem;
}

.switch-credit-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--PrimaryBG, #222);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #2196f3 0%, #21cbf3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

.switch-credit-desc {
  font-size: 1.13rem;
  color: var(--FiveColor, #888);
  margin: 0 auto;
  max-width: 540px;
  font-weight: 500;
  line-height: 1.7;
}

.switch-credit-card {
  background: var(--PrimaryBG);
  border-radius: 2.2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 480px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 1.1rem;
}

.switch-credit-current, .switch-credit-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.2rem;
}

.switch-credit-label {
  font-size: 1.01rem;
  color: var(--FiveColor, #888);
  font-weight: 600;
}

.switch-credit-plan {
  font-size: 1.13rem;
  font-weight: 800;
  color: var(--PrimaryColor, #222);
  margin-top: 0.1rem;
}

.switch-credit-plan-new {
  color: #2196f3;
}

.switch-credit-arrow {
  font-size: 2.2rem;
  color: #21cbf3;
  font-weight: 900;
  margin: 0;
  height: 3px;
  line-height: 0px;
}

.switch-credit-amount {
  color: #21cbf3;
  font-size: 1.18em;
  font-weight: 900;
}

.switch-credit-benefits {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.2rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.switch-credit-benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.01rem;
  font-weight: 500;
  color: var(--PrimaryColor_);
}

.switch-credit-benefits .lnil {
  font-size: 1.15rem;
  color: #21cbf3;
}

.switch-credit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  align-items: center;
}

.switch-credit-btn {
  padding: 0.7rem 1.7rem;
  border-radius: 1.5rem;
  border: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #2196f3 0%, #21cbf3 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(33, 150, 243, 0.1333333333);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  margin-bottom: 0.2rem;
}

.switch-credit-btn-main {
  background: linear-gradient(90deg, #2196f3 0%, #21cbf3 100%);
}

.switch-credit-btn-secondary {
  background: var(--SecondBG);
  color: var(--PrimaryColor);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1333333333);
}

.switch-credit-btn-confirm {
  background: #1ec88b;
  color: #fff;
}

.switch-credit-btn-cancel {
  background: #e57373;
  color: #fff;
}

.switch-credit-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(33, 150, 243, 0.2);
}

.switch-credit-confirm-text {
  color: #e57373;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  text-align: center;
}

@media (max-width: 600px) {
  .switch-credit-card {
    padding: 1.2rem 0.5rem;
    max-width: 99vw;
  }
  .switch-credit-title {
    font-size: 1.2rem;
  }
  .switch-credit-desc {
    font-size: 0.98rem;
  }
}
.support-contact-box {
  margin: 2.2rem auto 0 auto;
  text-align: center;
  font-size: 1.08rem;
  color: var(--FiveColor, #888);
  font-weight: 500;
}

.support-fb-link {
  display: inline-block;
  margin-left: 0.5em;
  color: #1877f3;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px dashed #1877f3;
  transition: color 0.18s, border-color 0.18s;
}

.support-fb-link:hover {
  color: #0e5ab6;
  border-color: #0e5ab6;
  text-decoration: underline;
}

/****************#########################*/
/* Color System for Light and Dark Themes */
/*:root {


}*/
/*[data-theme=light] {

}*/
.container-upg {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Interface Header */
.interface-header-upg {
  text-align: center;
  margin-bottom: 3rem;
}

.header-icon-upg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.interface-header-upg h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.interface-header-upg p {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin: 0;
}

/* Offer Banner */
.offer-banner-upg {
  background: var(--gradient-secondary);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.2);
  animation: pulse-glow 2s infinite;
}

.offer-content-upg {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.offer-badge-upg {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.offer-text-upg {
  flex: 1;
  font-weight: 500;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.2);
  }
  50% {
    box-shadow: 0 8px 40px rgba(249, 115, 22, 0.4);
  }
}
/* Credits Calculator */
.credits-calculator-upg {
  margin-bottom: 3rem;
}

.calculator-card-upg {
  background: var(--PrimaryBG);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 40px var(--shadow-secondary);
  border: 1px solid var(--PrimaryBorder);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.calculator-card-upg:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--shadow-primary);
}

/* Stats Display */
.stats-display-upg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-box-upg {
  background: var(--bodyBG);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--PrimaryBorder);
}

.stat-box-upg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-secondary);
}

.credits-stat-upg {
  border-left: 4px solid var(--PrimaryBorder);
}

.cost-stat-upg {
  border-left: 4px solid var(--PrimaryBorder);
}

.stat-icon-upg {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  color: white;
}

.cost-stat-upg .stat-icon-upg {
  background: var(--gradient-success);
}

.stat-content-upg {
  flex: 1;
}

.stat-number-upg {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label-upg {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.credits-hint-upg {
  font-size: 0.8rem;
  color: var(--text-quaternary);
  font-weight: 400;
}

/* Bonus Credits */
.bonus-credits-upg {
  background: var(--gradient-secondary);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.bonus-content-upg {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bonus-icon-upg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bonus-info-upg {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bonus-label-upg {
  font-weight: 500;
}

.bonus-amount-upg {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Coupon Section */
.coupon-section-upg {
  margin: 1rem 0;
}

.coupon-input-wrapper-upg {
  display: flex;
  gap: 0.5rem;
}

.coupon-input-upg {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--PrimaryBorder);
  border-radius: 12px;
  background: var(--bodyBG);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.coupon-input-upg:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.apply-coupon-btn-upg, .remove-coupon-btn-upg {
  padding: 2px 15px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  FONT-SIZE: 20px;
}

.apply-coupon-btn-upg:hover, .remove-coupon-btn-upg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.coupon-message-upg {
  font-size: 0.9rem;
  color: var(--success-green);
  margin-top: 0.5rem;
  display: block;
}

.remove-coupon-btn-upg {
  background: var(--error-red);
}

/* Quick Select */
.quick-select-upg {
  margin-bottom: 2rem;
}

.quick-select-upg h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.quick-buttons-upg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.quick-btn-upg {
  background: var(--PrimaryBG);
  border: 2px solid var(--PrimaryBorder);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
}

.quick-btn-upg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-secondary);
  border-color: var(--primary-blue);
}

.quick-btn-upg.selected {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
}

.quick-amount-upg {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.quick-credits-upg {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.multiplier-tag-upg {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Price Controls */
.price-controls-upg {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.range-container-upg, .input-container-upg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-container-upg label, .input-container-upg label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.range-wrapper-upg {
  position: relative;
}

.modern-range-upg {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #EF4444 0%, #EF4444 0.8808808809%, #F97316 0.8808808809%, #F97316 1.8818818819%, #F59E0B 1.8818818819%, #F59E0B 3.8838838839%, #3B82F6 3.8838838839%, #3B82F6 9.8898898899%, #60A5FA 9.8898898899%, #60A5FA 19.8998998999%, #10B981 19.8998998999%, #10B981 100%);
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.modern-range-upg::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.modern-range-upg::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.modern-range-upg::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  z-index: 2;
}

.range-markers-upg {
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 10px;
}

.range-markers-upg::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 5px;
  background: var(--text-tertiary);
  left: 1%;
}

.range-markers-upg::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 5px;
  background: var(--text-tertiary);
  left: 10%;
}

.range-markers-upg::before:nth-of-type(3) {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 10px;
  background: var(--text-tertiary);
  left: 20%;
}

.range-markers-upg::before:nth-of-type(4) {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 10px;
  background: var(--text-tertiary);
  left: 40%;
}

.range-markers-upg::after:nth-of-type(2) {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 10px;
  background: var(--text-tertiary);
  left: 60%;
}

.range-markers-upg::before:nth-of-type(5) {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 10px;
  background: var(--text-tertiary);
  left: 80%;
}

.multiplier-indicator-upg {
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  pointer-events: none;
  display: none;
}

.range-wrapper-upg:hover .multiplier-indicator-upg {
  display: block;
}

.range-labels-upg {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-quaternary);
  margin-top: 0.5rem;
}

.input-wrapper-upg {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol-upg {
  position: absolute;
  left: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  z-index: 2;
}

.cost-input-upg {
  width: 100%;
  padding: 12px 16px 12px 32px;
  border: 2px solid var(--PrimaryBorder);
  border-radius: 12px;
  background: var(--bodyBG);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  outline: none;
}

.cost-input-upg:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: var(--PrimaryBG);
}

/* Value Indicator */
.value-indicator-upg {
  background: var(--bodyBG);
  border-radius: 12px;
  padding: 1rem;
}

.indicator-text-upg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rate-upg {
  color: var(--text-secondary);
  font-weight: 500;
}

.savings-upg {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Multiplier Progress */
.multiplier-progress-upg {
  position: relative;
  height: 20px;
  border-radius: 10px;
  background: var(--PrimaryBG);
  overflow: hidden;
  border: 2px solid var(--PrimaryBorder);
}

.progress-bar-upg {
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-upg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  animation: progressStripe 1.5s linear infinite;
}

@keyframes progressStripe {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Payment Methods */
.payment-methods-upg {
  margin-bottom: 3rem;
}

.payment-methods-upg h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.payment-options-upg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-btn-upg {
  background: var(--PrimaryBG);
  border: 2px solid var(--PrimaryBorder);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.payment-btn-upg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-secondary);
  border-color: var(--primary-blue);
}

.payment-btn-upg.selected {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
}

.payment-btn-upg.selected .payment-check-upg {
  opacity: 1;
  transform: scale(1);
}

.payment-icon-upg {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bodyBG);
  color: var(--text-secondary);
}

.paypal-logo {
  cursor: pointer;
  transition: all 0.3s ease;
}

.paypal-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 5px 15px rgba(0, 112, 186, 0.4));
}

.stripe-icon {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.stripe-icon:hover {
  transform: scale(1.05);
}

.s-letter {
  fill: #635bff;
  transition: fill 0.2s ease;
}

.stripe-icon:hover .s-letter {
  fill: #7c73ff;
}

.p-light {
  fill: #009cde;
  transition: fill 0.3s ease;
}

.p-dark {
  fill: #003087;
  transition: fill 0.3s ease;
}

.paypal-logo:hover .p-light {
  fill: #00b3f0;
}

.paypal-logo:hover .p-dark {
  fill: #0070ba;
}

.payment-content-upg {
  flex: 1;
}

.payment-name-upg {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.payment-desc-upg {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.payment-check-upg {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

/* Purchase Button */
.purchase-btn-upg {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
}

.purchase-btn-upg:disabled {
  background: var(--PrimaryBorder);
  color: var(--text-quaternary);
  cursor: not-allowed;
}

.purchase-btn-upg:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.purchase-btn-upg:not(:disabled):active {
  transform: translateY(0);
}

.btn-loader-upg {
  display: none;
}

.purchase-btn-upg.loading .btn-text-upg {
  opacity: 0;
}

.purchase-btn-upg.loading .btn-loader-upg {
  display: block;
  position: absolute;
}

.spinner-upg {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Security Badges */
.security-badges-upg {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.badge-upg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.badge-upg i {
  color: var(--success-green);
  font-size: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container-upg {
    padding: 1rem;
  }
  .interface-header-upg h1 {
    font-size: 2rem;
  }
  .stats-display-upg {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .price-controls-upg {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .payment-options-upg {
    grid-template-columns: 1fr;
  }
  .security-badges-upg {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .offer-content-upg {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .indicator-text-upg {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .multiplier-progress-upg {
    height: 15px;
  }
  .range-markers-upg {
    top: -15px;
  }
  .multiplier-indicator-upg {
    top: -20px;
    font-size: 0.7rem;
  }
  .multiplier-tag-upg {
    font-size: 0.6rem;
    top: 6px;
    right: 6px;
  }
  .coupon-section-upg {
    margin: 0.5rem 0;
  }
  .coupon-input-wrapper-upg {
    flex-direction: column;
  }
  .apply-coupon-btn-upg, .remove-coupon-btn-upg {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .calculator-card-upg {
    padding: 1.5rem;
  }
  .payment-btn-upg {
    padding: 1rem;
  }
  .stat-box-upg {
    padding: 1rem;
  }
  .stat-number-upg {
    font-size: 1.5rem;
  }
  .header-icon-upg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .multiplier-progress-upg {
    height: 12px;
  }
  .range-markers-upg {
    top: -12px;
  }
  .multiplier-indicator-upg {
    top: -18px;
    font-size: 0.6rem;
  }
}
/* Additional Effects */
.pulse-upg {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}
.loading-shimmer-upg {
  background: linear-gradient(90deg, var(--bodyBG) 25%, var(--PrimaryBorder) 50%, var(--bodyBG) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* تصميم مدمج بارتفاع 50px */
.credit-card-v3 {
  background: var(--bodyBG);
  border: 1px solid var(--PrimaryBorder);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--PrimaryShadow);
  height: 50px;
  /*    overflow: hidden;
  */
}

/*.credit-card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4757, #f39c12, #27ae60);
    opacity: 0.8;
}*/
.credit-card-v3:hover {
  border-color: var(--ThirdBG);
  box-shadow: 0 8px 25px var(--PrimaryShadow);
  transform: translateY(-1px);
}

/* العناصر المشتركة */
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 10px var(--PrimaryShadow);
  animation: pulse 2s infinite;
  position: absolute;
  top: 8px;
  right: 12px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.4);
  }
}
.progress-mini {
  width: 100%;
  height: 2px;
  background: var(--PrimaryBG);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 2px;
}

.progress-mini-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.8s ease;
  background: linear-gradient(90deg, currentColor, var(--PrimaryBorder));
}

/* التخطيط الجديد */
.card-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.credit-section {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.credit-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.credit-icon.usage-global {
  background: linear-gradient(135deg, #ff4757, #ff6b7a);
  color: white;
}

.credit-icon.sub {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  color: white;
}

.credit-info {
  flex: 1;
  min-width: 0;
}

.credit-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1px;
  color: white;
}

.credit-value.usage-global {
  color: #ff4757;
}

.credit-value.sub {
  color: #f39c12;
}

.credit-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #888;
  line-height: 1;
}

.credit-consumption {
  color: #666;
}

.credit-articles {
  color: #27ae60;
  font-weight: 600;
}

.divider-vertical {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, #444, transparent);
  flex-shrink: 0;
}

/* Tooltips */
.tooltip-usage {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid #404040;
  border-radius: 12px;
  padding: 20px;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tooltip-usage::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.95);
}

.credit-card-v3:hover .tooltip-usage {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .credit-card-v3 {
    grid-template-columns: 1fr 1px 1fr auto;
    height: 50px;
  }
  .v3-value {
    font-size: 12px;
  }
  .v3-title {
    font-size: 8px;
  }
}
/*********/
/* البطاقات الأساسية */
.processing-card,
.redirect-card,
.success-card,
.failure-card,
.payment-card {
  background: var(--PrimaryBG);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px var(--shadow-primary);
  border: 1px solid var(--PrimaryBorder);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 750px;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* رؤوس الصفحات */
.processing-header,
.redirect-header,
.success-header,
.failure-header,
.payment-header {
  text-align: center;
  margin-bottom: 30px;
}

.processing-icon,
.success-icon,
.failure-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: pulse 2s infinite;
}

.processing-icon {
  background: var(--gradient-primary);
  color: white;
}

.success-icon {
  background: var(--gradient-success);
  color: white;
}

.failure-icon {
  background: linear-gradient(135deg, var(--error-red), #dc2626);
  color: white;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
/* شعارات طرق الدفع */
.payment-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  animation: bounce 2s infinite;
}

.paypal-logo {
  background: linear-gradient(135deg, var(--paypal-blue), var(--paypal-dark));
}

.stripe-logo {
  background: linear-gradient(135deg, var(--stripe-purple), var(--stripe-dark));
}

.vodafone-logo {
  background: linear-gradient(135deg, var(--vodafone-red), #cc0000);
}

.instapay-logo {
  background: linear-gradient(135deg, var(--instapay-blue), #1e3a8a);
}

.wallets-logo {
  background: var(--gradient-secondary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
/* العناوين والنصوص */
h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--PrimaryColor);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--PrimaryColor_);
}

h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--PrimaryColor_);
}

p {
  color: var(--SecondColor);
  margin-bottom: 15px;
}

/* الرسوم المتحركة للمعالجة */
.processing-animation,
.redirect-animation {
  text-align: center;
  margin: 40px 0;
}

.loading-spinner,
.redirect-spinner {
  margin-bottom: 30px;
}

.spinner,
.paypal-spinner,
.stripe-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--PrimaryBorder);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

.spinner {
  border-top-color: var(--ThirdColor);
}

.paypal-spinner {
  border-top-color: var(--paypal-blue);
}

.stripe-spinner {
  border-top-color: var(--stripe-purple);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* شريط التقدم */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--PrimaryBorder);
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  height: 100%;
  background: var(--lineProgressAnalyse);
  border-radius: 4px;
  animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}
/* العد التنازلي */
.countdown {
  text-align: center;
}

.countdown span {
  font-size: 48px;
  font-weight: 700;
  color: var(--ThirdColor);
  display: block;
  margin-bottom: 10px;
}

.countdown p {
  color: var(--SecondColor);
  font-size: 14px;
}

/* خطوات المعالجة */
.processing-steps {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step.processing {
  opacity: 1;
  animation: pulse 1.5s infinite;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--PrimaryBorder);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.step.active .step-icon,
.step.processing .step-icon {
  background: var(--ThirdColor);
  color: var(--ThirdIn);
}

.step span {
  font-size: 12px;
  text-align: center;
  color: var(--SecondColor);
}

.step.active span,
.step.processing span {
  color: var(--PrimaryColor);
  font-weight: 600;
}

/* تفاصيل الدفع */
.payment-details,
.transaction-details {
  background: var(--SecondBG);
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid var(--PrimaryBorder);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--PrimaryBorder);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  color: var(--SecondColor);
  font-weight: 500;
}

.detail-row .value {
  color: var(--PrimaryColor);
  font-weight: 600;
}

.status-completed {
  color: var(--success-green) !important;
  background: var(--success-bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

/* معلومات الأمان */
.security-info,
.security-features {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.security-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.security-item i {
  font-size: 24px;
  color: var(--success-green);
  margin-bottom: 8px;
}

.security-item span {
  font-size: 12px;
  color: var(--SecondColor);
}

/* الأزرار */
.primary-btn,
.secondary-btn,
.cancel-btn,
.redirect-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  min-width: 150px;
  margin: 5px;
}

.primary-btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.secondary-btn {
  background: var(--SecondBG);
  color: var(--PrimaryColor);
  border: 1px solid var(--PrimaryBorder);
}

.secondary-btn:hover {
  background: var(--ThirdBG);
  transform: translateY(-1px);
}

.cancel-btn {
  background: linear-gradient(135deg, var(--error-red), #dc2626);
  color: white;
}

.cancel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.redirect-btn {
  background: var(--gradient-primary);
  color: white;
  width: 100%;
  margin: 10px 0;
}

.paypal-btn {
  background: linear-gradient(135deg, var(--paypal-blue), var(--paypal-dark)) !important;
}

.stripe-btn {
  background: linear-gradient(135deg, var(--stripe-purple), var(--stripe-dark)) !important;
}

.vodafone-btn {
  background: linear-gradient(135deg, var(--vodafone-red), #cc0000) !important;
}

.instapay-btn {
  background: linear-gradient(135deg, var(--instapay-blue), #1e3a8a) !important;
}

.wallets-btn {
  background: var(--gradient-secondary) !important;
}

/* أزرار الإجراءات */
.processing-actions,
.redirect-actions,
.success-actions,
.failure-actions,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

/* ملخص الدفع الناجح */
.payment-summary {
  background: var(--SecondBG);
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid var(--PrimaryBorder);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--PrimaryBorder);
}

.summary-header i {
  font-size: 24px;
  color: var(--ThirdColor);
}

/* معلومات الكريدت */
.credit-info {
  margin: 20px 0;
}

.credit-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--ThirdBG);
  border-radius: 10px;
  border: 1px solid var(--PrimaryBorder);
}

.credit-item.highlight {
  background: var(--success-bg);
  border-color: var(--success-green);
}

.credit-item .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--success-green);
}

/* تفاصيل العرض */
.offer-details {
  background: var(--warning-bg);
  border: 1px solid var(--warning-yellow);
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
}

.offer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--warning-yellow);
  font-weight: 600;
}

.offer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-percentage {
  font-size: 24px;
  font-weight: 700;
  color: var(--warning-yellow);
}

.offer-text {
  color: var(--SecondColor);
}

/* معلومات الكوبون */
.coupon-info {
  margin: 20px 0;
}

.coupon-used {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: var(--success-bg);
  border: 1px solid var(--success-green);
  border-radius: 10px;
}

.coupon-used i {
  color: var(--success-green);
  margin-left: 10px;
}

.coupon-discount {
  background: var(--success-green);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* الخطوات التالية */
.next-steps {
  background: var(--ThirdBG);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--PrimaryBorder);
}

.next-steps ul {
  list-style: none;
  padding-left: 0;
}

.next-steps li {
  padding: 8px 0;
  color: var(--SecondColor);
  position: relative;
  padding-left: 20px;
}

.next-steps li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

/* صفحة الفشل */
.failure-card {
  border: 2px solid var(--error-red);
}

.error-details {
  background: var(--error-bg);
  border: 1px solid var(--error-red);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.error-code,
.error-message,
.transaction-ref {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*    padding: 10px 0;
  */
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.error-code:last-child,
.error-message:last-child,
.transaction-ref:last-child {
  border-bottom: none;
}

.error-details .value {
  color: var(--error-red);
  font-weight: 600;
}

/* أسباب الفشل */
.failure-reasons {
  margin: 25px 0;
}

.reasons-list {
  list-style: none;
  padding: 0;
}

.reasons-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--PrimaryBorder);
}

.reasons-list li:last-child {
  border-bottom: none;
}

.reasons-list i {
  color: var(--error-red);
  width: 20px;
}

/* الإجراءات المقترحة */
.suggested-actions {
  margin: 25px 0;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.action-card {
  background: var(--SecondBG);
  border: 1px solid var(--PrimaryBorder);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-secondary);
  border-color: var(--ThirdColor);
}

.action-card i {
  font-size: 24px;
  color: var(--ThirdColor);
  margin-bottom: 10px;
}

.action-card h4 {
  margin-bottom: 8px;
  color: var(--PrimaryColor);
}

.action-card p {
  font-size: 12px;
  color: var(--SecondColor);
  margin: 0;
}

/* طرق الدفع البديلة */
.alternative-methods {
  margin: 25px 0;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.method-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--SecondBG);
  color: var(--PrimaryColor);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--PrimaryBorder);
}

.method-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--shadow-secondary);
}

/* معلومات الدعم */
.support-info {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--PrimaryBorder);
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.contact-methods span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--SecondColor);
  font-size: 14px;
}

.contact-methods i {
  color: var(--ThirdColor);
}

/* نماذج الدفع */
.payment-form {
  margin: 30px 0;
}

.form-group {
  /*    margin-bottom: 25px;
  */
}

.form-group label {
  display: block;
  /*    margin-bottom: 8px;
  */
  color: var(--BtnBorder);
  font-weight: 600;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid var(--PrimaryBorder);
  border-radius: 10px;
  background: var(--SecondBG);
  color: var(--PrimaryColor);
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--ThirdColor);
  box-shadow: 0 0 0 3px rgba(255, 218, 87, 0.1);
}

.input-prefix {
  position: absolute;
  right: 15px;
  color: var(--SecondColor);
  font-weight: 600;
  z-index: 2;
}

.input-group input[type=tel] {
  padding-right: 60px;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: var(--SecondColor);
  font-size: 18px;
}

.toggle-password {
  position: absolute;
  left: 45px;
  background: none;
  border: none;
  color: var(--SecondColor);
  cursor: pointer;
  padding: 5px;
}

.input-help {
  display: block;
  margin-top: 5px;
  color: var(--text-tertiary);
  font-size: 12px;
}

/* عرض المبلغ */
.payment-amount {
  text-align: center;
  margin: 30px 0;
}

.amount-display {
  background: var(--gradient-primary);
  color: white;
  padding: 25px;
  border-radius: 15px;
  display: inline-block;
  min-width: 200px;
}

.amount {
  font-size: 36px;
  font-weight: 700;
  display: block;
  margin: 5px 0;
}

.currency,
.amount-label {
  font-size: 14px;
  opacity: 0.9;
}

/* تعليمات الدفع */
.payment-instructions {
  margin: 30px 0;
}

.steps {
  margin-top: 15px;
}

.step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--PrimaryBorder);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ThirdColor);
  color: var(--ThirdIn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* اختيار البنك */
.bank-selection {
  margin: 25px 0;
}

.banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.bank-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--SecondBG);
  border: 2px solid var(--PrimaryBorder);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.bank-option:hover {
  border-color: var(--ThirdColor);
  transform: translateY(-2px);
}

.bank-option.selected {
  border-color: var(--ThirdColor);
  background: rgba(255, 218, 87, 0.1);
}

.bank-option img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.bank-option i {
  font-size: 40px;
  color: var(--ThirdColor);
  margin-bottom: 10px;
}

.bank-option span {
  font-size: 12px;
  color: var(--SecondColor);
  font-weight: 600;
}

/* اختيار المحافظ */
.wallets-selection {
  margin: 30px 0;
}

.wallets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--SecondBG);
  border: 2px solid var(--PrimaryBorder);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-option:hover {
  border-color: var(--ThirdColor);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-secondary);
}

.wallet-option.selected {
  border-color: var(--ThirdColor);
  background: rgba(255, 218, 87, 0.1);
}

.wallet-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.wallet-icon.vodafone {
  background: linear-gradient(135deg, var(--vodafone-red), #cc0000);
}

.wallet-icon.orange {
  background: linear-gradient(135deg, #ff6600, #e55a00);
}

.wallet-icon.etisalat {
  background: linear-gradient(135deg, #00b04f, #009940);
}

.wallet-icon.we {
  background: linear-gradient(135deg, #7b2cbf, #6a1b9a);
}

.wallet-icon.fawry {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.wallet-icon.masary {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.wallet-info h4 {
  margin-bottom: 5px;
  color: var(--PrimaryColor);
}

.wallet-info p {
  margin: 0 0 5px 0;
  font-size: 12px;
  color: var(--SecondColor);
}

.wallet-fee {
  font-size: 11px;
  color: var(--ThirdColor);
  font-weight: 600;
}

/* المحفظة المختارة */
.selected-wallet {
  background: var(--success-bg);
  border: 1px solid var(--success-green);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.wallet-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.wallet-icon-small {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.wallet-name {
  flex: 1;
  font-weight: 600;
  color: var(--PrimaryColor);
}

.wallet-total {
  font-weight: 700;
  color: var(--success-green);
}

/* قسم المساعدة */
.help-section {
  margin: 30px 0;
  border-top: 1px solid var(--PrimaryBorder);
  padding-top: 0px;
}

.help-section details {
  background: var(--SecondBG);
  border: 1px solid var(--PrimaryBorder);
  border-radius: 10px;
  overflow: hidden;
}

.help-section summary {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--PrimaryColor);
  background: var(--ThirdBG);
  transition: all 0.3s ease;
}

.help-section summary:hover {
  background: var(--FourBG);
}

.help-section summary i {
  color: var(--ThirdColor);
}

.help-content {
  padding: 0px;
}

.help-content ul {
  list-style: none;
  padding-left: 0;
}

.help-content li {
  padding: 5px 0;
  color: var(--SecondColor);
  position: relative;
  padding-left: 15px;
}

.help-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ThirdColor);
}

/* جدول المقارنة */
.comparison-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  padding: 10px;
  background: var(--ThirdBG);
  border-radius: 8px;
  font-size: 12px;
}

.comparison-row .wallet-name {
  font-weight: 600;
  color: var(--PrimaryColor);
}

.comparison-row .wallet-limit,
.comparison-row .wallet-time {
  color: var(--SecondColor);
}

/* معلومات إضافية */
.processing-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
  padding: 20px;
  background: var(--SecondBG);
  border-radius: 10px;
  border: 1px solid var(--PrimaryBorder);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--SecondColor);
}

.info-item i {
  color: var(--ThirdColor);
  width: 20px;
}

.processing-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--PrimaryBorder);
}

.processing-footer p {
  margin-bottom: 15px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  .processing-card,
  .redirect-card,
  .success-card,
  .failure-card,
  .payment-card {
    padding: 25px;
    margin: 10px 0;
  }
  h1 {
    font-size: 24px;
  }
  .processing-steps {
    flex-direction: column;
    gap: 15px;
  }
  .step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
  }
  .step-icon {
    margin-bottom: 0;
    margin-left: 15px;
  }
  .security-info,
  .security-features {
    flex-direction: column;
    gap: 10px;
  }
  .security-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
  }
  .security-item i {
    margin-bottom: 0;
    margin-left: 10px;
  }
  .processing-actions,
  .redirect-actions,
  .success-actions,
  .failure-actions,
  .payment-actions {
    flex-direction: column;
  }
  .primary-btn,
  .secondary-btn,
  .cancel-btn,
  .redirect-btn {
    width: 100%;
    margin: 5px 0;
  }
  .action-cards {
    grid-template-columns: 1fr;
  }
  .payment-methods {
    flex-direction: column;
  }
  .method-btn {
    width: 100%;
    justify-content: center;
  }
  .contact-methods {
    flex-direction: column;
    gap: 10px;
  }
  .banks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wallets-grid {
    grid-template-columns: 1fr;
  }
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: center;
  }
  .amount {
    font-size: 28px;
  }
  .countdown span {
    font-size: 36px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  .processing-card,
  .redirect-card,
  .success-card,
  .failure-card,
  .payment-card {
    padding: 20px;
  }
  h1 {
    font-size: 20px;
  }
  .processing-icon,
  .success-icon,
  .failure-icon,
  .payment-logo {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
  .amount {
    font-size: 24px;
  }
  .countdown span {
    font-size: 28px;
  }
  .banks-grid {
    grid-template-columns: 1fr;
  }
}
/* تحسينات إضافية للتفاعل */
.processing-card:hover,
.redirect-card:hover,
.success-card:hover,
.failure-card:hover,
.payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px var(--shadow-primary);
}

/* تأثيرات الانتقال */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* تحسين إمكانية الوصول */
/*button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--ThirdColor);
    outline-offset: 2px;
}
*/
/* تحسين الطباعة */
@media print {
  body {
    background: white;
    color: black;
  }
  .processing-card,
  .redirect-card,
  .success-card,
  .failure-card,
  .payment-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .primary-btn,
  .secondary-btn,
  .cancel-btn {
    display: none;
  }
}
.cancel-card {
  border: 2px solid var(--error-red);
  background: linear-gradient(135deg, var(--PrimaryBG), var(--SecondBG));
}

.cancel-icon {
  background: linear-gradient(135deg, var(--error-red), #dc2626);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  animation: pulse 2s infinite;
}

.cancel-details {
  background: var(--SecondBG);
  border: 1px solid var(--PrimaryBorder);
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--PrimaryBorder);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--SecondColor);
  font-weight: 500;
}

.detail-value {
  color: var(--PrimaryColor);
  font-weight: 600;
}

.reasons-section {
  margin: 30px 0;
}

.reasons-section h3 {
  color: var(--PrimaryColor);
  margin-bottom: 20px;
  font-size: 18px;
}

.reasons-list {
  display: grid;
  gap: 15px;
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--ThirdBG);
  border: 1px solid var(--PrimaryBorder);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.reason-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 5px 15px var(--shadow-secondary);
}

.reason-item i {
  color: var(--error-red);
  font-size: 18px;
  width: 20px;
}

.reason-item span {
  color: var(--PrimaryColor);
  font-weight: 500;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.retry-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.method-btn {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 218, 87, 0.3);
}

.home-btn {
  background: transparent;
  color: var(--SecondColor);
  border: 2px solid var(--PrimaryBorder);
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.home-btn:hover {
  background: var(--SecondBG);
  color: var(--PrimaryColor);
  border-color: var(--ThirdColor);
}

.help-section {
  margin: 30px 0;
}

.help-section details {
  background: var(--ThirdBG);
  border: 1px solid var(--PrimaryBorder);
  border-radius: 10px;
  padding: 20px;
}

.help-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--PrimaryColor);
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.help-section summary::-webkit-details-marker {
  display: none;
}

.help-content {
  margin-top: 20px;
  color: var(--SecondColor);
  line-height: 1.6;
}

.help-content ul {
  margin: 15px 0;
  padding-right: 20px;
}

.help-content li {
  margin-bottom: 8px;
}

.contact-support {
  margin-top: 20px;
}

.support-btn {
  background: var(--gradient-success);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.security-notice {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.1));
  border: 1px solid var(--success-green);
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
}

.notice-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.notice-content i {
  color: var(--success-green);
  font-size: 24px;
  margin-top: 5px;
}

.notice-text h4 {
  color: var(--PrimaryColor);
  margin-bottom: 8px;
  font-size: 16px;
}

.notice-text p {
  color: var(--SecondColor);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .action-buttons {
    gap: 12px;
  }
  .retry-btn,
  .method-btn,
  .home-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .cancel-details {
    padding: 20px;
  }
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 15px 0;
  }
  .reason-item {
    padding: 12px;
  }
  .notice-content {
    flex-direction: column;
    gap: 10px;
  }
}
