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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        -webkit-linear-gradient(45deg, rgba(50, 50, 50, 0.15) 25%, transparent 25%),
        -webkit-linear-gradient(-45deg, rgba(50, 50, 50, 0.15) 25%, transparent 25%),
        -webkit-linear-gradient(45deg, transparent 75%, rgba(50, 50, 50, 0.15) 75%),
        -webkit-linear-gradient(-45deg, transparent 75%, rgba(50, 50, 50, 0.15) 75%);
    background-image: 
        linear-gradient(45deg, rgba(50, 50, 50, 0.15) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(50, 50, 50, 0.15) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(50, 50, 50, 0.15) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(50, 50, 50, 0.15) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    -webkit-animation: geometricMove 20s linear infinite;
    animation: geometricMove 20s linear infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Fallback for older iOS versions that don't support conic-gradient */
    background: radial-gradient(circle at 50% 50%, 
        rgba(60, 60, 60, 0.2) 0%, 
        rgba(40, 40, 40, 0.15) 25%, 
        transparent 50%);
    /* Modern browsers with conic-gradient support */
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg,
            rgba(60, 60, 60, 0.2) 60deg,
            transparent 120deg,
            rgba(40, 40, 40, 0.2) 180deg,
            transparent 240deg,
            rgba(50, 50, 50, 0.2) 300deg,
            transparent 360deg);
    -webkit-animation: geometricRotate 30s linear infinite;
    animation: geometricRotate 30s linear infinite;
    z-index: -1;
}

@-webkit-keyframes geometricMove {
    0% {
        background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    }
    100% {
        background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px;
    }
}

@keyframes geometricMove {
    0% {
        background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    }
    100% {
        background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px;
    }
}

@-webkit-keyframes geometricRotate {
    0% {
        -webkit-transform: rotate(0deg) scale(1);
        transform: rotate(0deg) scale(1);
    }
    50% {
        -webkit-transform: rotate(180deg) scale(1.1);
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        -webkit-transform: rotate(360deg) scale(1);
        transform: rotate(360deg) scale(1);
    }
}

