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

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
        "wheel"
        "controls";
    gap: 20px;
    align-items: start;
    padding-bottom: 40px;
}

.presets-section {
    grid-area: presets;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.left-section {
    grid-area: wheel;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.wheel-mode-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    max-width: calc(100% - 28px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    text-align: left;
}

.wheel-mode-badge[data-mode="diversao"] {
    color: #5b4a9e;
    border-color: rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(255, 255, 255, 0.95));
}

.wheel-mode-badge[data-mode="profissional"] {
    color: #1a5276;
    border-color: rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(255, 255, 255, 0.95));
}

.wheel-mode-badge[data-mode="financeiro"] {
    color: #1e6b3a;
    border-color: rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.14), rgba(255, 255, 255, 0.95));
}

.wheel-mode-badge[data-mode="whatsapp"] {
    color: #0f6b44;
    border-color: rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(255, 255, 255, 0.95));
}

.wheel-mode-badge[data-mode="social"] {
    color: #94368a;
    border-color: rgba(187, 143, 206, 0.55);
    background: linear-gradient(135deg, rgba(187, 143, 206, 0.2), rgba(255, 255, 255, 0.95));
}

.wheel-mode-badge[data-mode="professor"] {
    color: #2c5282;
    border-color: rgba(66, 153, 225, 0.45);
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.16), rgba(255, 255, 255, 0.95));
}

.wheel-mode-badge[data-mode="premios"] {
    color: #a04000;
    border-color: rgba(230, 126, 34, 0.45);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.16), rgba(255, 255, 255, 0.95));
}

.wheel-spin-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    line-height: 1.1;
}

.wheel-spin-counter-value {
    font-size: 14px;
    font-weight: 800;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.wheel-spin-counter-caption {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
    margin-top: 2px;
}

.daily-spin-hint {
    position: absolute;
    top: 48px;
    left: 14px;
    z-index: 3;
    margin: 0;
    max-width: min(200px, calc(100% - 120px));
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: #4a4a5c;
    pointer-events: none;
}

.daily-spin-hint strong {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.daily-spin-hint--at-limit {
    color: #b83232;
}

.daily-spin-hint--pro {
    color: #1e6f4a;
}

.list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 8px;
    max-width: 100%;
    word-wrap: break-word;
}

.list-title--editable {
    cursor: text;
    outline: none;
    border-radius: 8px;
    padding: 4px 8px;
    margin-left: -8px;
    margin-right: -8px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.list-title--editable:hover {
    background: rgba(0, 0, 0, 0.04);
}

.list-title--editable:focus {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.45);
}

.list-title--editable.list-title--error {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.65);
    background: rgba(231, 76, 60, 0.08);
}

.list-title--editable.list-title--error:focus {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.75);
    background: rgba(231, 76, 60, 0.1);
}

.list-title-inline-alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    color: #a82315;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.list-title-inline-alert[hidden] {
    display: none !important;
}

