/**
 * ============================================================================
 * SkyDen MC - Checkout System Stylesheet v1.0.0
 * ============================================================================
 * 
 * @package     SkyDenMC
 * @subpackage  Frontend_Styles
 * @version     1.0.0
 * @author      Amirejk43
 * @author      SkyDen Development Team
 * 
 * @license     Proprietary Software License
 * @copyright   2026 SkyDen MC. All rights reserved.
 * 
 * @link        https://skydenmc.ir
 * @since       Version 1.0.0 (2024-01-01)
 * 
 * @description Complete styling for checkout/payment page with purple theme, RTL/LTR support, Multi Language support, and vendor prefixes
 * 

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS VARIABLES
   2. RESET & BASE STYLES
   3. RTL / LTR SUPPORT
   4. HEADER STYLES
   5. MAIN CONTENT
   6. CARDS (COMMON STYLES)
   7. RULES SECTION
   8. FORM STYLES
   9. PAYMENT METHODS
   10. ACTION BUTTONS
   11. ORDER SUMMARY
   12. TOAST NOTIFICATION
   13. LOADING OVERLAY
   14. FOOTER
   15. RESPONSIVE DESIGN
   16. ANIMATIONS
   ============================================ */

/* --------------------------------------------
 * 1. CSS VARIABLES
 * -------------------------------------------- */

:root {
  /* Primary Colors - Purple Theme */
  --checkout-primary: #6c5ce7;
  --checkout-primary-dark: #5a4ad7;
  --checkout-primary-light: #8b5cf6;
  --checkout-primary-glow: rgba(108, 92, 231, 0.88);
  --checkout-primary-bg: rgba(108, 92, 231, 0.1);
  --checkout-primary-bg-hover: rgba(108, 92, 231, 0.2);

  /* Background Colors */
  --checkout-bg-body: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  --checkout-bg-header: rgba(15, 15, 26, 0.95);
  --checkout-bg-card: rgba(24, 27, 36, 0.95);
  --checkout-bg-overlay: rgba(0, 0, 0, 0.85);

  /* Text Colors */
  --checkout-text-white: #ffffff;
  --checkout-text-muted: #e0e0e0;
  --checkout-text-dim: #a0a0a0;
  --checkout-text-dark: #6c757d;
  --checkout-text-link: #6c5ce7;

  /* Border Colors */
  --checkout-border: rgba(108, 92, 231, 0.2);
  --checkout-border-light: rgba(255, 255, 255, 0.1);
  --checkout-border-input: rgba(255, 255, 255, 0.1);

  /* Button Colors */
  --checkout-btn-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  --checkout-btn-success-hover: rgba(40, 167, 69, 0.4);
  --checkout-btn-back: rgba(255, 255, 255, 0.1);
  --checkout-btn-back-hover: rgba(255, 255, 255, 0.2);

  /* Status Colors */
  --checkout-success: #28a745;
  --checkout-error: #dc3545;

  /* Shadows */
  --checkout-shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.2);
  --checkout-shadow-focus: 0 0 0 2px rgba(108, 92, 231, 0.25);
  --checkout-shadow-error: 0 0 0 2px rgba(220, 53, 69, 0.25);

  /* Spacing */
  --checkout-spacing-xs: 5px;
  --checkout-spacing-sm: 8px;
  --checkout-spacing-md: 10px;
  --checkout-spacing-lg: 12px;
  --checkout-spacing-xl: 15px;
  --checkout-spacing-2xl: 20px;
  --checkout-spacing-3xl: 25px;
  --checkout-spacing-4xl: 30px;
  --checkout-spacing-5xl: 40px;

  /* Border Radius */
  --checkout-radius-sm: 8px;
  --checkout-radius-md: 12px;
  --checkout-radius-lg: 15px;
  --checkout-radius-xl: 20px;
  --checkout-radius-round: 30px;

  /* Transitions */
  --checkout-transition: all 0.3s ease;
}

/* --------------------------------------------
 * 2. RESET & BASE STYLES
 * -------------------------------------------- */

body.checkout-body {
  background: var(--checkout-bg-body);
  color: var(--checkout-text-muted);
  min-height: 100vh;
  direction: rtl;
}

small {
  font-size: 10px;
  margin: var(--checkout-spacing-xl) 0 var(--checkout-spacing-md);
  display: inline-block;
}