@keyframes geometricRotate {
    0% {
        -webkit-transform: rotate(0deg) scale(1);
        transform: rotate(0deg) scale(1);
    }
    50% {
        -webkit-transform: rotate(180deg) scale(1.1);
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        -webkit-transform: rotate(360deg) scale(1);
        transform: rotate(360deg) scale(1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 1.5em;
}

.stat-text {
    font-size: 1em;
    color: white;
}

.live-activity-section {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.live-activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.live-indicator {
    background: #ff3333;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.activity-title {
    color: white;
    font-size: 1em;
}

.activity-feed {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
}

.activity-feed::-webkit-scrollbar {
    width: 8px;
}

.activity-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    color: white;
    font-size: 0.9em;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-icon {
    font-size: 1.2em;
}

.activity-user {
    font-weight: bold;
    color: #FFD700;
}

.activity-card {
    color: #90EE90;
    font-weight: bold;
}

.activity-time {
    margin-left: auto;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

.gift-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.gift-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gift-card.featured {
    border: 3px solid #FFD700;
    background: linear-gradient(135deg, #fff 0%, #fffacd 100%);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: #FFD700;
    color: #000;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: white;
    padding: 5px;
    display: block;
    object-fit: contain;
}

/* Gift Card Visual Mockup */
.gift-card-visual {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.gift-card-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    z-index: 1;
}

.gift-card-visual::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255,215,0,0.4) 0%, rgba(255,165,0,0.4) 100%);
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
}

.gift-card-visual .card-brand-logo {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 70px;
    height: 70px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 8px;
    object-fit: contain;
}

.gift-card-visual .card-amount-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5em;
    font-weight: bold;
    color: white;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        0 0 20px rgba(255,255,255,0.2);
    z-index: 3;
    letter-spacing: 2px;
}

/* Brand-specific card designs */
.gift-card[data-type="CashApp"] .gift-card-visual {
    background: linear-gradient(135deg, #00D632 0%, #00B528 100%);
}

.gift-card[data-type="PayPal"] .gift-card-visual {
    background: linear-gradient(135deg, #003087 0%, #0070ba 100%);
}

.gift-card[data-type="Venmo"] .gift-card-visual {
    background: linear-gradient(135deg, #3D95CE 0%, #2D7FB8 100%);
}

.gift-card[data-type="Chime"] .gift-card-visual {
    background: linear-gradient(135deg, #21C064 0%, #1BA854 100%);
}

.gift-card[data-type="Visa"] .gift-card-visual {
    background: linear-gradient(135deg, #1A1F71 0%, #0D134A 100%);
}

.gift-card[data-type="Walmart"] .gift-card-visual {
    background: linear-gradient(135deg, #0071CE 0%, #004F9F 100%);
}

.gift-card[data-type="Amazon"] .gift-card-visual {
    background: linear-gradient(135deg, #FF9900 0%, #FF7700 100%);
}

.gift-card[data-type="Google Pay"] .gift-card-visual {
    background: linear-gradient(135deg, #4285F4 0%, #357AE8 100%);
}

.gift-card[data-type="Apple Pay"] .gift-card-visual {
    background: linear-gradient(135deg, #000000 0%, #1C1C1C 100%);
}

.gift-card[data-type="Steam"] .gift-card-visual {
    background: linear-gradient(135deg, #1B2838 0%, #0E1620 100%);
}

/* Add decorative pattern overlay */
.gift-card-visual .pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 2;
}

/* Money/Cash Pattern Background */
.money-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    z-index: 1;
}

/* Money pattern with dollar sign motif */
.money-pattern::after {
    content: '$$$';
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-size: 3em;
    font-weight: bold;
    color: rgba(255,255,255,0.05);
    letter-spacing: 10px;
    z-index: 1;
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 40%,
        rgba(255,255,255,0.3) 45%,
        rgba(255,255,255,0.1) 50%,
        transparent 55%,
        transparent 100%
    );
    transform: rotate(20deg);
    animation: shine 6s infinite;
    z-index: 4;
}

@keyframes shine {
    0% {
        transform: translateX(-200%) rotate(20deg);
    }
    50%, 100% {
        transform: translateX(200%) rotate(20deg);
    }
}

/* Card Chip Element */
.card-chip {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, rgba(255,215,0,0.6) 0%, rgba(255,165,0,0.5) 100%);
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    z-index: 5;
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0,0,0,0.2) 0px,
        rgba(0,0,0,0.2) 2px,
        transparent 2px,
        transparent 4px
    );
    border-radius: 3px;
}

/* Logo Glow Effect */
.logo-glow {
    filter: drop-shadow(0 0 8px rgba(147, 112, 219, 0.6)) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(147, 112, 219, 0.6)) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(147, 112, 219, 0.9)) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    }
}

/* Real-Time Logo Container */
.logo-container {
    position: relative;
    display: inline-block;
}

/* Live Badge for Real-Time Indicator */
.live-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: white;
    font-size: 0.5em;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    animation: livePulse 1.5s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.3);
    }
}

/* Enhanced Real-Time Logo */
.logo-realtime {
    position: relative;
    border: 3px solid rgba(147, 112, 219, 0.5);
    background: white;
    padding: 8px;
    transition: all 0.3s ease;
    display: block;
}

.logo-realtime::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(147, 112, 219, 0.6),
        rgba(102, 126, 234, 0.6),
        rgba(147, 112, 219, 0.6));
    border-radius: 10px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-realtime:hover::before {
    opacity: 1;
}

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

