:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.05);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-start: #2563eb;
    --gradient-end: #1d4ed8;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--background) 0%, #f1f5f9 100%);
}

.container {
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow),
                0 10px 15px -3px var(--shadow);
    max-width: 1200px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
}

.ad-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.ad-container {
    width: 100%;
    max-width: 728px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.ad-space {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: italic;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 3rem;
}

.left-section {
    width: 100%;
    min-width: 0;
}

.ad-space:empty {
    display: none;
}

/* Ezoic specific styles */
#ezoic-pub-ad-placeholder-101,
#ezoic-pub-ad-placeholder-102 {
    min-height: 250px;
    width: 100%;
    display: block;
}

#ezoic-pub-ad-placeholder-101 {
    position: sticky;
    top: 2rem;
}

.wheel-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
    transition: var(--transition);
}

.wheel-section:hover {
    box-shadow: 0 10px 15px -3px var(--shadow), 0 4px 6px -2px var(--shadow);
}

.right-section {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
    transition: var(--transition);
}

.input-section:hover {
    box-shadow: 0 10px 15px -3px var(--shadow), 0 4px 6px -2px var(--shadow);
}

.button-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    resize: vertical;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    white-space: nowrap;
}

button:hover {
    background-color: #1557b0;
    transform: translateY(-1px);
}

#copyButton {
    padding: 1rem;
    font-size: 1.2rem;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px var(--shadow), 0 8px 10px -6px var(--shadow);
    transition: var(--transition);
}

#wheelCanvas {
    max-width: 100%;
    height: auto;
    max-height: 600px;
}

#result {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    text-align: center;
    min-height: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 1.5rem auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 600px;
}

.share-options {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    width: 100%;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
    justify-content: center;
}

.share-button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.share-button i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.share-button:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .share-options {
        flex-direction: column;
        align-items: center;
    }

    .share-button {
        width: auto;
    }
}

/* Social sharing buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-button.twitter {
    background-color: #1DA1F2;
}

.social-button.twitter:hover {
    background-color: #1a8cd8;
    transform: translateY(-2px);
}

.social-button.facebook {
    background-color: #4267B2;
}

.social-button.facebook:hover {
    background-color: #365899;
    transform: translateY(-2px);
}

.social-button.whatsapp {
    background-color: #25D366;
}

.social-button.whatsapp:hover {
    background-color: #22c35e;
    transform: translateY(-2px);
}

.social-button.x {
    background-color: #000000;
}

.social-button.x:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-button.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    filter: brightness(1.1);
}

.social-button.reddit {
    background: linear-gradient(135deg, #FF4500, #FF5700);
    border-color: #FF4500;
}

.social-button.reddit:hover {
    background: linear-gradient(135deg, #FF5700, #FF4500);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.social-button.reddit:hover i {
    transform: scale(1.1);
}

.social-button.linkedin {
    background: linear-gradient(135deg, #0077B5, #005582);
    border-color: #0077B5;
}

.social-button.linkedin:hover {
    background: linear-gradient(135deg, #005582, #0077B5);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.social-button.linkedin:hover i {
    transform: scale(1.1);
}

.social-button.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-color: #FF0000;
}

.social-button.youtube:hover {
    background: linear-gradient(135deg, #CC0000, #FF0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-button.youtube:hover i {
    transform: scale(1.1);
}

.history-section {
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h2 {
    color: #1a73e8;
    font-size: 1.2rem;
}

#resetHistory {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

#historyList {
    max-height: 400px;
    overflow-y: auto;
}

.stats-section {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stats-section h3 {
    color: #1a73e8;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.history-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.stat-word {
    font-weight: bold;
    color: #1a73e8;
}

.stat-count {
    background-color: #1a73e8;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    min-width: 2rem;
    text-align: center;
}

.history-items {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
}

.history-items h3 {
    color: #1a73e8;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

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

.history-number {
    color: #666;
    margin-right: 0.5rem;
    min-width: 2rem;
}

.history-word {
    flex: 1;
    font-weight: bold;
    color: #1a73e8;
}

.history-time {
    color: #666;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 1600px) {
    .page-wrapper {
        padding: 1rem;
    }
    
    .ad-sidebar {
        width: 250px;
    }
}

@media (max-width: 1400px) {
    .ad-sidebar {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .right-section {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .wheel-section {
        width: 100%;
        order: 1;
    }
    
    .input-section,
    .history-section {
        width: 100%;
    }
    
    .ad-container {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .ad-space {
        min-height: 60px;
    }
}

@media (min-width: 769px) {
    .main-content {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 2.5rem;
    }
    
    .right-section {
        width: 100%;
    }
    
    .wheel-section {
        width: 100%;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

#wheelTitle {
    color: #1a73e8;
    margin: 0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    outline: none;
    cursor: text;
}

#wheelTitle:focus {
    background-color: #f0f2f5;
    box-shadow: 0 0 0 2px #1a73e8;
}

.edit-hint {
    color: #666;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title-container:hover .edit-hint {
    opacity: 1;
}

#wheelTitle:focus + .edit-hint {
    opacity: 0;
}

.save-title {
    background-color: transparent;
    color: #1a73e8;
    padding: 0.5rem;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title-container:hover .save-title {
    opacity: 1;
}

.save-title:hover {
    background-color: #f0f2f5;
    transform: none;
}

.save-title.saved {
    color: #4CAF50;
}

.wheel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wheel-overlay i {
    font-size: 2rem;
    animation: bounce 1s infinite;
}

.wheel-overlay span {
    font-size: 1.2rem;
    font-weight: bold;
}

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

.wheel-container:hover .wheel-overlay {
    opacity: 1;
}

/* Remove header bar styles */
.header-bar,
.header-container,
.header-left,
.header-right,
.header-button,
.header-button:hover,
.header-button i,
.header-button.premium,
.header-button.premium:hover {
    display: none;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.5rem 1rem;
    }
    
    .header-button {
        padding: 0.5rem;
    }
    
    .header-button span {
        display: none;
    }
    
    .header-button i {
        font-size: 1.25rem;
    }
}

