html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
@media(max-width: 768px) {
    .imagediv {
        margin-left: -27px !important;
    }
}

@media(min-width: 768px) {
    .containerdiv {
        margin-left: -24px !important;
    }
}

/* ============================================
   APP DOWNLOAD SECTION (div-app)
   - Matching Footer Background Style with Particles
   ============================================ */
.div-app {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    position: relative;
    overflow: hidden;
}

/* Pattern Overlay - Same as Footer */
.div-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Top Glow Line - Same as Footer */
.div-app::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* ============================================
   ANIMATED PARTICLES FOR div-app
   ============================================ */
.div-app .footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.div-app .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Static floating particles at different positions */
.div-app .particle:nth-child(1) { 
    left: 5%; top: 20%; 
    width: 8px; height: 8px; 
    animation: floatMove 8s ease-in-out infinite;
}
.div-app .particle:nth-child(2) { 
    left: 15%; top: 60%; 
    width: 12px; height: 12px; 
    animation: floatMove 10s ease-in-out infinite;
    animation-delay: -2s;
}
.div-app .particle:nth-child(3) { 
    left: 25%; top: 40%; 
    width: 6px; height: 6px; 
    animation: floatMove 7s ease-in-out infinite;
    animation-delay: -4s;
}
.div-app .particle:nth-child(4) { 
    left: 40%; top: 70%; 
    width: 10px; height: 10px; 
    animation: floatMove 9s ease-in-out infinite;
    animation-delay: -1s;
}
.div-app .particle:nth-child(5) { 
    left: 55%; top: 30%; 
    width: 14px; height: 14px; 
    animation: floatMove 11s ease-in-out infinite;
    animation-delay: -3s;
}
.div-app .particle:nth-child(6) { 
    left: 65%; top: 80%; 
    width: 7px; height: 7px; 
    animation: floatMove 8s ease-in-out infinite;
    animation-delay: -5s;
}
.div-app .particle:nth-child(7) { 
    left: 75%; top: 50%; 
    width: 9px; height: 9px; 
    animation: floatMove 10s ease-in-out infinite;
    animation-delay: -2s;
}
.div-app .particle:nth-child(8) { 
    left: 85%; top: 25%; 
    width: 11px; height: 11px; 
    animation: floatMove 9s ease-in-out infinite;
    animation-delay: -6s;
}
.div-app .particle:nth-child(9) { 
    left: 92%; top: 65%; 
    width: 5px; height: 5px; 
    animation: floatMove 7s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes floatMove {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.25;
    }
    75% {
        transform: translateY(-25px) translateX(5px);
        opacity: 0.3;
    }
}

/* Rising particles - Straight up motion */
.div-app .particle-rise {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: riseUp linear infinite;
}

.div-app .particle-rise:nth-child(10) {
    left: 5%;
    width: 10px;
    height: 10px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.div-app .particle-rise:nth-child(11) {
    left: 15%;
    width: 6px;
    height: 6px;
    animation-duration: 12s;
    animation-delay: -3s;
}

.div-app .particle-rise:nth-child(12) {
    left: 28%;
    width: 12px;
    height: 12px;
    animation-duration: 10s;
    animation-delay: -6s;
}

.div-app .particle-rise:nth-child(13) {
    left: 42%;
    width: 8px;
    height: 8px;
    animation-duration: 9s;
    animation-delay: -2s;
}

.div-app .particle-rise:nth-child(14) {
    left: 55%;
    width: 14px;
    height: 14px;
    animation-duration: 11s;
    animation-delay: -5s;
}

.div-app .particle-rise:nth-child(15) {
    left: 68%;
    width: 7px;
    height: 7px;
    animation-duration: 13s;
    animation-delay: -1s;
}

.div-app .particle-rise:nth-child(16) {
    left: 80%;
    width: 10px;
    height: 10px;
    animation-duration: 8s;
    animation-delay: -4s;
}

.div-app .particle-rise:nth-child(17) {
    left: 92%;
    width: 9px;
    height: 9px;
    animation-duration: 10s;
    animation-delay: -7s;
}

@keyframes riseUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-500px);
        opacity: 0;
    }
}

