/* Root Variables */
:root {
    --primary-bg: #0f0f0f;
    --secondary-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --accent-color: #4CAF50;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    background: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* Navigation */
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-text {
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 60px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gift Cards Grid */
.gift-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 1200px) {
    .gift-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gift-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Gift Card Styles */
.gift-card {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 200px;
}

.gift-card:hover {
    transform: translateY(-5px);
}

.card-inner {
    background: linear-gradient(135deg, var(--brand-color, #4CAF50) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.gift-card:hover .card-inner::before {
    transform: translateX(100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-brand {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.card-amount {
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
}

.card-body {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.card-name {
    font-size: 1rem;
    font-weight: 600;
}

.card-footer {
    text-align: center;
}

.digital-code-label {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Card Selection Page */
.selected-card-display {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.preview-card {
    background: linear-gradient(135deg, var(--brand-color, #4CAF50) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card-inner {
    width: 100%;
}

.preview-brand {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.preview-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
}

.feature-item {
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Amount Selection */
.amount-selection {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.amount-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amount-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.amount-card.loading {
    background: var(--accent-color);
    transform: scale(0.95);
}

.amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.amount-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.popular-badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Trust Section */
.trust-section {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.trust-item {
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--accent-color);
}

/* Benefits Section */
.benefits-section {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

/* Generation Page */
.generation-container {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* Progress Circle */
.progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color) var(--progress, 0deg), var(--card-bg) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.progress-inner {
    width: 120px;
    height: 120px;
    background: var(--secondary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.progress-bar-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    background: var(--accent-color);
}

/* Generated Card */
.generated-card-preview {
    margin: 30px 0;
}

.generated-card {
    background: linear-gradient(135deg, var(--brand-color, #4CAF50) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.generated-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.generated-card-body {
    text-align: center;
    margin-bottom: 20px;
}

.generated-card-body .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.code-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.code-value {
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.generated-card-footer {
    text-align: center;
}

.security-features {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Success Actions */
.success-message {
    margin-bottom: 30px;
}

.action-buttons {
    margin-bottom: 20px;
}

.bonus-offer {
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--secondary-bg) !important;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .selected-card-display,
    .amount-selection,
    .generation-container {
        padding: 20px;
    }
    
    .preview-card {
        height: 150px;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

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

.amount-card:hover {
    animation: pulse 2s infinite;
}

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

.generated-card-preview,
.success-actions {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    100% {
        left: 100%;
    }
}