/* --------------------------------------------
 * 3. RTL/LTR SUPPORT - COMPLETE FIX
 * -------------------------------------------- */

/* Base Direction */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] body {
  direction: ltr !important;
}

/* ============================================
   RTL (Persian & Arabic) Styles
   ============================================ */

/* RTL Body */
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] div,
html[dir="rtl"] .card-body,
html[dir="rtl"] .rule-desc,
html[dir="rtl"] .faq-question,
html[dir="rtl"] .faq-answer {
  font-family: var(--font-persian);
  text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: "YekanBakh", "iranYekan", sans-serif;
  font-weight: 700;
  text-align: right;
}

/* RTL Header */
html[dir="rtl"] .logo-part-header {
  text-align: right;
  justify-content: flex-start;
}

html[dir="rtl"] .navbar-part-header {
  text-align: center;
}

html[dir="rtl"] .lang-btn-part-header {
  text-align: left;
  justify-content: flex-end;
}

/* RTL Breadcrumb - Fix Bootstrap */
html[dir="rtl"] .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

html[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
  padding-right: 0.5rem;
}

html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  float: right;
  padding-left: 0.5rem;
  padding-right: 0;
  content: "/";
}

/* RTL Offcanvas */
html[dir="rtl"] .offcanvas-start {
  right: 0;
  left: auto;
  transform: translateX(-100%);
}

html[dir="rtl"] .offcanvas-start.show {
  transform: translateX(0);
}

/* RTL Dropdown */
html[dir="rtl"] .dropdown-menu {
  text-align: right;
  right: 0;
  left: auto;
}

/* RTL Footer */
html[dir="rtl"] .footer-logo-part {
  text-align: right;
  justify-content: flex-start;
}

html[dir="rtl"] .footer-social-media-part {
  text-align: left;
  justify-content: flex-end;
}

/* RTL Icons */
html[dir="rtl"] .fa-angle-left {
  transform: rotate(360deg);
  display: inline-block;
}

/* RTL Spacing Overrides */
html[dir="rtl"] .ms-1,
html[dir="rtl"] .ms-2,
html[dir="rtl"] .ms-3,
html[dir="rtl"] .ms-4,
html[dir="rtl"] .ms-5 {
  margin-left: 0 !important;
}

html[dir="rtl"] .me-1,
html[dir="rtl"] .me-2,
html[dir="rtl"] .me-3,
html[dir="rtl"] .me-4,
html[dir="rtl"] .me-5 {
  margin-right: 0 !important;
}

html[dir="rtl"] .ps-1,
html[dir="rtl"] .ps-2,
html[dir="rtl"] .ps-3,
html[dir="rtl"] .ps-4,
html[dir="rtl"] .ps-5 {
  padding-left: 0 !important;
}

html[dir="rtl"] .pe-1,
html[dir="rtl"] .pe-2,
html[dir="rtl"] .pe-3,
html[dir="rtl"] .pe-4,
html[dir="rtl"] .pe-5 {
  padding-right: 0 !important;
}

/* RTL Button Groups */
html[dir="rtl"] .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
  border-radius: 0 8px 8px 0;
}

html[dir="rtl"] .btn-group > .btn:not(:first-child) {
  border-radius: 8px 0 0 8px;
}

/* RTL Form Elements */
html[dir="rtl"] .form-check {
  padding-right: 1.5em;
  padding-left: 0;
}

html[dir="rtl"] .form-check-input {
  margin-right: -1.5em;
  margin-left: 0;
}

/* RTL Modal */
html[dir="rtl"] .modal-header .btn-close {
  margin: -0.5rem auto -0.5rem -0.5rem;
}

/* ============================================
   LTR (English & German) Styles
   ============================================ */

/* LTR Body */
html[dir="ltr"] body,
html[dir="ltr"] p,
html[dir="ltr"] span,
html[dir="ltr"] div,
html[dir="ltr"] .card-body,
html[dir="ltr"] .rule-desc,
html[dir="ltr"] .faq-question,
html[dir="ltr"] .faq-answer {
  font-family: var(--font-english);
  text-align: left;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6 {
  font-family: "Poppins", "Inter", "Roboto", sans-serif;
  font-weight: 700;
  text-align: left;
  direction: ltr;
}

/* LTR Header */

html[dir="ltr"] .navbar-part-header {
  text-align: center;
}

html[dir="ltr"] .logo-part-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
}