/* Ensure content is above background */
.div-app .container {
    position: relative;
    z-index: 1;
}

/* Text styling for better visibility */
.div-app h1,
.div-app .text-white {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* App download buttons styling */
.div-app .btn-app {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.div-app .btn-app:hover {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .div-app {
        padding: 40px 0 !important;
    }
    
    .div-app .container {
        padding-bottom: 30px !important;
    }
}

/* ============================================
   REFERRAL PAGE STYLES (refer/Index)
   - Shared styles for referral page
   - Improved design without image
   ============================================ */
.refer-page-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.refer-page-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: referBackgroundMove 20s linear infinite;
    pointer-events: none;
}

@keyframes referBackgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.refer-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px 40px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: referFadeIn 0.8s ease-out;
}

@keyframes referFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.refer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

/* App Icon/Logo Placeholder */
.refer-app-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    margin-bottom: 10px;
    animation: referIconPulse 2s ease-in-out infinite;
}

@keyframes referIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }
}

.refer-app-icon i {
    font-size: 50px;
    color: white;
}

/* معلومات التطبيق */
.refer-app-info {
    text-align: center;
    width: 100%;
}

.refer-app-name {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.refer-app-description {
    font-size: 18px;
    color: #5a6c7d;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

/* Code Display Section */
.refer-code-section {
    width: 100%;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #667eea;
    position: relative;
}

.refer-code-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refer-code-display {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    word-break: break-all;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.refer-code-display::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #28a745;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.refer-code-section.copied .refer-code-display::after {
    opacity: 1;
}

/* زر نسخ الرابط (يعمل على Safari و iOS عند النقر) */
.refer-copy-link-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.refer-copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.refer-copy-link-btn:hover,
.refer-copy-link-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    outline: none;
}

.refer-copy-link-btn.copy-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    background-color: #28a745 !important;
    animation: none !important;
}

.refer-copy-feedback {
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
}

.refer-tap-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* مميزات التطبيق */
.refer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
    width: 100%;
}

.refer-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 18px 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.refer-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.refer-feature-item:hover::before {
    left: 100%;
}

