/* Secret Ranking App - Bestiefy-style Styling */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Bestiefy-style dark background */
body {
    background: #2f3542;
    min-height: 100vh;
}

/* Page transitions */
.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 220ms ease-in-out;
}

.page.active {
    display: block;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Card styling - Bestiefy style */
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Button styling - Bestiefy style */
.btn-primary {
    background: #00d4aa;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Big attention-grabbing button */
.btn-big {
    padding: 20px 40px;
    font-size: 20px;
    border-radius: 16px;
}

.btn-big.shake {
    animation: wobble 2s infinite;
}

@keyframes wobble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    15% { transform: translateY(-5px) rotate(-1deg); }
    30% { transform: translateY(-3px) rotate(1deg); }
    45% { transform: translateY(-2px) rotate(-1deg); }
    60% { transform: translateY(-1px) rotate(1deg); }
    75% { transform: translateY(-1px) rotate(-1deg); }
}

.btn-secondary {
    background: #3742fa;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(55, 66, 250, 0.3);
}

.btn-secondary:hover {
    background: #2f3542;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 66, 250, 0.4);
}

/* Drag and drop styling - Apple-like animations */
.sortable-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    will-change: transform;
    position: relative;
}

.sortable-item:hover {
    border-color: #00d4aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.2);
}

.sortable-item:active {
    cursor: grabbing;
}