.logo-realtime::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, 
        transparent 0%, 
        rgba(255,255,255,0.4) 45%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0.4) 55%, 
        transparent 100%);
    transform: translateX(-100%);
    animation: logoShine 4s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes logoShine {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Photo-Realistic Logo Enhancement */
.card-logo {
    filter: contrast(1.1) brightness(1.05);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.card-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: contrast(1.2) brightness(1.1) saturate(1.2);
}

/* Ensure SVG logos render properly */
img[src$=".svg"] {
    display: block;
    width: 100%;
    height: 100%;
}

.card-header .logo-container img {
    width: 60px;
    height: 60px;
}

.gift-card-visual img.card-brand-logo {
    width: 70px;
    height: 70px;
}

/* Promotional Badges */
.promo-badge {
    position: absolute;
    top: 15px;
    left: -5px;
    padding: 6px 15px;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 0 8px 8px 0;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    color: white;
    letter-spacing: 0.5px;
    animation: badgePulse 2s infinite;
}

.promo-badge.hot-deal {
    background: linear-gradient(135deg, #FF4500 0%, #FF6347 100%);
}

.promo-badge.limited-time {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }
}

.card-header h3 {
    font-size: 1.5em;
    color: #333;
}

.card-rating {
    text-align: center;
    margin: 10px 0;
}

.card-rating .stars {
    font-size: 1em;
    display: block;
    margin-bottom: 5px;
}

.card-rating .rating-count {
    font-size: 0.85em;
    color: #666;
}

.card-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
    text-align: center;
}

.timer {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: #FF6B35;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.timer .countdown {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
}

.gift-card.featured .card-amount {
    color: #FF6B35;
}

.claim-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.claim-btn:active {
    transform: scale(0.98);
}

.gift-card.featured .claim-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.total-value {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.total-value strong {
    color: #667eea;
    font-size: 1.3em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    animation: slideIn 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 2em;
}

.modal-content p {
    font-size: 1.2em;
    margin: 20px 0;
    color: #333;
}

.modal-btn-link {
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.modal-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
}

.modal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modal-btn:active {
    transform: scale(0.98);
}

.redeem-code-container {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.redeem-code-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.redeem-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 15px;
    background: white;
    border: 2px dashed #667eea;
    border-radius: 8px;
    margin: 10px 0;
    word-break: break-all;
}

.code-visible {
    color: #667eea;
}

.code-hidden {
    color: #999;
    opacity: 0.7;
}

.redeem-code-note {
    font-size: 0.85em;
    color: #FF6B35;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .gift-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gift-card {
        padding: 20px;
    }

    .card-amount {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .gift-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        gap: 15px;
    }
    
    .stat-item {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

.testimonials-section {
    margin-top: 50px;
    text-align: center;
}

.testimonials-section h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.write-review-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.write-review-btn:active {
    transform: translateY(-1px);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.testimonial-rating {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.testimonial-verified {
    font-size: 0.85em;
    color: #4CAF50;
    font-weight: bold;
}

@media (max-width: 768px) {
    .testimonials-section h2 {
        font-size: 1.8em;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 25px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.5em;
    }
}

/* Desktop-specific modal improvements */
@media (min-width: 769px) {
    .modal-content {
        margin: 8% auto;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Review Form Modal Styles */
.review-modal-content {
    max-width: 600px;
    padding: 40px;
    position: relative;
    z-index: 1001;
}

.review-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 2.5em;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #FFD700;
}

/* Submit Button */
.submit-review-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

/* Desktop specific improvements for submit button */
@media (min-width: 769px) {
    .submit-review-btn {
        font-size: 1.15em;
        padding: 16px 20px;
        position: relative;
        z-index: 999999 !important;
        pointer-events: auto !important;
        isolation: isolate;
    }
    
    .submit-review-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
        z-index: 999999 !important;
    }
    
    .submit-review-btn:focus {
        outline: 3px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Ensure form doesn't block button */
    #review-form {
        position: relative;
        z-index: auto;
    }
    
    .review-modal-content {
        pointer-events: auto;
        isolation: isolate;
    }
}

/* Mobile responsiveness for review form */
@media (max-width: 768px) {
    .review-modal-content {
        padding: 25px;
        margin: 10% auto;
    }
    
    .star-rating {
        font-size: 2em;
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
    font-size: 0.95em;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 25px 15px;
        margin-top: 40px;
    }
    
    .footer-content p {
        font-size: 0.85em;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 5px 8px;
    }
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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