html[dir="ltr"] .lang-btn-part-header {
  text-align: right;
  justify-content: flex-end;
}

/* LTR Breadcrumb - Fix Bootstrap */
html[dir="ltr"] .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

html[dir="ltr"] .breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
  padding-right: 0;
}

html[dir="ltr"] .breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: 0.5rem;
  padding-left: 0;
  content: "/";
}

/* LTR Offcanvas */
html[dir="ltr"] .offcanvas-start {
  left: 0;
  right: auto;
  transform: translateX(100%);
}

html[dir="ltr"] .offcanvas-start.show {
  transform: translateX(0);
}

/* LTR Dropdown */
html[dir="ltr"] .dropdown-menu {
  text-align: left;
  left: 0;
  right: auto;
}

/* LTR Footer */
html[dir="ltr"] .footer-logo-part {
  text-align: left;
  justify-content: flex-start;
}

html[dir="ltr"] .footer-social-media-part {
  text-align: right;
  justify-content: flex-end;
}

/* LTR Icons */
html[dir="ltr"] .fa-angle-left {
  transform: rotate(180deg);
  display: inline-block;
}

/* LTR Spacing Overrides */
html[dir="ltr"] .ms-1,
html[dir="ltr"] .ms-2,
html[dir="ltr"] .ms-3,
html[dir="ltr"] .ms-4,
html[dir="ltr"] .ms-5 {
  margin-left: 0.25rem !important;
}

html[dir="ltr"] .me-1,
html[dir="ltr"] .me-2,
html[dir="ltr"] .me-3,
html[dir="ltr"] .me-4,
html[dir="ltr"] .me-5 {
  margin-right: 0.25rem !important;
}

/* LTR Button Groups */
html[dir="ltr"] .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
  border-radius: 8px 0 0 8px;
}

html[dir="ltr"] .btn-group > .btn:not(:first-child) {
  border-radius: 0 8px 8px 0;
}

/* LTR Form Elements */
html[dir="ltr"] .form-check {
  padding-left: 1.5em;
  padding-right: 0;
}

html[dir="ltr"] .form-check-input {
  margin-left: -1.5em;
  margin-right: 0;
}

/* LTR Modal */
html[dir="ltr"] .modal-header .btn-close {
  margin: -0.5rem -0.5rem -0.5rem auto;
}

/* ============================================
   Common RTL/LTR Fixes for Bootstrap Components
   ============================================ */

/* Fix for dropdown toggles */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  margin-right: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

html[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0;
  margin-right: 0.255em;
}

/* Fix for input groups */
html[dir="rtl"] .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-target),
html[dir="rtl"] .input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n + 3) {
  border-radius: 0 8px 8px 0;
}

html[dir="rtl"] .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  margin-left: 0;
  margin-right: -1px;
  border-radius: 8px 0 0 8px;
}

/* Fix for nav pills */
html[dir="rtl"] .nav-pills .nav-link {
  text-align: right;
}

/* Fix for pagination */
html[dir="rtl"] .pagination {
  padding-right: 0;
}

html[dir="rtl"] .page-item:first-child .page-link {
  border-radius: 0 8px 8px 0;
}

html[dir="rtl"] .page-item:last-child .page-link {
  border-radius: 8px 0 0 8px;
}

html[dir="ltr"] .page-item:first-child .page-link {
  border-radius: 8px 0 0 8px;
}

html[dir="ltr"] .page-item:last-child .page-link {
  border-radius: 0 8px 8px 0;
}

/* Fix for alert close button */
html[dir="rtl"] .alert-dismissible .btn-close {
  right: auto;
  left: 0;
}

/* Fix for list groups */
html[dir="rtl"] .list-group {
  padding-right: 0;
}

/* Fix for carousel */
html[dir="rtl"] .carousel-item-next,
html[dir="rtl"] .carousel-item-prev,
html[dir="rtl"] .carousel-item.active {
  transform: translateX(0);
}

html[dir="rtl"] .carousel-control-next {
  right: auto;
  left: 0;
}

html[dir="rtl"] .carousel-control-prev {
  left: auto;
  right: 0;
}

/* Fix for floating labels */
html[dir="rtl"] .form-floating > label {
  right: 0;
  left: auto;
  transform-origin: 100% 0;
}

.dropdown-item span {
  padding-inline: 5px;
}

/* --------------------------------------------
 * 4. HEADER STYLES
 * -------------------------------------------- */