.use-cases {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.use-cases h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case {
    padding: 0.75rem 1rem;
    background-color: var(--background);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.use-case:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px var(--shadow);
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .use-cases {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case {
        font-size: 0.85rem;
    }
}

.features-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 1rem;
    color: white;
}

.features-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

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

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.feature p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .features-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.25rem;
    }
    
    .feature i {
        font-size: 1.75rem;
    }
    
    .feature h4 {
        font-size: 1.1rem;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
}

.quick-start {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.wheel-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.control-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #2563eb;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.control-button:hover {
    background-color: #1d4ed8;
}

.control-button i {
    font-size: 1rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-header h2 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.input-actions {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: var(--background);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .quick-start {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .quick-start-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wheel-controls {
        flex-direction: column;
    }
    
    .control-button {
        width: 100%;
        justify-content: center;
    }
}

.header-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-button {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.header-button:hover {
    background: var(--background);
    color: var(--primary);
}

.header-button.premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
}

.header-button.premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
}

.wheel-modes {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.mode-button {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 1px 2px var(--shadow);
}

.mode-button:hover {
    background: var(--background);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
}

.mode-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.wheel-customization {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.results-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

/* Remove the float and width properties */
.wheel-customization,
.results-panel {
    width: 100%;
    float: none;
    margin: 1.5rem 0;
}

/* Remove the clearfix */
.wheel-section::after {
    content: none;
}

.customization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
}

.customization-header:hover {
    background: var(--background);
}

.customization-header h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    user-select: none;
}

.customization-content,
.results-content {
    display: none;
    height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.customization-content.active,
.results-content.active {
    display: block;
    height: auto;
    overflow: visible;
}

.customization-content {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
}

.results-content {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
}

.result-item {
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.result-item:hover {
    transform: translateX(4px);
    background: var(--surface);
    box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-text {
    font-weight: 500;
    color: var(--text);
}

.result-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-size: 0.9rem;
    color: #666;
}

.setting-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.setting-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #45a049;
}

.color-picker {
    display: flex;
    gap: 0.75rem;
}

.color-option {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 1.5rem;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.25rem;
    width: 1.25rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(1.5rem);
}

@media (max-width: 768px) {
    .wheel-modes {
        flex-direction: column;
    }
    
    .mode-button {
        width: 100%;
        justify-content: center;
    }
    
    .customization-content {
        padding: 1rem;
    }
    
    .color-picker {
        flex-wrap: wrap;
    }
}

/* Full Screen Mode */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.fullscreen .wheel-container {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Results Panel */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
}

.results-header:hover {
    background: var(--background);
}

.results-header h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    user-select: none;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
}

.results-content {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* Ensure action buttons don't trigger the toggle */
.results-actions .action-button {
    pointer-events: auto;
    cursor: pointer;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.results-chart {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    height: 300px;
}

.results-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.share-link {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-link input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.copy-link {
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.qr-code {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code canvas {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-qr {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.download-qr:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.download-qr i {
    font-size: 1.1rem;
}

.qr-instructions {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.social-share {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 3.5rem;
    width: 100%;
    text-align: left;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-button:hover::before {
    opacity: 1;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-button i {
    font-size: 1.4rem;
    min-width: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.social-button:hover i {
    transform: scale(1.1);
}

.social-button span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific social button styles */
.social-button.x {
    background: linear-gradient(135deg, #000000, #333333);
}

.social-button.x:hover {
    background: linear-gradient(135deg, #333333, #000000);
}

.social-button.facebook {
    background: linear-gradient(135deg, #4267B2, #365899);
}

.social-button.facebook:hover {
    background: linear-gradient(135deg, #365899, #4267B2);
}

.social-button.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-button.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.social-button.email {
    background: linear-gradient(135deg, #EA4335, #D33426);
}

.social-button.email:hover {
    background: linear-gradient(135deg, #D33426, #EA4335);
}

@media (max-width: 768px) {
    .social-share {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .social-button {
        padding: 1rem;
        min-height: 3rem;
    }
}

/* Fullscreen styles */
.wheel-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.wheel-container.fullscreen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.wheel-container.fullscreen canvas {
    max-width: 80vh;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.wheel-controls.fullscreen {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hide elements in fullscreen */
.wheel-section.fullscreen .wheel-customization,
.wheel-section.fullscreen .results-panel,
.wheel-section.fullscreen .share-section {
    display: none;
}

/* Ensure wheel controls are visible in fullscreen */
.wheel-section.fullscreen .wheel-controls {
    display: flex;
    gap: 1rem;
}

/* Ensure result text is visible in fullscreen */
.wheel-section.fullscreen #result {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .input-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .wheel-controls {
        flex-direction: column;
    }
    
    .control-button {
        width: 100%;
        justify-content: center;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .header-button span {
        display: none;
    }
    
    .header-button {
        padding: 0.5rem;
    }
    
    .header-button.premium {
        padding: 0.5rem 0.75rem;
    }
    
    .header-button.premium span {
        display: inline;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .wheel-section {
        padding: 1rem;
    }
    
    .input-section {
        padding: 1rem;
    }
}

.qr-error {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 0.5rem;
    color: #856404;
    margin: 1rem 0;
}

.qr-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #856404;
}

.qr-error p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.qr-error p:last-child {
    font-size: 0.85rem;
    opacity: 0.8;
} 