:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --dark: #2c3e50;
    --light: #f7f7f7;
    --white: #ffffff;
    --gold: #ffd700;
    --success: #27ae60;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFED4E 50%, #FFD700 100%);
}

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

body {
    font-family: 'Nunito','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    position: relative;
}

body.has-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
    color: var(--white);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--secondary);
}

.banner {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 40px;
}

.search-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn-search {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), #ff5252);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.results-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
}

.results-section.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.results-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
}

.code-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.code-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 25px;
    border-radius: 15px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.code-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="100" fill="rgba(255,255,255,0.05)">🎫</text></svg>');
    background-size: 100px;
}

.code-number {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.code-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.4);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.feature-title {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

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

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

.footer {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: var(--white);
    margin-top: 100px;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -99px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.footer-wave svg {
    width: calc(100% + 1.3px);
    height: 100px;
}

.footer-wave .wave-fill {
    fill: url(#footer-gradient);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.footer-logo i {
    -webkit-text-fill-color: #ffd700;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.9rem;
    width: 20px;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.copyright {
    opacity: 0.9;
    font-size: 0.95rem;
}

.copyright p {
    margin: 5px 0;
}

.footer-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.developer {
    color: var(--secondary);
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-wave {
        top: -49px;
        height: 50px;
    }
    
    .footer-wave svg {
        height: 50px;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
        background: rgba(0, 0, 0, 0.2);
        padding: 20px;
        border-radius: 10px;
        gap: 10px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        text-align: center;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-title {
        font-size: 1.8rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .code-cards {
        grid-template-columns: 1fr;
    }
    
    .code-cards-container {
        grid-template-columns: 1fr;
    }
    
    .pagination-container {
        padding: 15px;
    }
    
    .pagination-buttons {
        gap: 5px;
    }
    
    .btn-pagination {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

.sparkle {
    position: fixed;
    pointer-events: none;
    animation: sparkle 2s linear forwards;
}

@keyframes sparkle {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(0);
        opacity: 0;
    }
}

/* Enhanced Results Display Styles */
.success-header-premium {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.trophy-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.trophy-icon {
    font-size: 4rem;
    color: #FFD700;
    animation: bounce 1s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.trophy-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease infinite;
}

.congrats-title {
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: bold;
}

.congrats-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.highlight-count {
    color: #FF6B6B;
    font-weight: bold;
    font-size: 1.4rem;
    animation: pulse 1s ease infinite;
}

.highlight-user {
    color: #4ECDC4;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Code Cards Container */
.code-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* For screens that can fit 4 columns */
@media (min-width: 1400px) {
    .code-cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For tablets - 2 columns */
@media (max-width: 992px) {
    .code-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* For mobile - 1 column */
@media (max-width: 576px) {
    .code-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .code-text {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        padding: 0 5px;
    }
    
    .reward-card {
        padding: 15px;
    }
}

/* Reward Card Styles */
.reward-card {
    position: relative;
    border-radius: 15px;
    padding: 20px;
    color: white;
    overflow: hidden;
    animation: slideInUp 0.6s ease both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Allow card to shrink if needed */
}

.reward-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.reward-card.gradient-0 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.reward-card.gradient-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.reward-card.gradient-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.reward-card.gradient-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.card-content {
    position: relative;
    z-index: 1;
}

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

.card-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.card-index {
    font-size: 0.9rem;
    opacity: 0.8;
}

.code-display {
    text-align: center;
    margin: 25px 0 35px 0;
}

.code-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    word-break: break-all;
    overflow-wrap: break-word;
    padding: 0 10px;
    line-height: 1.4;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive font size based on code length */
@media (max-width: 1200px) {
    .code-text {
        font-size: 1.3rem;
    }
}

/* Style for long codes (more than 12 characters) */
.code-text.long-code {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    .code-text.long-code {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .code-text.long-code {
        font-size: 1rem;
        letter-spacing: 0;
    }
}

.code-decoration {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.code-decoration span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: blink 1.5s ease infinite;
}

.code-decoration span:nth-child(2) {
    animation-delay: 0.3s;
}

.code-decoration span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.card-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 10px;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.2);
}

/* Copy Button Premium */
.copy-button-premium {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.copy-button-premium:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.copy-button-premium.copied {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
}

.button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.button-sparkle span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s ease infinite;
}

.button-sparkle span:nth-child(1) {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.button-sparkle span:nth-child(2) {
    top: -20px;
    right: -20px;
    animation-delay: 0.3s;
}

.button-sparkle span:nth-child(3) {
    bottom: -20px;
    left: -20px;
    animation-delay: 0.6s;
}

.button-sparkle span:nth-child(4) {
    bottom: -20px;
    right: -20px;
    animation-delay: 0.9s;
}

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

/* No Result Container */
.no-result-container {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.6s ease;
}

.no-result-animation {
    position: relative;
    margin-bottom: 30px;
}

.search-icon-container {
    position: relative;
    display: inline-block;
    font-size: 4rem;
    color: #95a5a6;
    animation: shake 2s ease infinite;
}

.search-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid #95a5a6;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease infinite;
}

.empty-box {
    font-size: 3rem;
    color: #bdc3c7;
    margin-top: 20px;
    animation: bounce 2s ease infinite;
}

.no-result-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-result-message {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-retry-premium,
.btn-close-premium {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-retry-premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-retry-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-close-premium {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-close-premium:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* Error Container */
.error-container-premium {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.6s ease;
}

.error-animation {
    position: relative;
    margin-bottom: 30px;
}

.error-circle {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: shake 0.5s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.error-shadow {
    width: 80px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    margin: 20px auto 0;
    animation: shadowPulse 2s ease infinite;
}

.error-title {
    font-size: 1.8rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-retry-error {
    padding: 12px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-retry-error:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 30px;
    right: -400px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.3s ease;
    max-width: 350px;
}

.copy-notification.show {
    right: 30px;
}

.copy-notification.success .notification-content {
    color: #27ae60;
}

.copy-notification.error .notification-content {
    color: #e74c3c;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Celebration Particles */
.celebration-particle {
    position: absolute;
    animation: floatUp 3s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.pagination-info {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-pagination {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.page-number {
    width: 40px;
    height: 40px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
}

.page-number.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #764ba2;
    cursor: default;
    font-weight: bold;
}

.page-dots {
    color: #999;
    font-weight: bold;
    padding: 0 5px;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

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

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes shadowPulse {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.3;
    }
    50% {
        transform: scaleX(1.2);
        opacity: 0.1;
    }
}