.checkout-header {
  background: var(--checkout-bg-header);
  border-bottom: 1px solid var(--checkout-border);
  padding: var(--checkout-spacing-xl) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: var(--checkout-spacing-xl);
}

.logo-area {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--checkout-spacing-xl);
}

.logo-area img {
  height: 50px;
  width: auto;
}

.logo-area h1 {
  font-size: 20px;
  margin: 0;
  color: var(--checkout-text-white);
}

.logo-area p {
  font-size: 12px;
  color: var(--checkout-text-dim);
  margin: 0;
}

.btn-back {
  background: var(--checkout-btn-back);
  border: 1px solid var(--checkout-border-light);
  color: var(--checkout-text-white);
  padding: var(--checkout-spacing-sm) var(--checkout-spacing-2xl);
  border-radius: var(--checkout-radius-round);
  text-decoration: none;
  -webkit-transition: var(--checkout-transition);
  -moz-transition: var(--checkout-transition);
  -ms-transition: var(--checkout-transition);
  -o-transition: var(--checkout-transition);
  transition: var(--checkout-transition);
  font-size: 14px;
}

.btn-back:hover {
  background: var(--checkout-btn-back-hover);
  color: var(--checkout-text-white);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* --------------------------------------------
 * 5. MAIN CONTENT
 * -------------------------------------------- */

.checkout-main {
  max-width: 1200px;
  margin: 10rem auto 0;
  padding: var(--checkout-spacing-5xl) var(--checkout-spacing-2xl);
}

.breadcrumb-wrapper {
  margin-bottom: var(--checkout-spacing-4xl);
  font-size: 14px;
}

.breadcrumb-wrapper a {
  color: var(--checkout-text-link);
  text-decoration: none;
}

.breadcrumb-wrapper a:hover {
  text-decoration: underline;
}

.breadcrumb-wrapper .separator-b {
  margin: 0 var(--checkout-spacing-md);
  color: var(--checkout-text-white);
}

.breadcrumb-wrapper .active {
  color: var(--checkout-text-dim);
  display: inline !important;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--checkout-spacing-4xl);
}

/* --------------------------------------------
 * 6. CARDS (COMMON STYLES)
 * -------------------------------------------- */

.card {
  background: var(--checkout-bg-card);
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-xl);
  overflow: hidden;
  margin-bottom: var(--checkout-spacing-3xl);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.card-header {
  background: var(--checkout-primary-bg);
  border-bottom: 1px solid var(--checkout-border);
  padding: var(--checkout-spacing-xl) var(--checkout-spacing-2xl);
}

.card-header h5 {
  margin: 0;
  color: var(--checkout-text-white);
  font-size: 18px;
}

.card-header i {
  color: var(--checkout-primary);
  margin-inline: var(--checkout-spacing-md);
}

.card-body {
  padding: var(--checkout-spacing-2xl);
}

/* --------------------------------------------
 * 7. RULES SECTION
 * -------------------------------------------- */

.rules-list {
  margin-bottom: var(--checkout-spacing-2xl);
}

.rule-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--checkout-spacing-md);
  margin-bottom: 18px;
  color: var(--checkout-text-muted);
  font-size: 14px;
}

.rule-item i {
  font-size: 18px;
  min-width: 22px;
  color: var(--checkout-success);
}

.form-check {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--checkout-spacing-md);
  cursor: pointer;
  padding-top: var(--checkout-spacing-xl);
  border-top: 1px solid var(--checkout-border-light);
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--checkout-primary);
}

.form-check-label {
  color: var(--checkout-text-muted);
  cursor: pointer;
  font-size: 14px;
  margin-inline: var(--checkout-spacing-xs);
}

.form-check {
  padding-right: 0 !important;
}

.form-check-input {
  margin-inline: 0 !important;
}

/* --------------------------------------------
 * 8. FORM STYLES
 * -------------------------------------------- */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--checkout-spacing-2xl);
  margin-bottom: var(--checkout-spacing-2xl);
}