/* Apple-like drag states */
.sortable-item.sortable-ghost {
    opacity: 0.4;
    background: #f8f9fa;
    border: 2px dashed #00d4aa;
    transform: scale(0.98);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sortable-item.sortable-chosen {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.3);
    z-index: 1000;
    cursor: grabbing;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fallback for better mobile dragging */
.sortable-fallback {
    display: none !important;
}

/* Smooth transitions for position changes */
.sortable-item.moving {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Remove drag handle styling since we're removing the icon */

.item-label {
    flex: 1;
    font-weight: 600;
    color: #374151;
}

/* Position indicators */
.position-indicator {
    background: #3742fa;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}

/* Colorful position indicators */
.position-indicator.pos-1 { background: #ff6b6b; }
.position-indicator.pos-2 { background: #4ecdc4; }
.position-indicator.pos-3 { background: #45b7d1; }
.position-indicator.pos-4 { background: #96ceb4; }
.position-indicator.pos-5 { background: #feca57; }



/* 5-Chance Game Styling */

/* Position Slots */
.position-slot {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    min-height: 48px;
    transition: all 0.3s ease;
}

.position-slot.filled {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-style: solid;
}

.position-slot.wrong {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-style: solid;
    animation: shake 0.5s ease-in-out;
}

.position-slot-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
    background: #6b7280;
}

.position-slot.filled .position-slot-number {
    background: #22c55e;
}

.position-slot.wrong .position-slot-number {
    background: #ef4444;
}

.position-slot-content {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.position-slot.empty .position-slot-content {
    color: #9ca3af;
    font-style: italic;
}

/* Available Cards */
.available-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    user-select: none;
}

.available-card:hover {
    border-color: #3742fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.available-card.selected {
    border-color: #3742fa;
    background: #f0f9ff;
}

/* Removed .available-card.used styles since cards are now removed completely */

.available-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

/* Position Slots - Drag Over */
.position-slot.drag-over {
    border-color: #3742fa;
    background: #f0f9ff;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(55, 66, 250, 0.3);
}

.available-card-label {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

/* Chances Counter */
#chances-counter {
    transition: all 0.3s ease;
}

#chances-counter.low {
    color: #ef4444;
    animation: pulse 1s infinite;
}

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

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

/* Game Popup Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #374151;
    margin-bottom: 12px;
}

.popup-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.popup-close-btn {
    background: #3742fa;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: #2c3cdb;
    transform: translateY(-2px);
}

/* Confetti Styling */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    animation: confetti-fall 3s linear forwards;
}

.confetti:nth-child(2n) { background: #ef4444; }
.confetti:nth-child(3n) { background: #22c55e; }
.confetti:nth-child(4n) { background: #3b82f6; }
.confetti:nth-child(5n) { background: #a855f7; }

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Results styling */
.result-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Detailed result items */
.detailed-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    min-height: 48px;
}

.detailed-result-item.correct {
    background: #f0fdf4;
    border-color: #22c55e;
}

.detailed-result-item.incorrect {
    background: #fef2f2;
    border-color: #ef4444;
}

.result-position {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.result-position.correct {
    background: #22c55e;
}

.result-position.incorrect {
    background: #ef4444;
}

.result-position.correct-position {
    background: #6b7280;
}

.detailed-result-item {
    position: relative;
}

/* Removed redundant correct position indicator */

.result-item-label {
    flex: 1;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Leaderboard styling */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f9fafb;
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    margin-right: 12px;
    background: #6b7280;
}

.leaderboard-rank.rank-1 { background: #fbbf24; }
.leaderboard-rank.rank-2 { background: #9ca3af; }
.leaderboard-rank.rank-3 { background: #d97706; }

.leaderboard-name {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.leaderboard-score {
    font-weight: bold;
    color: #374151;
}

.result-position {
    font-size: 24px;
    font-weight: 800;
    color: #00d4aa;
    margin-bottom: 8px;
}

.result-item-name {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.result-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.result-bar-fill {
    background: #00d4aa;
    height: 100%;
    transition: width 0.5s ease;
}

.result-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Stats styling */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #374151;
}

.stat-value {
    font-weight: 700;
    color: #00d4aa;
    font-size: 18px;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .card {
        padding: 12px;
    }
    
    .sortable-item {
        padding: 12px;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .sortable-item:active {
        cursor: grabbing;
        -webkit-touch-callout: none;
    }
}

/* Better touch handling for mobile drag */
@media (hover: none) and (pointer: coarse) {
    .sortable-item {
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .sortable-item:active {
        cursor: grabbing;
        -webkit-touch-callout: none;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success feedback */
.success-message {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

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

/* Sortable animations for 60fps */
.sortable-ghost {
    opacity: 0.3;
    background: #f3f4f6;
    border: 2px dashed #00d4aa;
    transform: scale(0.95);
}

.sortable-chosen {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.4);
    z-index: 1000;
    cursor: grabbing;
}

/* Input styling */
input, select {
    transition: all 0.3s ease;
}

input:focus, select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* Success card styling - Bestiefy style */
.success-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(173, 216, 230, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.success-header {
    background: #000000;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.success-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    letter-spacing: 1px;
}

.success-content {
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.success-subtitle {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.live-badge {
    background: #00d4aa;
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    display: inline-block;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.success-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px 0;
    font-weight: 600;
    line-height: 1.4;
}

.link-section {
    text-align: left;
}

.link-label {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
}

.link-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.link-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
}

.copy-btn {
    background: #00d4aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #00b894;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #28a745;
}

/* Share page styling - Bestiefy style */
.share-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.share-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.share-text {
    flex: 1;
}

/* Platform-specific colors */
.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.tiktok {
    background: #000000;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.messenger {
    background: #0084ff;
    color: white;
}

.share-btn.whatsapp-status {
    background: #25d366;
    color: white;
}

.share-btn.snapchat {
    background: #fffc00;
    color: black;
}

/* Info box */
.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6c757d;
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
    line-height: 1.4;
}

/* Action buttons */
.action-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #00d4aa;
    color: white;
}

.action-btn.primary:hover {
    background: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.action-btn.danger {
    background: #ff6b6b;
    color: white;
}

.action-btn.danger:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

/* Speech bubble styling */
.speech-bubble {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #ffffff;
}

/* Step cards styling */
.step-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.step-number {
    background: #00d4aa;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    text-align: left;
}

.step-text h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-text p {
    font-size: 14px;
    line-height: 1.4;
}

/* Add option button - styled like an option */
.btn-add-option {
    background: #ffffff;
    border: 2px dashed #00d4aa;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4aa;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.btn-add-option:hover {
    background: #f0fdfa;
    border-color: #00b894;
    color: #00b894;
    transform: translateY(-2px);
}

/* Remove option button - small red circle */
.btn-remove-option {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-remove-option:hover {
    background: #ff5252;
    transform: scale(1.1);
}

/* Input validation */
.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 53, 66, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-text {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

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

/* Create page layout */
.create-page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.create-top-section {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.create-bottom-section {
    background: #2f3542;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

/* Bigger button for landing page */
.btn-huge {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 16px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    max-width: 300px;
    animation: wobble 2s ease-in-out infinite;
}

/* Ad Container Styles */
.ad-container {
    margin: 20px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-container ins {
    border-radius: 6px;
    overflow: hidden;
}

/* Specific sizing for different ad types */
.ad-container ins[style*="width:320px"] {
    width: 320px !important;
    height: 50px !important;
}

.ad-container ins[style*="width:300px"] {
    width: 300px !important;
    height: 250px !important;
}

/* Responsive ad sizing */
@media (max-width: 480px) {
    .ad-container {
        margin: 15px 0;
        padding: 8px;
    }
    
    .ad-container ins[style*="width:320px"] {
        width: 100% !important;
        max-width: 320px;
        height: 50px !important;
    }
    
    .ad-container ins[style*="width:300px"] {
        width: 100% !important;
        max-width: 300px;
        height: 250px !important;
    }
}