/* ==========================================================================
   HOMEPAGE LAYOUT - Ad Placeholders & Sidebars
   ========================================================================== */

/* Main Layout Container */
.main {
    display: flex;
    /* min-height: 100vh; */
    justify-content: space-between;
    align-items: stretch;
}

/* Remove padding-top on mobile - nav is compact */
@media (max-width: 1023px) {
    .main {
        padding-top: 0;
        min-height: 100vh;
    }
}

/* ==========================================================================
   SIDEBARS
   ========================================================================== */

.sidebar {
    width: 270px;
    flex-shrink: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.sidebar-left {
    padding-left: 15px;
}

.sidebar-right {
    padding-right: 15px;
}

/* ==========================================================================
   SIDEBAR CARD
   ========================================================================== */

.sidebar-card {
    background: #0e0e19;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-card__section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.sidebar-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-card__content {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Light mode sidebar card styles */
body:not(.dark-mode) .sidebar-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .sidebar-card__section {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .sidebar-card__title {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .sidebar-card__content {
    color: #666;
}

/* ==========================================================================
   CONTENT AREA (Center section)
   ========================================================================== */

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    /* max-width: 970px; */
    margin: 0 auto;
}

/* ==========================================================================
   HORIZONTAL ADS (Green rectangles - top & bottom)
   ========================================================================== */

.ad-hor {
    width: 100%;
    height: 90px;
    background: rgba(76, 175, 80, 0.1);
    border: 2px dashed #4CAF50;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-hor::after {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wheel-top {
    margin-bottom: 20px;
}

.wheel-top::after {
    content: 'Leaderboard Ad (728x90)';
}

.wheel-bottom {
    margin-top: 20px;
}

.wheel-bottom::after {
    content: 'Bottom Ad (728x90)';
}

/* ==========================================================================
   WHEEL SECTION (Middle row with vertical ads)
   ========================================================================== */

.wheel {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    /* flex: 1; */
}

/* ==========================================================================
   VERTICAL ADS (Green rectangles - left & right of wheel)
   ========================================================================== */

.ad-ver {
    width: 120px;
    min-height: 400px;
    background: rgba(76, 175, 80, 0.1);
    border: 2px dashed #4CAF50;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.ad-ver::after {
    font-size: 12px;
    font-weight: 600;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.wheel-left::after {
    content: 'Skyscraper Ad (120x600)';
}

.wheel-right::after {
    content: 'Skyscraper Ad (120x600)';
}

/* ==========================================================================
   WHEEL CONTAINER (Center - NOT an ad)
   ========================================================================== */

.wheel-container {
    flex: 1;
    max-width: 500px;
    min-height: 400px;
    aspect-ratio: 1;
    background: rgba(76, 175, 80, 0.05);
    border: 2px solid #4CAF50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.wheel-container::after {
    content: 'Wheel Component';
    font-size: 18px;
    font-weight: 600;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Large Desktop - Narrow sidebars */
@media (max-width: 1400px) {
    .sidebar {
        width: 240px;
    }

    .content {
        max-width: 800px;
    }
}

/* Desktop - Hide sidebars below 1200px */
@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }

    .main {
        justify-content: center;
    }

    .content {
        max-width: 900px;
    }

    .ad-ver {
        width: 100px;
    }

    .ad-ver::after {
        font-size: 10px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .content {
        padding: 15px;
        max-width: 100%;
    }

    /* Hide leaderboard and bottom ads */
    .ad-hor {
        display: none;
    }

    .wheel {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .ad-ver {
        width: 100%;
        max-width: 728px;
        min-height: 100px;
        height: 100px;
    }

    .ad-ver::after {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 12px;
    }

    .wheel-left {
        order: -1;
    }

    .wheel-left::after {
        content: 'Large Mobile Banner (320x100)';
    }

    .wheel-right::after {
        content: 'Large Mobile Banner (320x100)';
    }

    .wheel-container {
        max-width: 100%;
        width: 100%;
        min-height: 350px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .content {
        padding: 12px;
    }

    .wheel {
        gap: 12px;
    }

    /* Hide horizontal ads on mobile */
    .ad-hor {
        display: none;
    }

    .ad-ver {
        height: 80px;
        min-height: 80px;
    }

    .ad-ver::after {
        font-size: 11px;
    }

    .wheel-left::after {
        content: 'Mobile Ad (300x50)';
    }

    .wheel-right::after {
        content: 'Mobile Ad (300x50)';
    }

    .wheel-container {
        min-height: 300px;
    }

    .wheel-container::after {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    .content {
        padding: 10px;
    }

    .wheel {
        gap: 10px;
    }

    .ad-ver {
        height: 60px;
        min-height: 60px;
    }

    .ad-ver::after {
        font-size: 9px;
    }

    .wheel-left::after {
        content: 'Inline Ad (300x50)';
    }

    .wheel-right::after {
        content: 'Inline Ad (300x50)';
    }

    .wheel-container {
        min-height: 280px;
    }

    .wheel-container::after {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .content {
        padding: 8px;
    }

    .wheel {
        gap: 8px;
    }

    .ad-ver::after {
        font-size: 8px;
    }

    .wheel-left::after {
        content: 'Ad (300x50)';
    }

    .wheel-right::after {
        content: 'Ad (300x50)';
    }

    .wheel-container {
        min-height: 250px;
    }

    .wheel-container::after {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .main {
        min-height: auto;
    }

    .ad-ver {
        display: none;
    }

    .wheel-container {
        min-height: 200px;
        max-height: calc(100vh - 200px);
    }
}

/* ==========================================================================
   WHEEL CENTER COMPONENT
   ========================================================================== */

.wheel-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.wheel-title {
    text-align: center;
    margin-bottom: 24px;
}

.wheel-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.wheel-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
}

body:not(.dark-mode) .wheel-title p {
    color: #666;
}

/* Wheel Structure */
.wheel-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
}

.canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

#wheelCanvas {
    display: block;
    background: transparent !important;
}

/* Wheel Pointer */
.wheel-pointer {
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 28px solid #040405;
    z-index: 15;
    filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.2));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -26px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 22px solid #ffbe4d;
}

/* Spin Button */
.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: #040405;
    border-radius: 50%;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(4, 4, 5, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

.spin-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 30px rgba(4, 4, 5, 0.5);
}

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

.spin-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.spin-text {
    font-size: 13px;
    letter-spacing: 3px;
}

/* Wheel Actions (Control Buttons) */
.wheel-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

.control-btn {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .control-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.control-btn:hover {
    background: #ffbe4d;
    color: #040405;
    border-color: #ffbe4d;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 184, 76, 0.3);
}

/* Control Button Tooltip */
.control-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .control-btn::after {
    background: #ffffff;
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
}

.control-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* ==========================================================================
   FULLSCREEN MODE
   ========================================================================== */

/* Body when fullscreen is active */
body.wheel-fullscreen-active {
    overflow: hidden;
}

/* Wheel center in fullscreen mode */
.wheel-center.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #0a0a0b;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body:not(.dark-mode) .wheel-center.fullscreen-mode {
    background: #f5f5f5;
}

/* Wheel wrapper sizing in fullscreen - proportional to viewport */
.wheel-center.fullscreen-mode .wheel-wrapper {
    width: min(80vw, 80vh);
    height: min(80vw, 80vh);
    max-width: 800px;
    max-height: 800px;
}

/* Hide title in fullscreen for more space */
.wheel-center.fullscreen-mode .wheel-title {
    display: none;
}

/* Adjust actions positioning in fullscreen */
.wheel-center.fullscreen-mode .wheel-actions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

/* Responsive fullscreen adjustments */
@media (max-width: 768px) {
    .wheel-center.fullscreen-mode .wheel-wrapper {
        width: min(90vw, 85vh);
        height: min(90vw, 85vh);
    }

    .wheel-center.fullscreen-mode .wheel-actions {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .wheel-center.fullscreen-mode {
        padding: 15px;
    }

    .wheel-center.fullscreen-mode .wheel-wrapper {
        width: min(95vw, 80vh);
        height: min(95vw, 80vh);
    }

    .wheel-center.fullscreen-mode .wheel-actions {
        bottom: 15px;
    }
}

/* Landscape orientation in fullscreen */
@media (max-height: 500px) and (orientation: landscape) {
    .wheel-center.fullscreen-mode .wheel-wrapper {
        width: min(70vw, 75vh);
        height: min(70vw, 75vh);
    }

    .wheel-center.fullscreen-mode .wheel-actions {
        bottom: 10px;
    }
}

/* ==========================================================================
   SIDEBAR SECTIONS
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark-mode) .section-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

body:not(.dark-mode) .section-icon {
    color: #666;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-count {
    background: #ffbe4d;
    color: #040405;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Results Section */
.results-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.results-list::-webkit-scrollbar {
    width: 4px;
}

.results-list::-webkit-scrollbar-thumb {
    background: #ffbe4d;
    border-radius: 2px;
}

.no-results {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
    padding: 30px 20px;
    font-style: italic;
    margin: 0;
}

body:not(.dark-mode) .no-results {
    color: #888;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #2a2a2b;
    border-radius: 12px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

body:not(.dark-mode) .result-item {
    background: #f0f0f0;
}

.result-item:hover {
    background: rgba(255, 184, 76, 0.1);
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-item .result-number {
    background: #ffbe4d;
    color: #040405;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.result-item .result-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-item .result-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

body:not(.dark-mode) .result-item .result-time {
    color: #888;
}

.btn-clear {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

body:not(.dark-mode) .btn-clear {
    border-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

.btn-clear:hover {
    background: rgba(255, 184, 76, 0.1);
    border-color: #ffbe4d;
    color: #ffbe4d;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 16px 12px;
    background: #2a2a2b;
    border-radius: 12px;
    transition: all 0.3s ease;
}

body:not(.dark-mode) .stat-item {
    background: #f0f0f0;
}

.stat-item:hover {
    background: rgba(255, 184, 76, 0.1);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ffbe4d;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

body:not(.dark-mode) .stat-label {
    color: #888;
}

/* Entries Section */
.entries-section textarea {
    width: 100%;
    height: 180px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #2a2a2b;
    color: #fff;
    line-height: 1.6;
    box-sizing: border-box;
}

body:not(.dark-mode) .entries-section textarea {
    background: #f0f0f0;
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
}

.entries-section textarea::-webkit-scrollbar {
    width: 8px;
}

.entries-section textarea::-webkit-scrollbar-track {
    background: #2a2a2b;
    border-radius: 4px;
}

.entries-section textarea::-webkit-scrollbar-thumb {
    background: #ffbe4d;
    border-radius: 4px;
}

.entries-section textarea:focus {
    outline: none;
    border-color: #ffbe4d;
    box-shadow: 0 0 0 3px rgba(255, 184, 76, 0.15);
}

/* Settings Section */
.settings-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Duration Row */
.duration-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.duration-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2a2a2b;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    grid-row: span 2;
}

body:not(.dark-mode) .duration-display {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
}

.duration-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.duration-unit {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 4px;
}

body:not(.dark-mode) .duration-unit {
    color: #888;
}

/* Duration Controls */
.duration-controls {
    display: contents;
}

.duration-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
}

body:not(.dark-mode) .duration-btn {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.duration-btn:hover {
    background: #ffbe4d;
    border-color: #ffbe4d;
    color: #040405;
}

.duration-btn:active {
    transform: scale(0.97);
}

/* Toggles Row */
.toggles-row {
    display: flex;
    gap: 12px;
}

/* Toggle Items */
.setting-toggle-item {
    flex: 1;
    background: #2a2a2b;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body:not(.dark-mode) .setting-toggle-item {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
}

.setting-toggle-item:hover {
    border-color: #ffbe4d;
    background: rgba(255, 190, 77, 0.1);
}

body:not(.dark-mode) .setting-toggle-item:hover {
    border-color: #ffbe4d;
    background: rgba(255, 190, 77, 0.1);
}

.setting-toggle-item.active {
    border-color: #ffbe4d;
    background: rgba(255, 190, 77, 0.1);
}

.setting-toggle-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1b;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

body:not(.dark-mode) .setting-toggle-icon {
    background: #e0e0e0;
    color: #888;
}

.setting-toggle-item:hover .setting-toggle-icon,
.setting-toggle-item.active .setting-toggle-icon {
    background: linear-gradient(135deg, #ffbe4d 0%, #ffa726 100%);
    color: #040405;
    box-shadow: 0 4px 12px rgba(255, 190, 77, 0.3);
}

body:not(.dark-mode) .setting-toggle-item:hover .setting-toggle-icon {
    background: linear-gradient(135deg, #ffbe4d 0%, #ffa726 100%);
    color: #040405;
    box-shadow: 0 4px 12px rgba(255, 190, 77, 0.3);
}

.setting-toggle-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

body:not(.dark-mode) .setting-toggle-label {
    color: #888;
}

.setting-toggle-item:hover .setting-toggle-label,
.setting-toggle-item.active .setting-toggle-label {
    color: #ffbe4d;
}

body:not(.dark-mode) .setting-toggle-item:hover .setting-toggle-label {
    color: #ffbe4d;
}

/* ==========================================================================
   RESULT MODAL
   ========================================================================== */

.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.result-modal.show {
    display: flex;
}

.result-content {
    background: #1a1a1b;
    padding: 50px 60px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #ffbe4d;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
}

body:not(.dark-mode) .result-content {
    background: #ffffff;
}

@keyframes modalPop {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.result-decoration {
    margin-bottom: 16px;
    animation: bounce 0.6s ease infinite alternate;
    color: #ffbe4d;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

.result-content h2 {
    font-size: 38px;
    margin: 0 0 8px 0;
    color: #ffbe4d;
}

.result-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0 0 28px 0;
}

body:not(.dark-mode) .result-subtitle {
    color: #666;
}

.btn-primary {
    padding: 14px 36px;
    background: #ffbe4d;
    color: #040405;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 76, 0.35);
}

/* ==========================================================================
   DARK MODE STYLES
   ========================================================================== */

body.dark-mode .sidebar {
    /* background: rgba(255, 255, 255, 0.03); */
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .sidebar::after {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .ad-hor,
body.dark-mode .ad-ver {
    /* background: rgba(76, 175, 80, 0.08); */
    border-color: rgba(76, 175, 80, 0.5);
}

body.dark-mode .ad-hor::after,
body.dark-mode .ad-ver::after {
    color: rgba(76, 175, 80, 0.7);
}

body.dark-mode .wheel-container {
    /* background: rgba(76, 175, 80, 0.05); */
    border-color: rgba(76, 175, 80, 0.6);
}

body.dark-mode .wheel-container::after {
    color: rgba(76, 175, 80, 0.8);
}

/* ==========================================================================
   RESPONSIVE - WHEEL COMPONENT
   ========================================================================== */

@media (max-width: 1400px) {
    .wheel-wrapper {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 1200px) {
    .wheel-wrapper {
        width: 340px;
        height: 340px;
    }

    .spin-button {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 992px) {
    .wheel-center {
        padding: 15px;
    }

    .wheel-title {
        margin-bottom: 20px;
    }

    .wheel-title h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }

    .wheel-title h1 {
        font-size: 22px;
    }

    .spin-button {
        width: 75px;
        height: 75px;
    }

    .wheel-actions {
        margin-top: 24px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .wheel-wrapper {
        width: 280px;
        height: 280px;
    }

    .wheel-title h1 {
        font-size: 20px;
    }

    .spin-button {
        width: 70px;
        height: 70px;
        font-size: 11px;
    }

    .wheel-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .result-content {
        padding: 36px 28px;
    }

    .result-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .wheel-wrapper {
        width: 250px;
        height: 250px;
    }

    .spin-button {
        width: 65px;
        height: 65px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }
}