.form-group {
  margin-bottom: var(--checkout-spacing-2xl);
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  color: var(--checkout-text-muted);
  font-weight: 500;
  margin-bottom: var(--checkout-spacing-sm);
  display: block;
  font-size: 14px;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--checkout-border-input);
  color: var(--checkout-text-white) !important;
  padding: var(--checkout-spacing-md) var(--checkout-spacing-xl);
  border-radius: var(--checkout-radius-md);
  width: 100%;
  -webkit-transition: var(--checkout-transition);
  -moz-transition: var(--checkout-transition);
  -ms-transition: var(--checkout-transition);
  -o-transition: var(--checkout-transition);
  transition: var(--checkout-transition);
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--checkout-primary);
  -webkit-box-shadow: var(--checkout-shadow-focus);
  box-shadow: var(--checkout-shadow-focus);
  background: rgba(255, 255, 255, 0.08);
}

.form-control::-webkit-input-placeholder {
  color: var(--checkout-text-dark);
}

.form-control::-moz-placeholder {
  color: var(--checkout-text-dark);
}

.form-control:-ms-input-placeholder {
  color: var(--checkout-text-dark);
}

.form-control::-ms-input-placeholder {
  color: var(--checkout-text-dark);
}

.form-control::placeholder {
  color: var(--checkout-text-dark);
}

.form-control.error {
  border-color: var(--checkout-error);
  -webkit-box-shadow: var(--checkout-shadow-error);
  box-shadow: var(--checkout-shadow-error);
}

small.text-muted {
  display: block;
  margin-top: var(--checkout-spacing-xs);
  font-size: 12px;
  color: var(--checkout-text-dark);
}

/* --------------------------------------------
 * 9. PAYMENT METHODS
 * -------------------------------------------- */

.payment-methods {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--checkout-spacing-xl);
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.payment-method {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--checkout-spacing-md);
  padding: var(--checkout-spacing-md) var(--checkout-spacing-2xl);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--checkout-border-light);
  border-radius: var(--checkout-radius-md);
  cursor: pointer;
  -webkit-transition: var(--checkout-transition);
  -moz-transition: var(--checkout-transition);
  -ms-transition: var(--checkout-transition);
  -o-transition: var(--checkout-transition);
  transition: var(--checkout-transition);
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 110px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.payment-method:hover {
  background: var(--checkout-primary-bg);
  border-color: rgba(108, 92, 231, 0.5);
}

.payment-method.active {
  background: var(--checkout-primary-bg-hover);
  border-color: var(--checkout-primary);
}

.payment-method img {
  width: 24px;
  height: 24px;
  -o-object-fit: contain;
  object-fit: contain;
}

.payment-method span {
  color: var(--checkout-text-white);
  font-weight: 500;
  font-size: 14px;
}

/* --------------------------------------------
 * 10. ACTION BUTTONS
 * -------------------------------------------- */

.action-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--checkout-spacing-xl);
  margin-top: var(--checkout-spacing-md);
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.btn-payment {
  background: var(--checkout-btn-success);
  border: none;
  color: var(--checkout-text-white);
  padding: var(--checkout-spacing-xl) var(--checkout-spacing-4xl);
  border-radius: var(--checkout-radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: var(--checkout-transition);
  -moz-transition: var(--checkout-transition);
  -ms-transition: var(--checkout-transition);
  -o-transition: var(--checkout-transition);
  transition: var(--checkout-transition);
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.btn-payment:hover {
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 5px 20px var(--checkout-btn-success-hover);
  box-shadow: 0 5px 20px var(--checkout-btn-success-hover);
}

.btn-payment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
}

.btn-back-large {
  background: var(--checkout-btn-back);
  border: 1px solid var(--checkout-border-light);
  color: var(--checkout-text-white);
  padding: var(--checkout-spacing-xl) var(--checkout-spacing-3xl);
  border-radius: var(--checkout-radius-md);
  text-decoration: none;
  -webkit-transition: var(--checkout-transition);
  -moz-transition: var(--checkout-transition);
  -ms-transition: var(--checkout-transition);
  -o-transition: var(--checkout-transition);
  transition: var(--checkout-transition);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: var(--checkout-spacing-sm);
  font-size: 14px;
}

.btn-back-large:hover {
  background: var(--checkout-btn-back-hover);
  color: var(--checkout-text-white);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* --------------------------------------------
 * 11. ORDER SUMMARY
 * -------------------------------------------- */

.order-summary-card {
  position: sticky;
  top: 100px;
}

.product-info {
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.product-image {
  margin-bottom: var(--checkout-spacing-xl);
}

.product-image img {
  max-height: 120px;
  border-radius: var(--checkout-radius-lg);
  width: auto;
  max-width: 110px;
}

.product-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--checkout-text-white);
  margin-bottom: var(--checkout-spacing-sm);
}

.product-category {
  font-size: 12px;
  color: var(--checkout-primary);
  margin-bottom: var(--checkout-spacing-xl);
}

.product-price {
  margin-bottom: var(--checkout-spacing-2xl);
}

.final-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--checkout-primary);
}