.wheel-toolbar {
    align-self: stretch;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.fullscreen-btn {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.wheel-container:fullscreen,
.wheel-container:-webkit-full-screen {
    width: 100%;
    max-width: none;
    min-height: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.list-name-hint {
    display: block;
    color: rgba(102, 102, 102, 0.72);
    font-size: 14px;
    margin-top: 6px;
}

.list-name-error {
    margin: 10px 0 0;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #a82315;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: 8px;
}

.list-name-error[hidden] {
    display: none !important;
}

.list-name-input.item-input--error {
    border-color: #e74c3c;
    background: #fff8f7;
}

.list-name-input.item-input--error:focus {
    border-color: #e74c3c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.list-name-row {
    margin-bottom: 0;
}

.list-name-input {
    width: 100%;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    margin: 20px auto;
}

@media (min-width: 1100px) {
    .wheel-wrapper {
        max-width: min(640px, calc(100vw - 520px));
    }
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #fff;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.pointer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff6b6b;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    margin: 20px 0;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    text-align: center;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    display: none;
    animation: fadeInUp 0.5s ease;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.result.result--winner {
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 42%, #047857 100%);
    border: 2px solid rgba(255, 255, 255, 0.75);
    padding: 22px 24px;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 800;
    line-height: 1.35;
    box-shadow:
        0 8px 32px rgba(13, 148, 136, 0.5),
        0 0 48px rgba(45, 212, 191, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: resultWinnerReveal 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.result.result--winner::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
    animation: resultWinnerPulse 1.25s ease-out 0.15s both;
}

@keyframes resultWinnerReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(18px);
        filter: brightness(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
}

@keyframes resultWinnerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

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

.presets-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.presets-section h4::before {
    content: "🎲";
    font-size: 20px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.new-list-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.controls {
    grid-area: controls;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

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

.history-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.input-section {
    margin-bottom: 30px;
}

.input-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.controls-step-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.3;
}

.input-section.controls-step {
    padding: 16px;
    border: 1px solid rgba(102, 126, 234, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.controls-step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 1px;
}

.controls-step-heading {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}

.controls-settings-section .controls-settings-option {
    margin: 0;
}

.controls-settings-section .controls-settings-option + .controls-settings-option {
    margin-top: 12px;
}

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

.item-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.item-input:focus {
    outline: none;
    border-color: #667eea;
}

.add-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background: #5a6fd8;
}

.checkbox-option {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.checkbox-label:hover {
    color: #667eea;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

.items-panel-hint {
    color: rgba(102, 102, 102, 0.72);
    font-size: 14px;
    line-height: 1.45;
    margin: -6px 0 16px;
}

.items-count {
    font-size: 0.9em;
    font-weight: 600;
    color: #667eea;
}

.items-panel-hint strong {
    color: rgba(68, 68, 68, 0.74);
    font-weight: 600;
}

.items-panel > .add-items-block {
    margin-top: 14px;
}

.items-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.items-mode-btn {
    border: 1px solid rgba(102, 126, 234, 0.35);
    background: #fff;
    color: #556;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.items-mode-btn:hover {
    border-color: rgba(102, 126, 234, 0.55);
}

.items-mode-btn.is-active {
    border-color: #667eea;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.18) 0%, rgba(102, 126, 234, 0.08) 100%);
    color: #2e3c8d;
}

.items-mode-panel {
    margin-top: 12px;
}

.add-items-block {
    margin-bottom: 16px;
    padding: 14px 14px 4px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
}

.add-items-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.add-items-block small {
    color: rgba(102, 102, 102, 0.72);
}

.items-panel .items-list {
    margin-top: 4px;
}

.items-inline-bulk-textarea {
    min-height: 170px;
}

.items-inline-bulk-info {
    margin-top: 10px;
}

.items-inline-bulk-btn {
    margin-top: 10px;
}

.clear-items-list-btn {
    margin-top: 10px;
    width: 100%;
    display: block;
    border: none;
    background: #ff6b6b;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.clear-items-list-btn:hover {
    background: #ee5a52;
    transform: translateY(-1px);
}

.items-duplicates-alert {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.4);
    background: rgba(243, 156, 18, 0.1);
    color: #8a5a00;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.items-duplicates-alert[hidden] {
    display: none !important;
}

.import-duplicates-alert {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.4);
    background: rgba(243, 156, 18, 0.1);
    color: #8a5a00;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.import-duplicates-alert[hidden] {
    display: none !important;
}

.duplicate-remove-btn {
    margin-top: 10px;
    border: 1px solid rgba(102, 126, 234, 0.35);
    background: rgba(102, 126, 234, 0.08);
    color: #4f63c8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.duplicate-remove-btn:hover {
    background: rgba(102, 126, 234, 0.14);
    transform: translateY(-1px);
}

.duplicate-remove-btn[hidden] {
    display: none !important;
}

.items-pro-notice {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.items-pro-notice[hidden] {
    display: none !important;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

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

.remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #ee5a52;
}

.drawn-items {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.drawn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    animation: slideIn 0.3s ease;
}

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

.drawn-time {
    font-size: 12px;
    opacity: 0.8;
}

.no-draws {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

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

.history-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.restore-btn {
    transition: all 0.3s ease;
    position: relative;
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.restore-btn:hover {
    background: #44a08d !important;
    transform: translateY(-1px);
}

.restore-btn.animate {
    animation: restoreAnimation 0.5s ease;
}

@keyframes restoreAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.no-items-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.no-items-message .emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .mobile-view-toggle {
        display: flex;
        gap: 8px;
        width: 100%;
        margin: -4px 0 10px;
        padding: 6px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.22);
        backdrop-filter: blur(8px);
        grid-column: 1 / -1;
        grid-area: mobile-toggle;
    }

    .mobile-view-toggle__btn {
        flex: 1;
    }

    .container.mobile-view--wheel .controls {
        display: none;
    }

    .container.mobile-view--controls .left-section {
        display: none;
    }

    .container.mobile-view--wheel .left-section {
        display: flex;
        flex-direction: column;
    }

    .container.mobile-view--controls .controls {
        display: block;
    }

    .container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "mobile-toggle"
            "wheel"
            "controls";
        gap: 20px;
    }
    
    .wheel-wrapper {
        width: 100%;
        max-width: min(92vw, 400px);
        aspect-ratio: 1;
        height: auto;
    }
    
    h1 {
        font-size: 28px;
    }

    .preset-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .container {
        grid-template-columns: 1fr 400px;
        grid-template-areas: 
            "wheel controls";
        gap: 40px 40px;
    }
}

@media (max-width: 480px) {
    .preset-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer Styles */
.footer {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 30px 20px;
}

.footer-section {
    color: #333;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.footer-section ul li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 30px;
    text-align: center;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 0 0 20px 20px;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-tip {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    padding: 8px 16px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px 15px;
    }
    
    .footer-bottom {
        padding: 15px 20px;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
    
    .footer-tip {
        font-size: 12px !important;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 25px 15px 10px;
        gap: 20px;
    }
    
    .footer-bottom {
        padding: 15px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

/* Adicione estas regras ao seu styles.css existente */

/* SEO Content Section */
.seo-content {
    max-width: 1200px;
    width: 100%;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.content-wrapper article {
    color: #333;
    line-height: 1.6;
}

.content-wrapper h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.content-wrapper h3 {
    color: #764ba2;
    font-size: 22px;
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.content-wrapper p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.content-wrapper strong {
    color: #667eea;
    font-weight: bold;
}

/* Screen Reader Only Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Updates */
header {
    text-align: center;
    margin-bottom: 30px;
    grid-column: 1 / -1;
}

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

.subtitle {
    color: white;
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.site-header {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: -20px calc(50% - 50vw) 24px;
    padding: 14px 20px 12px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.top-header-row {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.top-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 255);
    backdrop-filter: blur(8px);
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-brand:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.top-brand-logo {
    width: 100px;
    height: auto;
    display: block;
}

.top-brand-title {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 26px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.28);
    line-height: 1.2;
    white-space: nowrap;
    text-align: left;
    grid-column: auto;
}

.site-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2.2vw, 30px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.28);
    text-align: left;
    line-height: 1.25;
}

.top-navbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.top-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.top-nav-toggle__line {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.top-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.16);
    border: none;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-view-toggle {
    display: none;
}

.mobile-view-toggle__btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-view-toggle__btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.28);
}

.mobile-view-toggle__btn.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: #4f46e5;
}

@media (max-width: 768px) {
    .mobile-view-toggle {
        display: flex;
        gap: 8px;
        width: 100%;
        margin: -4px 0 10px;
        padding: 6px;
        border-radius: 12px;
        background: transparent;
        grid-column: 1 / -1;
    }

    .mobile-view-toggle__btn {
        flex: 1;
    }
}

.top-nav-link:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.top-nav-link--active {
    background: rgba(255, 255, 255, 0.32);
}

.top-nav-link--pro {
    background: linear-gradient(45deg, #764ba2, #667eea);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding-inline: 18px;
}

.site-header .subtitle {
    width: 100%;
    max-width: 1200px;
    margin: 8px auto 0;
    text-align: left;
}

.pro-logged-email {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ddd6fe;
    color: #5b21b6;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(91, 33, 182, 0.08);
    backdrop-filter: blur(6px);
    text-align: center;
}

@media (max-width: 640px) {
    .site-header {
        margin-bottom: 20px;
    }

    .top-header-row {
        position: relative;
        align-items: center;
        justify-content: space-between;
    }

    .top-brand-logo {
        width: 88px;
    }

    .top-brand-title {
        display: block;
        font-size: clamp(16px, 5vw, 28px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-nav-toggle {
        display: inline-flex;
    }

    .top-navbar {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: min(280px, calc(100vw - 24px));
        padding: 10px;
        border-radius: 12px;
        background: rgba(20, 28, 58, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 8px;
        z-index: 30;
    }

    .top-navbar.is-open {
        display: flex;
    }

    .top-nav-link {
        width: 100%;
    }
}

/* Accessibility improvements */
button:focus,
input:focus,
.preset-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Responsive adjustments for SEO content */
@media (max-width: 768px) {
    .seo-content {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .content-wrapper h2 {
        font-size: 24px;
    }
    
    .content-wrapper h3 {
        font-size: 20px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .seo-content {
        padding: 25px 15px;
    }
    
    .content-wrapper h2 {
        font-size: 22px;
    }
    
    .content-wrapper h3 {
        font-size: 18px;
    }
}

.history-buttons .preset-btn,
#clearHistoryBtn {
    background: linear-gradient(45deg, #764ba2, #667eea) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3) !important;
}

.history-buttons .preset-btn:hover,
#clearHistoryBtn:hover {
    background: linear-gradient(45deg, #5a4a8a, #5a6fd8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4) !important;
}

.history-buttons .preset-btn:focus,
#clearHistoryBtn:focus {
    outline: 3px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Garantir que o botão restaurar também funcione corretamente */
.restore-btn,
#restoreBtn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3) !important;
}

.restore-btn:hover,
#restoreBtn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4) !important;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.wheel-center:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.wheel-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Adicionar indicação visual de que é clicável */
.wheel-center::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

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

/* Desabilitar animação quando estiver girando */
.wheel-center.spinning::before {
    animation: none;
}

/* Adicionar tooltip visual */
.wheel-center::after {
    content: 'Clique aqui!';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: normal;
}

.wheel-center:hover::after {
    opacity: 1;
}

/* Esconder tooltip em mobile para não poluir */
@media (max-width: 768px) {
    .wheel-center::after {
        display: none;
    }
}

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

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
        "wheel"
        "controls";
    gap: 20px;
    align-items: start;
    padding-bottom: 40px;
}

.presets-section {
    grid-area: presets;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.left-section {
    grid-area: wheel;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1100px) {
    .wheel-wrapper {
        max-width: min(640px, calc(100vw - 520px));
    }
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #fff;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.wheel-center:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.wheel-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-center::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

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

.wheel-center.spinning::before {
    animation: none;
}

.wheel-center::after {
    content: 'Clique aqui!';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: normal;
}

.wheel-center:hover::after {
    opacity: 1;
}

.pointer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff6b6b;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    margin: 20px 0;
    width: 100%;
    max-width: 300px;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    text-align: center;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    display: none;
    animation: fadeInUp 0.5s ease;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 400px;
}

.result.result--winner {
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 42%, #047857 100%);
    border: 2px solid rgba(255, 255, 255, 0.75);
    padding: 22px 24px;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 800;
    line-height: 1.35;
    box-shadow:
        0 8px 32px rgba(13, 148, 136, 0.5),
        0 0 48px rgba(45, 212, 191, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: resultWinnerReveal 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.result.result--winner::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
    animation: resultWinnerPulse 1.25s ease-out 0.15s both;
}

.share-result-btn {
    margin-top: 20px;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #5c7cfa, #4263eb);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(66, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.share-result-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 99, 235, 0.38);
}

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

.wheel-container .share-pro-notice {
    width: 100%;
    max-width: 400px;
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
}

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

.presets-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.preset-btn div {
    font-size: 14px;
    margin-bottom: 4px;
}

.preset-btn small {
    font-size: 11px;
    opacity: 0.8;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.new-list-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.controls {
    grid-area: controls;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.history-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
}

.history-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.input-section {
    margin-bottom: 30px;
}

.input-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

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

.item-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    min-width: 0;
}

.item-input:focus {
    outline: none;
    border-color: #667eea;
}

.add-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.add-btn:hover {
    background: #5a6fd8;
}

.checkbox-option {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.checkbox-label:hover {
    color: #667eea;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.item span:nth-child(2) {
    flex: 1;
    word-break: break-word;
}

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

.remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: #ee5a52;
}

.drawn-items {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.drawn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    animation: slideIn 0.3s ease;
    gap: 10px;
}

.drawn-item span:first-child {
    word-break: break-word;
    flex: 1;
}

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

.drawn-time {
    font-size: 12px;
    opacity: 0.8;
    white-space: nowrap;
    flex-shrink: 0;
}

.no-draws {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

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

.history-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.history-buttons .preset-btn,
#clearHistoryBtn {
    background: linear-gradient(45deg, #764ba2, #667eea) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3) !important;
    min-height: auto !important;
}

.restore-btn,
#restoreBtn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3) !important;
}

.restore-btn:hover,
#restoreBtn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4) !important;
}

.restore-btn.animate {
    animation: restoreAnimation 0.5s ease;
}

@keyframes restoreAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.no-items-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.no-items-message .emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    grid-column: 1 / -1;
    width: 100%;
}

header h1 {
    font-size: 28px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    line-height: 1.3;
}

.subtitle {
    color: white;
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
    line-height: 1.4;
}

button:focus,
input:focus,
.preset-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.footer {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 30px 20px;
}

.footer-section {
    color: #333;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.footer-section ul li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 30px;
    text-align: center;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 0 0 20px 20px;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-tip {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    padding: 8px 16px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.seo-content {
    max-width: 1200px;
    width: 100%;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
}

.content-wrapper article {
    color: #333;
    line-height: 1.6;
}

.content-wrapper h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.content-wrapper h3 {
    color: #764ba2;
    font-size: 22px;
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.content-wrapper p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.content-wrapper strong {
    color: #667eea;
    font-weight: bold;
}

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

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        gap: 15px;
        padding-bottom: 30px;
    }

    .wheel-wrapper {
        width: min(92vw, 420px);
        max-width: 420px;
        height: auto;
        margin: 15px auto;
    }

    .wheel-center::after {
        display: none;
    }

    header h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    .preset-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .preset-btn {
        padding: 10px 8px;
        min-height: 65px;
        font-size: 13px;
    }

    .preset-btn div {
        font-size: 13px;
    }

    .preset-btn small {
        font-size: 10px;
    }

    .wheel-container {
        padding: 20px 15px;
    }

    .daily-spin-hint {
        top: 46px;
        left: 10px;
        max-width: min(165px, calc(100% - 100px));
        font-size: 10px;
    }

    .controls {
        padding: 20px 15px;
    }

    .history-section {
        padding: 20px 15px;
    }

    .input-section h3 {
        font-size: 16px;
    }

    .history-section h3 {
        font-size: 16px;
    }

    .result {
        font-size: 18px;
        padding: 15px;
    }

    .result.result--winner {
        padding: 18px 16px;
        font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px 15px;
    }

    .footer-bottom {
        padding: 15px 20px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-tip {
        font-size: 12px !important;
        padding: 6px 12px;
    }

    .seo-content {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .content-wrapper h2 {
        font-size: 24px;
    }

    .content-wrapper h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .preset-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .preset-btn {
        min-height: 60px;
        padding: 8px;
    }

    .wheel-wrapper {
        width: min(90vw, 380px);
        max-width: 380px;
    }

    .wheel-center {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .pointer {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 24px solid #ff6b6b;
    }

    .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .add-btn {
        width: 100%;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .footer-content {
        padding: 25px 15px 10px;
        gap: 20px;
    }

    .footer-bottom {
        padding: 15px;
    }

    .footer-bottom p {
        font-size: 13px;
    }

    .seo-content {
        padding: 25px 15px;
    }

    .content-wrapper h2 {
        font-size: 22px;
    }

    .content-wrapper h3 {
        font-size: 18px;
    }
}

/* DESKTOP */
@media (min-width: 769px) {
    .container {
        grid-template-columns: 1fr 400px;
        grid-template-areas: 
            "wheel controls";
        gap: 40px 40px;
        align-items: stretch;
    }

    .left-section,
    .controls {
        height: 100%;
    }

    header h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .preset-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Botão Importar Lista */
.import-list-btn {
    width: 100%;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
    text-align: center;
}

.import-list-btn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

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

.import-list-wrap {
    width: 100%;
    margin-top: 10px;
}

.import-list-wrap .import-list-btn {
    margin-top: 0;
    min-height: 48px;
}

.list-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.list-actions-row .import-list-btn {
    margin-top: 0;
    width: 100%;
    min-height: 48px;
}

.clear-list-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
    text-align: center;
}

.action-btn-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.action-btn-subtitle {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.2;
}

.clear-list-btn:hover {
    background: linear-gradient(45deg, #ff5252, #e04840);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

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

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    color: white;
    font-size: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

.modal-description {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 15px 20px;
    border-radius: 12px;
}

.modal-tips li {
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-tips li:last-child {
    margin-bottom: 0;
}

/* Fake door: interesse em integração Instagram */
.fakedoor-social-rows {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.fakedoor-social-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(95, 100, 120, 0.72);
}

.fakedoor-btn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 0;
}

.fakedoor-btn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0;
}

.fakedoor-modal-title {
    flex-wrap: wrap;
}

.fakedoor-modal-title__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fakedoor-modal-title__icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.fakedoor-instagram-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Poppins', system-ui, sans-serif;
    border: 1px solid rgba(193, 53, 132, 0.35);
    background: linear-gradient(135deg, rgba(255, 240, 248, 0.9) 0%, rgba(240, 244, 255, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fakedoor-instagram-btn:hover {
    border-color: rgba(193, 53, 132, 0.75);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(131, 58, 180, 0.15);
}

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

.fakedoor-whatsapp-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Poppins', system-ui, sans-serif;
    border: 1px solid rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, rgba(220, 255, 235, 0.95) 0%, rgba(236, 255, 244, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fakedoor-whatsapp-btn:hover {
    border-color: rgba(18, 140, 70, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

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

.fakedoor-modal-content {
    max-width: min(440px, 96vw);
}


.fakedoor-modal-disclaimer {
    margin: 0;
    padding: 14px 16px;
    background: linear-gradient(45deg, #fff7e6, #fff0d1);
    border-left: 4px solid #ffa500;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}

.fakedoor-modal-footer {
    flex-wrap: wrap;
}

a.fakedoor-modal-cta {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.fakedoor-modal-cta--whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    border: none;
    color: #fff;
}

a.fakedoor-modal-cta--whatsapp:hover {
    background: linear-gradient(45deg, #20bd5a, #0f7a6f);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Modal genérico de anúncios para cooldown */
.ad-cooldown-modal {
    background: rgba(12, 18, 38, 0.45);
    backdrop-filter: blur(2px);
}

.ad-cooldown-modal__content {
    max-width: min(520px, 96vw);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 50px rgba(8, 12, 28, 0.35);
}

.ad-cooldown-modal__header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.92), rgba(118, 75, 162, 0.92));
}

.ad-cooldown-modal__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ad-cooldown-modal__timer {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(97, 114, 194, 0.12);
    color: #363a7d;
    font-size: 14px;
    font-weight: 600;
}

.ad-cooldown-modal__timer strong {
    font-variant-numeric: tabular-nums;
}

.ad-cooldown-modal__campaigns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ad-cooldown-modal__label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #52557b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ad-cooldown-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(98, 114, 195, 0.3);
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ad-cooldown-modal__footer-offer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid rgba(98, 114, 195, 0.2);
}

.ad-cooldown-footer-offer__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(92, 73, 163, 0.28);
    background: linear-gradient(135deg, rgba(243, 237, 255, 0.98), rgba(233, 241, 255, 0.98));
}

.ad-cooldown-footer-offer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(92, 73, 163, 0.16);
    color: #5d3ea8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ad-cooldown-footer-offer__title {
    color: #382a6b;
    font-size: 14px;
}

.ad-cooldown-footer-offer__desc {
    color: #514b68;
    font-size: 12px;
    text-align: center;
    line-height: 1.35;
}

.ad-cooldown-footer-offer__cta {
    color: #5d3ea8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ad-cooldown-card__image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(98, 114, 195, 0.25);
    margin-bottom: 6px;
    object-fit: cover;
}

.ad-cooldown-card:hover {
    transform: translateY(-1px);
    border-color: rgba(98, 114, 195, 0.6);
    box-shadow: 0 6px 16px rgba(32, 46, 95, 0.18);
}

.ad-cooldown-card__title {
    color: #2c2f6c;
    font-size: 14px;
}

.ad-cooldown-card__desc {
    color: #4d5164;
    font-size: 13px;
    line-height: 1.4;
}

.ad-cooldown-card__cta {
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Textarea */
.bulk-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', system-ui, sans-serif;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.bulk-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.bulk-textarea::placeholder {
    color: #999;
    line-height: 1.6;
}

.modal-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(45deg, #fff7e6, #fff0d1);
    border-left: 4px solid #ffa500;
    border-radius: 8px;
}

.modal-info small {
    color: #666;
    font-size: 13px;
    display: block;
    line-height: 1.5;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #fafafa;
    border-radius: 0 0 20px 20px;
}

.modal-footer:has(+ .modal-pro-notice:not([hidden])) {
    border-radius: 0;
}

.modal-pro-notice {
    margin: 0;
    padding: 14px 30px 20px;
    position: relative;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.modal-pro-notice-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.modal-pro-notice-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #222;
}

.modal-pro-notice-close:focus-visible {
    outline: 2px solid rgba(52, 152, 219, 0.7);
    outline-offset: 1px;
}

.modal-pro-notice[hidden] {
    display: none !important;
}

.modal-pro-notice-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #444;
    max-width: 100%;
}

.modal-pro-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background: linear-gradient(45deg, #25d366, #128c7e);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-pro-cta-sub {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.modal-pro-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.modal-pro-cta:active {
    transform: translateY(0);
}

.pro-know-btn {
    display: block;
    width: 100%;
    margin-top: 0;
    text-align: center;
    margin-top: 12px;
}

.pro-cta-section {
    margin-top: auto;
    padding-top: 10px;
    text-align: center;
    padding: 14px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.22);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow: 0 8px 18px rgba(60, 70, 120, 0.12);
}

.pro-cta-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
}

.pro-cta-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #444;
    justify-items: center;
}

.pro-cta-list li::before {
    content: "✓";
    color: #44a08d;
    font-weight: 800;
    display: inline-block;
    width: 18px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #e0e0e0;
    color: #666;
}

.cancel-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.import-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.import-btn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.import-btn:active,
.cancel-btn:active {
    transform: translateY(0);
}

.duplicate-check-btn {
    background: rgba(155, 89, 182, 0.3);
    color: #333;
    border: 1px solid rgba(155, 89, 182, 0.55);
    box-shadow: 0 1px 4px rgba(142, 68, 173, 0.15);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.duplicate-check-btn:hover {
    background: rgba(155, 89, 182, 0.4);
    color: #222;
    border-color: rgba(142, 68, 173, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(142, 68, 173, 0.22);
}

.duplicate-check-btn:active {
    transform: translateY(0);
    background: rgba(155, 89, 182, 0.34);
}

/* Modal: pré-visualização do resultado compartilhável */
.modal.share-result-modal {
    z-index: 1001;
}

.share-result-modal .modal-content {
    max-width: min(440px, 96vw);
    max-height: none;
    overflow: hidden;
}

.share-result-modal .modal-header {
    padding: 16px 18px;
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 50%, #0f766e 100%);
    border-radius: 20px 20px 0 0;
}

.share-result-modal .modal-header h3 {
    font-size: 18px;
}

.share-result-modal__body {
    padding: 16px 18px 20px;
    background: #fafafa;
}

.share-result-modal__preview-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.12);
}

.share-result-modal__img {
    width: 100%;
    height: auto;
    display: block;
}

.share-result-modal__img.share-result-modal__img--blur {
    filter: blur(3.8px);
    transform: scale(1.03);
}

.share-result-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

.share-result-modal__download {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    background: linear-gradient(45deg, #14b8a6, #0d9488);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-result-modal__download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
}

.share-result-modal__close-secondary {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.share-result-modal__close-secondary:hover {
    background: #cbd5e1;
}

.share-result-modal__pro-tip {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    font-size: 13px;
    color: #475569;
    text-align: center;
    line-height: 1.45;
}

.share-result-modal__pro-tip p {
    margin: 0 0 8px;
}

.share-result-modal__pro-link {
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
}

.share-result-modal__pro-link:hover {
    text-decoration: underline;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }

    .modal-content {
        max-height: 85vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .modal-body {
        padding: 20px;
    }

    .bulk-textarea {
        min-height: 150px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .modal-pro-notice {
        padding: 12px 20px 16px;
        gap: 12px;
    }

    .modal-pro-notice-text {
        font-size: 13px;
    }

    .modal-pro-cta {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        padding: 14px 20px;
    }

    .modal-btn {
        width: 100%;
        padding: 14px;
    }

    .modal-tips {
        padding: 12px 15px;
    }

    .modal-tips li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-description {
        font-size: 14px;
    }

    .bulk-textarea {
        min-height: 120px;
        padding: 12px;
    }

    .modal-info small {
        font-size: 12px;
    }
}

/* Modal de login PRO (/pro/) — visível antes do JS; só some após login válido */
body.pro-login-waiting:not(.pro-login-unlocked) {
    overflow: hidden;
}

body.pro-login-waiting:not(.pro-login-unlocked) #proLoginModal:not(.pro-login-modal--dismissed) {
    display: flex !important;
}

/* Fecha por cima de qualquer outra regra (login OK) */
#proLoginModal.pro-login-modal--dismissed {
    display: none !important;
}

.pro-login-modal {
    z-index: 2000;
}

.pro-login-modal-content {
    max-width: 420px;
}

.pro-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pro-login-field label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.pro-login-input {
    width: 100%;
}

.pro-login-error {
    color: #c0392b;
    font-size: 14px;
    margin: 0;
}

.pro-login-submit {
    width: 100%;
    margin-top: 4px;
}

.pro-login-back {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Chuva intensa de confete no resultado */
.confetti-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 9999;
}

.confetti-layer--fullscreen {
    position: absolute;
}

.confetti-piece {
    position: absolute;
    bottom: -14px;
    left: var(--x);
    width: var(--size);
    height: calc(var(--size) * 1.7);
    opacity: 0.96;
    border-radius: 2px;
    transform: translate3d(0, 0, 0) rotate(0deg);
    animation: confetti-shoot var(--duration) cubic-bezier(0.14, 0.8, 0.24, 1) var(--delay) forwards;
    will-change: transform, opacity;
}

.confetti-piece--left {
    transform-origin: left bottom;
}

.confetti-piece--right {
    transform-origin: right bottom;
}

@keyframes confetti-shoot {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.98;
    }
    30% {
        transform: translate3d(calc(var(--xTravel) * 0.42), calc(var(--yTravel) * 0.42), 0) rotate(calc(var(--rotate) * 0.35));
        opacity: 1;
    }
    70% {
        transform: translate3d(calc(var(--xTravel) * 0.85), calc(var(--yTravel) * 0.85), 0) rotate(calc(var(--rotate) * 0.8));
        opacity: 0.92;
    }
    100% {
        transform: translate3d(var(--xTravel), var(--yTravel), 0) rotate(var(--rotate));
        opacity: 0;
    }
}

/* Mobile view toggle: keep selector at top */
@media (max-width: 768px) {
    main.container {
        gap: 8px !important;
        grid-template-areas:
            "mobile-toggle"
            "wheel"
            "controls" !important;
    }

    body {
        padding: 12px !important;
        overflow-x: hidden;
    }

    main.container > .mobile-view-toggle {
        display: flex !important;
        grid-area: mobile-toggle !important;
        background: transparent !important;
        margin: 0 0 4px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .left-section {
        gap: 20px !important;
    }

    .wheel-container,
    .history-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px 14px !important;
        box-sizing: border-box;
    }

    .wheel-wrapper {
        width: min(100%, 390px) !important;
        max-width: 100% !important;
    }
}

.history-section--in-wheel-fullscreen {
    width: min(960px, 100%);
    margin-top: 14px;
}

.wheel-container:fullscreen .history-section--in-wheel-fullscreen,
.wheel-container:-webkit-full-screen .history-section--in-wheel-fullscreen {
    max-height: min(38vh, 360px);
    overflow: auto;
}

.wheel-container:fullscreen.wheel-container--history-fullscreen-layout .history-section--in-wheel-fullscreen,
.wheel-container:-webkit-full-screen.wheel-container--history-fullscreen-layout .history-section--in-wheel-fullscreen {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: min(360px, 32vw);
    max-height: calc(100vh - 56px);
    margin: 0;
    z-index: 12;
}

@media (max-width: 1200px) {
    .wheel-container:fullscreen.wheel-container--history-fullscreen-layout .history-section--in-wheel-fullscreen,
    .wheel-container:-webkit-full-screen.wheel-container--history-fullscreen-layout .history-section--in-wheel-fullscreen {
        top: 24px;
        right: 16px;
        transform: none;
        width: min(320px, 42vw);
        max-height: min(44vh, 360px);
    }
}