:root {
    --snap-yellow: #FFFC00;
    --snap-black: #000000;
    --snap-white: #FFFFFF;
    --snap-gray: #F2F2F2;
    --snap-dark-gray: #666666;
    --snap-blue: #0096FF;
    --text-color: #16191C;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-color);
}

.web-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--snap-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    color: var(--snap-yellow);
    text-shadow: 0 0 2px black; /* Outline effect */
    font-size: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
}

.login-btn {
    padding: 10px 24px;
    background-color: var(--snap-black);
    color: var(--snap-white);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login-btn:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(180deg, #FFFC00 0%, #fff 100%);
}

.ghost-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--snap-black);
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    color: #333;
}

/* Pricing Container */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.subscription-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.option-card {
    background-color: var(--snap-white);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px 30px;
    width: 320px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--snap-yellow);
}

.option-card.selected {
    border: 2px solid var(--snap-black);
    background-color: #fff;
}

.option-card.popular {
    border: 2px solid var(--snap-yellow);
    transform: scale(1.05);
    z-index: 1;
}

.option-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--snap-black);
    color: var(--snap-yellow);
    font-size: 14px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.duration {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.price {
    font-size: 48px;
    font-weight: 900;
    color: var(--snap-black);
    text-align: center;
    margin-bottom: 5px;
}

.price .period {
    font-size: 18px;
    font-weight: 600;
    color: var(--snap-dark-gray);
}

.description {
    font-size: 14px;
    color: var(--snap-dark-gray);
    text-align: center;
    margin-bottom: 10px;
}

.savings {
    background-color: #e6ffe6;
    color: #008000;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 10px;
    align-self: center;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin: 20px 0 30px;
    flex-grow: 1;
}

.card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.card-features li i {
    color: var(--snap-black);
    margin-right: 10px;
    font-size: 12px;
}

.subscribe-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--snap-yellow);
    border: 2px solid transparent;
    border-radius: 30px;
    font-weight: 800;
    font-size: 18px;
    color: var(--snap-black);
    cursor: pointer;
    transition: all 0.2s;
}

.subscribe-btn:hover {
    background-color: #e6e300;
    transform: scale(1.02);
}

/* Features Section */
.features-section {
    background-color: #fafafa;
    padding: 80px 20px;
    text-align: center;
}

.features-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--snap-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--snap-black);
    box-shadow: 0 10px 20px rgba(255, 252, 0, 0.3);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--snap-dark-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--snap-black);
    color: var(--snap-white);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--snap-white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }
    
    .option-card.popular {
        transform: none;
    }
    
    .option-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links a {
        display: none;
    }
    
    .nav-links .login-btn {
        display: block;
    }
}

/* Payment Modal Styles */
.payment-content {
    max-width: 450px;
    text-align: left;
}

.payment-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.order-summary {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.mini-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mini-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--snap-yellow);
}

.mini-profile-details h4 {
    margin: 0;
    font-size: 16px;
}

.mini-profile-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.price-divider {
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
}

.total-price {
    color: var(--snap-black);
}

.card-input-container {
    position: relative;
}

.card-input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 24px;
    width: 32px; /* Fixed width for consistent spacing */
    text-align: center;
    transition: all 0.3s ease;
    pointer-events: none; /* Ensure clicks pass through to input */
    z-index: 5;
}

.card-input-container input {
    padding-left: 60px !important; /* Force padding to prevent overlap */
    width: 100%;
    font-family: monospace; /* Better for numbers */
    letter-spacing: 1.5px;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.half {
    flex: 1;
}

.pay-btn {
    margin-top: 20px;
    font-size: 18px;
}

/* Success Modal Styles */
.success-animation {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.email-note {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--snap-dark-gray);
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: var(--snap-yellow);
    background-color: #fff;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--snap-yellow);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    color: var(--snap-black);
    cursor: pointer;
    margin-top: 10px;
}

.modal-btn.cancel {
    background-color: #f0f0f0;
    color: #333;
    margin-top: 10px;
}

.profile-info {
    margin: 20px 0;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--snap-yellow);
    margin-bottom: 15px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-username {
    color: var(--snap-dark-gray);
    font-size: 16px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--snap-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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