.currency {
  font-size: 14px;
  color: var(--checkout-text-dim);
  margin-right: 5px;
}

.divider {
  height: 1px;
  background: var(--checkout-border-light);
  margin: var(--checkout-spacing-xl) 0;
}

.total-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 16px;
  color: var(--checkout-text-white);
}

.total-box strong {
  font-size: 22px;
  color: var(--checkout-primary);
}

/* --------------------------------------------
 * 12. TOAST NOTIFICATION
 * -------------------------------------------- */

.checkout-toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  background: var(--checkout-btn-success);
  color: var(--checkout-text-white);
  padding: var(--checkout-spacing-md) var(--checkout-spacing-2xl);
  border-radius: var(--checkout-radius-md);
  -webkit-transform: translateX(-400px);
  -moz-transform: translateX(-400px);
  -ms-transform: translateX(-400px);
  -o-transform: translateX(-400px);
  transform: translateX(-400px);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -moz-transition:
    transform 0.3s ease,
    -moz-transform 0.3s ease;
  -o-transition:
    transform 0.3s ease,
    -o-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition:
    transform 0.3s ease,
    -webkit-transform 0.3s ease,
    -moz-transform 0.3s ease,
    -o-transform 0.3s ease;
  font-weight: 500;
  -webkit-box-shadow: var(--checkout-shadow-sm);
  box-shadow: var(--checkout-shadow-sm);
}

.checkout-toast.show {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}

.checkout-toast.error {
  background: linear-gradient(135deg, var(--checkout-error) 0%, #c82333 100%);
}

/* --------------------------------------------
 * 13. LOADING OVERLAY
 * -------------------------------------------- */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--checkout-bg-overlay);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 10000;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: var(--checkout-spacing-xl);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(108, 92, 231, 0.3);
  border-top-color: var(--checkout-primary);
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  -ms-animation: spin 1s linear infinite;
  -o-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

.loading-overlay p {
  color: var(--checkout-text-white);
  font-size: 14px;
}

/* --------------------------------------------
 * 14. FOOTER
 * -------------------------------------------- */

.checkout-footer {
  background: var(--checkout-bg-header);
  border-top: 1px solid var(--checkout-border);
  padding: var(--checkout-spacing-2xl) 0;
  text-align: center;
  font-size: 12px;
  color: var(--checkout-text-dark);
  margin-top: var(--checkout-spacing-5xl);
}

/* --------------------------------------------
 * 15. RESPONSIVE DESIGN
 * -------------------------------------------- */

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: var(--checkout-spacing-2xl);
  }

  .order-summary-card {
    position: static;
  }

  .order-summary-column {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
  }
}

@media (max-width: 768px) {
  .checkout-main {
    padding: var(--checkout-spacing-2xl) var(--checkout-spacing-xl);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .payment-methods {
    gap: var(--checkout-spacing-md);
  }

  .payment-method {
    padding: var(--checkout-spacing-sm) var(--checkout-spacing-md);
    min-width: 90px;
  }

  .payment-method span {
    font-size: 11px;
  }

  .action-buttons {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .btn-payment,
  .btn-back-large {
    width: 100%;
    text-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .header-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }

  .logo-area {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .final-price {
    font-size: 24px;
  }

  .total-box strong {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .card-header h5 {
    font-size: 15px;
  }

  .rule-item {
    font-size: 12px;
  }

  .form-label {
    font-size: 13px;
  }

  .form-control {
    padding: var(--checkout-spacing-sm) var(--checkout-spacing-md);
    font-size: 13px;
  }

  .payment-method {
    padding: var(--checkout-spacing-sm) var(--checkout-spacing-md);
  }

  .payment-method img {
    width: 20px;
    height: 20px;
  }

  .product-name {
    font-size: 16px;
  }

  .final-price {
    font-size: 22px;
  }
}

/* --------------------------------------------
 * 16. ANIMATIONS
 * -------------------------------------------- */

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-moz-keyframes spin {
  to {
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-ms-keyframes spin {
  to {
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-o-keyframes spin {
  to {
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