.refer-feature-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.refer-feature-item i {
    font-size: 24px;
    color: #667eea;
    min-width: 28px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.refer-feature-item:hover i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.refer-feature-item span {
    font-size: 16px;
    color: #2c3e50;
    text-align: right;
    font-weight: 500;
    flex: 1;
}

.refer-page-body[dir="ltr"] .refer-feature-item {
    text-align: left;
}

.refer-page-body[dir="rtl"] .refer-feature-item {
    text-align: right;
}

/* رسالة التوجيه */
.refer-redirect-message {
    margin-top: 30px;
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
    width: 100%;
}

.refer-message {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #5a6c7d;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.refer-message i {
    color: #667eea;
    animation: referMessagePulse 1.5s ease-in-out infinite;
}

@keyframes referMessagePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.refer-spinner {
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: referSpin 1s linear infinite;
    margin: 0 auto;
}

@keyframes referSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tracking Info Badge */
.refer-tracking-info {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    margin-top: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Responsive adjustments for referral page */
@media (max-width: 768px) {
    .refer-container {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .refer-app-name {
        font-size: 32px;
    }
    
    .refer-app-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .refer-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 25px 0;
    }
    
    .refer-feature-item {
        padding: 15px 18px;
    }
    
    .refer-feature-item span {
        font-size: 15px;
    }
    
    .refer-feature-item i {
        font-size: 20px;
        padding: 8px;
    }
    
    .refer-code-section {
        padding: 20px;
    }
    
    .refer-code-display {
        font-size: 20px;
        padding: 12px;
    }
    
    .refer-message {
        font-size: 16px;
    }
    
    .refer-app-icon {
        width: 80px;
        height: 80px;
    }
    
    .refer-app-icon i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .refer-container {
        padding: 30px 20px;
    }
    
    .refer-app-name {
        font-size: 28px;
    }
    
    .refer-code-display {
        font-size: 18px;
    }
}

/* ============================================
   INVALID CODE ERROR PAGE STYLES (refer/InvalidCode)
   - Styles for invalid referral/tracking code error page
   ============================================ */
.invalid-code-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.invalid-code-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invalid-code-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.invalid-code-icon i {
    font-size: 60px;
    color: white;
}

.invalid-code-heading {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.invalid-code-message {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.invalid-code-display {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    word-break: break-all;
}

.invalid-code-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 500;
}

.invalid-code-suggestion {
    font-size: 16px;
    color: #6c757d;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #667eea;
}

.invalid-code-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.invalid-code-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.invalid-code-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.invalid-code-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.invalid-code-btn-secondary {
    background: #6c757d;
    color: white;
}

.invalid-code-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 117, 125, 0.3);
    color: white;
}

.invalid-code-logo {
    margin-bottom: 20px;
}

.invalid-code-logo h3 {
    color: #667eea;
    font-weight: bold;
    margin: 0;
}

/* RTL Support */
[dir="rtl"] .invalid-code-suggestion {
    border-right: none;
    border-left: 4px solid #667eea;
}

/* Responsive adjustments for invalid code page */
@media (max-width: 576px) {
    .invalid-code-container {
        padding: 30px 20px;
    }

    .invalid-code-heading {
        font-size: 24px;
    }

    .invalid-code-message {
        font-size: 16px;
    }

    .invalid-code-actions {
        flex-direction: column;
    }

    .invalid-code-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   BUSINESS REGISTRATION PAGE STYLES (RegisterNew)
   - Shared styles for business registration
   ============================================ */
.account-type-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 0px solid #e8e8e8;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    text-decoration: none;
    display: block;
    color: inherit;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.account-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.account-type-card:hover::before {
    left: 100%;
}

.account-type-card .icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.account-type-card .icon-wrapper i {
    font-size: 3.5rem;
    transition: all 0.4s ease;
}

.account-type-card.employee-loyalty .icon-wrapper {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.account-type-card.employee-loyalty .icon-wrapper i {
    color: white;
}

.account-type-card.customer-loyalty .icon-wrapper {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.account-type-card.customer-loyalty .icon-wrapper i {
    color: white;
}

.account-type-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.account-type-card p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
}

.account-type-card.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
}

.account-type-card.disabled .icon-wrapper {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
}

.account-type-card.disabled .icon-wrapper i {
    color: #adb5bd !important;
}

.account-type-card.disabled h4,
.account-type-card.disabled p {
    color: #adb5bd;
}

.account-type-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.account-type-link:hover {
    text-decoration: none;
    color: inherit;
}

.account-type-card:hover {
    border-color: var(--bs-halala3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.account-type-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.account-type-card:hover .icon-wrapper i {
    transform: scale(1.1);
}

.account-type-card:hover h4 {
    color: var(--bs-halala3);
}

.account-type-card.selected {
    border-color: var(--bs-halala3);
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.account-type-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--bs-halala3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.coming-soon-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.package-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.package-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.package-card.selected {
    border: 2px solid var(--bs-halala3);
    background-color: #f0f8ff;
}

.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CUSTOMER DISCOUNT PAGE STYLES (CustomerDiscount/Index)
   - Styles for customer discount details page
   - Redesigned to match new visual design
   ============================================ */
body.customer-discount-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.customer-discount-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #d4c6eb 0%, #c8b8e2 30%, #bca9d9 60%, #b09acf 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    direction: rtl;
}

/* Background dots pattern */
body.customer-discount-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

body.customer-discount-page .discount-container {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3D Percentage Icon - Tilted Disc */
body.customer-discount-page .discount-3d-icon {
    width: 120px;
    height: 100px;
    margin-bottom: -35px;
    position: relative;
    z-index: 2;
}

body.customer-discount-page .discount-3d-icon svg {
    width: 100%;
    height: 100%;
}

/* Main white card */
body.customer-discount-page .discount-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 45px 25px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    position: relative;
}

/* Company Header */
body.customer-discount-page .company-header {
    text-align: center;
    margin-bottom: 20px;
}

body.customer-discount-page .company-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-direction: row-reverse; /* Logo on left, text on right in RTL */
}

body.customer-discount-page .company-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

body.customer-discount-page .company-name-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

body.customer-discount-page .company-name-block .arabic-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

body.customer-discount-page .company-name-block .english-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.customer-discount-page .branch-name {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

/* Discount Details Grid - 2x2 layout with labels on TOP */
body.customer-discount-page .discount-details-grid {
    margin-bottom: 20px;
    padding: 0 5px;
}

body.customer-discount-page .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

body.customer-discount-page .detail-row:last-child {
    margin-bottom: 0;
}

body.customer-discount-page .detail-item {
    text-align: center;
    flex: 1;
}

body.customer-discount-page .detail-label {
    font-size: 10px;
    color: #9b8bb8;
    font-weight: 500;
    margin-bottom: 3px;
}

body.customer-discount-page .detail-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

/* Discount Code Section */
body.customer-discount-page .discount-code-section {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e8e0f5;
}

body.customer-discount-page .discount-code-label {
    font-size: 11px;
    color: #9b8bb8;
    margin-bottom: 8px;
    font-weight: 500;
}

body.customer-discount-page .discount-code-box {
    background: #ffffff;
    border: 1.5px solid #d8cce8;
    border-radius: 6px;
    padding: 8px 25px;
    display: inline-block;
    min-width: 160px;
}

body.customer-discount-page .discount-code-value {
    font-size: 16px;
    font-weight: 600;
    color: #7a6a99;
    letter-spacing: 1px;
}

/* Confirmation Message */
body.customer-discount-page .confirmation-message {
    text-align: center;
    margin: 20px 0;
}

body.customer-discount-page .confirmation-text {
    font-size: 14px;
    color: #6b5b8a;
    font-weight: 600;
}

/* App Store Buttons Section - App Store right, Google Play left in RTL */
body.customer-discount-page .app-store-section {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-direction: row-reverse; /* Reverse for RTL: App Store first (right), Google Play second (left) */
}

body.customer-discount-page .store-badge {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

body.customer-discount-page .store-badge:hover {
    transform: scale(1.05);
}

body.customer-discount-page .store-badge.app-store img {
    height: 36px;
    width: auto;
}

body.customer-discount-page .store-badge.google-play img {
    height: 50px;
    margin-top: -7px;
}

/* Halalah Footer Logo */
body.customer-discount-page .halalah-footer {
    text-align: center;
    margin-top: 5px;
}

body.customer-discount-page .halalah-footer-logo {
    width: 45px;
    height: auto;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 480px) {
    body.customer-discount-page {
        padding: 25px 15px;
    }

    body.customer-discount-page .discount-card {
        padding: 40px 18px 22px;
        border-radius: 14px;
    }

    body.customer-discount-page .discount-3d-icon {
        width: 100px;
        height: 85px;
        margin-bottom: -30px;
    }

    body.customer-discount-page .branch-name {
        font-size: 14px;
    }

    body.customer-discount-page .detail-value {
        font-size: 12px;
    }

    body.customer-discount-page .detail-label {
        font-size: 9px;
    }

    body.customer-discount-page .discount-code-value {
        font-size: 14px;
    }

    body.customer-discount-page .app-store-section {
        gap: 8px;
    }

    body.customer-discount-page .store-badge.app-store img {
        height: 32px;
    }

    body.customer-discount-page .store-badge.google-play img {
        height: 45px;
    }
}
