/* Saudi Arabia Colors */
:root {
    --saudi-green: #006C35;
    --saudi-green-dark: #004D26;
    --saudi-green-light: #00A650;
    --saudi-white: #FFFFFF;
    --gold: #C4A052;
    --gold-light: #D4B062;
    --cream: #F5F0E6;
    --dark: #1A1A2E;
    --gray: #6B7280;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--saudi-green-dark) 0%, var(--saudi-green) 50%, var(--saudi-green-light) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Islamic Geometric Pattern Overlay */
.pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.1'/%3E%3Cpath d='M30 10L50 30L30 50L10 30L30 10z' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Floating Geometric Shapes */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    background: linear-gradient(45deg, var(--gold) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    background: linear-gradient(45deg, var(--saudi-white) 0%, transparent 70%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    background: linear-gradient(45deg, var(--gold-light) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation-delay: -10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    top: 20%;
    right: 5%;
    background: linear-gradient(45deg, var(--saudi-white) 0%, transparent 70%);
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-5deg); }
    75% { transform: translate(30px, 10px) rotate(3deg); }
}

/* Container */
.container {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.ornament-top {
    width: 80px;
    height: 40px;
    margin: 0 auto 15px;
    background: var(--gold);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0C60 0 70 10 70 25C70 40 60 50 50 50C40 50 30 40 30 25C30 10 40 0 50 0M20 10C25 10 30 15 30 25C30 35 25 40 20 40C15 40 10 35 10 25C10 15 15 10 20 10M80 10C85 10 90 15 90 25C90 35 85 40 80 40C75 40 70 35 70 25C70 15 75 10 80 10'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0C60 0 70 10 70 25C70 40 60 50 50 50C40 50 30 40 30 25C30 10 40 0 50 0M20 10C25 10 30 15 30 25C30 35 25 40 20 40C15 40 10 35 10 25C10 15 15 10 20 10M80 10C85 10 90 15 90 25C90 35 85 40 80 40C75 40 70 35 70 25C70 15 75 10 80 10'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(196, 160, 82, 0.4);
}

/* Domain Card */
.domain-card {
    background: var(--saudi-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--saudi-green) 0%, var(--gold) 50%, var(--saudi-green) 100%);
}

.card-inner {
    padding: 40px 35px;
}

/* Arabic Border Elements */
.arabic-border-top,
.arabic-border-bottom {
    height: 20px;
    background: linear-gradient(90deg, transparent 0%, var(--saudi-green) 20%, var(--saudi-green) 80%, transparent 100%);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10 T150 10 T200 10' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10 T150 10 T200 10' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    margin: 10px 0;
    opacity: 0.3;
}

/* Domain Display */
.domain-display {
    text-align: center;
    padding: 20px 0;
}

.domain-name {
    font-family: 'Amiri', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 15px 0;
}

.domain-text {
    color: var(--saudi-green);
}

.domain-ext {
    color: var(--gold);
}

/* Status */
.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--saudi-green-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.status-text {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

/* Price Section */
.price-section {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--cream) 0%, #FFF 100%);
    margin: 0 -35px;
    border-top: 1px solid rgba(0, 108, 53, 0.1);
    border-bottom: 1px solid rgba(0, 108, 53, 0.1);
    position: relative;
}

.price-section::before,
.price-section::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--gold);
    opacity: 0.2;
}

.price-section::before {
    top: 15px;
    left: 20px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.price-section::after {
    bottom: 15px;
    right: 20px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
    margin-bottom: 10px;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 1.5rem;
    color: var(--saudi-green);
    font-weight: 600;
    margin-top: 8px;
}

.amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--saudi-green);
    line-height: 1;
}

.usd {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 10px;
}

.price-note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 10px;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

/* Buy Button */
.buy-button {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-dark) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 108, 53, 0.4);
}

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

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 108, 53, 0.5);
}

.buy-button:hover::before {
    left: 100%;
}

.buy-button:active {
    transform: translateY(0);
}

.button-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.buy-button:hover .button-icon svg {
    transform: translateX(5px);
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed rgba(0, 108, 53, 0.2);
}

/* Stripe Badge */
.stripe-badge {
    display: inline-block;
    margin-bottom: 15px;
}

.stripe-badge-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8f9fe 0%, #ffffff 100%);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(99, 91, 255, 0.15);
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.08);
}

.powered-by {
    font-size: 11px;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stripe-logo {
    height: 22px;
    width: auto;
}

/* Card Icons */
.card-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: wrap;
}

img.card-icon {
    height: 28px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.2s ease;
    object-fit: contain;
}

img.card-icon:hover {
    transform: translateY(-2px);
}

/* Secure Text */
.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--saudi-green);
    font-weight: 500;
    margin-top: 10px;
}

.secure-text svg {
    width: 14px;
    height: 14px;
    stroke: var(--saudi-green);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 15px;
}

.footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--gold-light);
}

/* Responsive */
@media (max-width: 520px) {
    .card-inner {
        padding: 30px 20px;
    }

    .domain-name {
        font-size: 3rem;
    }

    .amount {
        font-size: 3rem;
    }

    .features {
        gap: 20px;
    }

    .price-section {
        margin: 0 -20px;
    }
}

/* Loading State */
.buy-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.buy-button.loading .button-text {
    opacity: 0;
}

.buy-button.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

/* Modal */
.modal {
    background: var(--saudi-white);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--saudi-green) 0%, var(--gold) 50%, var(--saudi-green) 100%);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--gray);
}

/* Modal Header */
.modal-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.modal-title {
    font-family: 'Amiri', serif;
    font-size: 1.75rem;
    color: var(--saudi-green);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    padding: 0 30px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-label svg {
    width: 18px;
    height: 18px;
    color: var(--saudi-green);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: var(--saudi-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Phone Input */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 16px;
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

.phone-input {
    padding-left: 32px;
}

/* Form Hint */
.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #25D366;
}

.whatsapp-icon {
    width: 16px;
    height: 16px;
}

/* Form Info */
.form-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--cream) 0%, #FFF 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 108, 53, 0.1);
}

.form-info svg {
    width: 18px;
    height: 18px;
    color: var(--saudi-green);
    flex-shrink: 0;
    margin-top: 1px;
}

.form-info span {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

/* Form Submit Button */
.form-submit {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 108, 53, 0.35);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 108, 53, 0.45);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit .button-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.form-submit:hover .button-icon svg {
    transform: translateX(4px);
}

.form-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.form-submit.loading .button-text,
.form-submit.loading .button-icon {
    opacity: 0;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Modal Footer */
.modal-footer {
    padding: 15px 30px 25px;
    text-align: center;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray);
}

.secure-badge svg {
    width: 14px;
    height: 14px;
}

/* Form Validation Styles */
.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modal Responsive */
@media (max-width: 520px) {
    .modal {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 35px 20px 15px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 0 20px 25px;
    }

    .modal-footer {
        padding: 15px 20px 20px;
    }
}
