/* ============================================
   MARNYL - Studio Page (Personal Dashboard)
   Black Sidebar + Pink Content
   ============================================ */

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

/* ============================================
   CUSTOM SCROLLBAR (MARNYL STYLE)
   ============================================ */

/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
    border: 3px solid #ff69b4;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
    border: 2px solid #000;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff69b4 #000;
}

.marnyl-studio-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #000;
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: 100vh;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.marnyl-studio-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ============================================
   LEFT SIDEBAR (BLACK)
   ============================================ */

.marnyl-studio-sidebar {
    width: 280px;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 20px 30px 20px;
}

/* Logo */
.marnyl-studio-logo {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
}

.marnyl-studio-logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: #ff69b4;
    letter-spacing: 3px;
}

/* Navigation */
.marnyl-studio-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0 10px 0;
}

.marnyl-studio-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: transparent;
    border: 3px solid transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.marnyl-studio-nav-item:hover {
    background: #ff69b4;
    color: #000;
    border: 3px solid #000;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #fff;
}

.marnyl-studio-nav-item.active {
    background: #ff69b4;
    color: #000;
    border: 3px solid #000;
}

.marnyl-studio-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.marnyl-studio-nav-icon svg {
    width: 100%;
    height: 100%;
}

.marnyl-studio-nav-text {
    flex: 1;
}

/* Play Game Button */
.marnyl-studio-play-btn-wrapper {
    margin-top: 20px;
}

.marnyl-studio-play-btn {
    display: block;
    text-decoration: none;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.marnyl-studio-play-btn-text {
    display: block;
    padding: 18px 25px;
    background: #ff69b4;
    border: 5px solid #000;
    color: #000;
    font-size: 1.3rem;
    font-weight: 900;
    text-align: center;
    transition: all 0.15s ease;
    letter-spacing: 2px;
}

.marnyl-studio-play-btn:hover .marnyl-studio-play-btn-text {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #fff;
}

.marnyl-studio-play-btn:active .marnyl-studio-play-btn-text {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* ============================================
   RIGHT CONTENT AREA (PINK)
   ============================================ */

.marnyl-studio-content {
    flex: 1;
    background: #ff69b4;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

.marnyl-studio-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 5px solid #000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.marnyl-studio-header-left {
    flex: 1;
}

.marnyl-studio-header-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marnyl-studio-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.marnyl-studio-header-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 45px;
    background: #fff;
    border: 3px solid #000;
    transition: all 0.2s ease;
    cursor: pointer;
}

.marnyl-studio-header-balance:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 #000;
}

.marnyl-studio-header-balance-icon {
    stroke: #ff69b4;
    margin-left: 5px;
}

.marnyl-studio-header-balance-amount {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ff69b4;
    letter-spacing: 1px;
}

.marnyl-studio-header-balance-currency {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.marnyl-studio-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marnyl-studio-header-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #000;
    object-fit: cover;
}

.marnyl-studio-header-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.marnyl-studio-header-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
}

.marnyl-studio-header-email {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
}

.marnyl-studio-header-btn {
    width: 45px;
    height: 45px;
    background: #ff69b4;
    border: 3px solid #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.marnyl-studio-header-btn svg {
    stroke: #000;
}

.marnyl-studio-header-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 #000;
}

.marnyl-studio-header-btn:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

/* Content wrapper with padding */
.marnyl-studio-content > div {
    padding: 40px;
}

/* Tab System */
.marnyl-studio-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.marnyl-studio-tab.active {
    display: block;
}

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

.marnyl-studio-tab-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #000;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 5px solid #000;
    padding-bottom: 15px;
}

/* ============================================
   DASHBOARD TAB
   ============================================ */

.marnyl-studio-welcome {
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid #000;
    padding: 40px;
    margin-bottom: 30px;
}

.marnyl-studio-welcome h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.marnyl-studio-welcome p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
}

/* Stats Grid */
.marnyl-studio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.marnyl-studio-stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid #000;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.marnyl-studio-stat-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #000;
}

.marnyl-studio-stat-icon {
    font-size: 3rem;
}

.marnyl-studio-stat-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.marnyl-studio-stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
}

/* ============================================
   PROFILE TAB
   ============================================ */

.marnyl-studio-profile-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.marnyl-studio-profile-card {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #000;
    padding: 30px;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-studio-profile-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff69b4;
}

/* Avatar Section */
.marnyl-studio-profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.marnyl-studio-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #000;
    object-fit: cover;
}

.marnyl-studio-profile-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.marnyl-studio-profile-dropzone {
    flex: 1;
    min-width: 160px;
    min-height: 140px;
    border: 3px dashed #000;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 15px;
}

.marnyl-studio-profile-dropzone svg {
    color: #000;
}

.marnyl-studio-profile-dropzone .dropzone-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

.marnyl-studio-profile-dropzone .dropzone-hint {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    margin: 0;
}

.marnyl-studio-profile-dropzone:hover {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.1);
    transform: scale(1.02);
}

.marnyl-studio-profile-dropzone.dragging {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.3);
    transform: scale(1.05);
}

.marnyl-studio-profile-dropzone.dragging svg {
    color: #ff69b4;
    animation: bounce 0.5s ease infinite;
}

.marnyl-studio-profile-dropzone.dragging .dropzone-title {
    color: #ff69b4;
}

.marnyl-studio-profile-dropzone.dragging .dropzone-hint {
    color: #ff69b4;
}

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

.marnyl-studio-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: #ff69b4;
    border: 3px solid #000;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.marnyl-studio-profile-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-studio-profile-btn:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.marnyl-studio-profile-btn.secondary {
    background: #fff;
}

.marnyl-studio-profile-btn.save {
    background: #ff69b4;
    width: 100%;
    margin-top: 10px;
}

/* Profile Form */
.marnyl-studio-profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marnyl-studio-profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.marnyl-studio-profile-field label {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.marnyl-studio-profile-field input,
.marnyl-studio-profile-field textarea {
    padding: 12px 15px;
    background: #fff;
    border: 3px solid #000;
    font-family: inherit;
    font-size: 1rem;
    color: #000;
    transition: all 0.2s ease;
}

.marnyl-studio-profile-field input:focus,
.marnyl-studio-profile-field textarea:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.marnyl-studio-profile-field input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
}

.marnyl-studio-profile-field textarea {
    resize: vertical;
    min-height: 100px;
}

.marnyl-studio-profile-field small {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* Account Stats */
.marnyl-studio-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.marnyl-studio-profile-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 105, 180, 0.1);
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-studio-profile-stat .label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.marnyl-studio-profile-stat .value {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.marnyl-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.marnyl-toast {
    background: #fff;
    border: 5px solid #000;
    padding: 20px 25px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: toastSlideIn 0.3s ease;
    pointer-events: all;
    box-shadow: 8px 8px 0 #000;
}

.marnyl-toast.success {
    background: #fff;
    border-color: #000;
}

.marnyl-toast.error {
    background: #fff;
    border-color: #000;
}

.marnyl-toast.info {
    background: #fff;
    border-color: #000;
}

.marnyl-toast-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: #000;
}

.marnyl-toast-content {
    flex: 1;
}

.marnyl-toast-title {
    font-size: 1rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.marnyl-toast-message {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.marnyl-toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.marnyl-toast-close:hover {
    transform: scale(1.2);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.marnyl-toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(500px);
        opacity: 0;
    }
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.marnyl-mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    background: #ff69b4;
    border: 3px solid #000;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
}

.marnyl-mobile-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    transition: all 0.3s ease;
}

.marnyl-mobile-hamburger:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

/* Hamburger animation when menu is open */
.marnyl-mobile-hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.marnyl-mobile-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.marnyl-mobile-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Backdrop */
.marnyl-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marnyl-mobile-backdrop.active {
    display: block;
    opacity: 1;
}

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

@media (max-width: 1024px) {
    .marnyl-studio-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    /* Show hamburger button */
    .marnyl-mobile-hamburger {
        display: flex;
    }

    /* Hide sidebar by default on mobile */
    .marnyl-studio-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 20px;
    }

    /* Show sidebar when menu is open */
    .marnyl-studio-sidebar.mobile-open {
        left: 0;
        box-shadow: 8px 0 15px rgba(0, 0, 0, 0.5);
    }

    /* Header adjustments for mobile */
    .marnyl-studio-header {
        padding: 15px 20px;
    }

    .marnyl-studio-header-title {
        font-size: 1.3rem;
    }

    /* Hide user info text on very small screens, keep avatar */
    .marnyl-studio-header-user-info {
        display: none;
    }

    /* Hide balance on small screens */
    .marnyl-studio-header-balance {
        display: none;
    }

    /* Reduce padding on mobile */
    .marnyl-studio-content > div {
        padding: 20px;
    }

    /* Dashboard stats - 2 columns on tablet, 1 on mobile */
    .marnyl-studio-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Profile avatar section - stack vertically */
    .marnyl-studio-profile-avatar-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .marnyl-studio-profile-dropzone {
        width: 100%;
    }

    /* Profile stats - single column */
    .marnyl-studio-profile-stats {
        grid-template-columns: 1fr;
    }

    /* Toast notifications - smaller on mobile */
    .marnyl-toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .marnyl-toast {
        min-width: auto;
        max-width: 100%;
    }

    /* Leaderboard responsive */
    .marnyl-leaderboard-time-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .marnyl-time-filter-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .marnyl-leaderboard-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .marnyl-leaderboard-tab {
        justify-content: center;
        padding: 10px;
        font-size: 0.8rem;
    }

    .marnyl-leaderboard-table-container {
        overflow-x: auto;
    }

    .marnyl-leaderboard-table th,
    .marnyl-leaderboard-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .marnyl-leaderboard-table .player-avatar {
        width: 30px;
        height: 30px;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
    .marnyl-studio-header-title {
        font-size: 1rem;
    }

    .marnyl-studio-tab-title {
        font-size: 1.5rem;
    }

    /* Dashboard stats - single column */
    .marnyl-studio-stats-grid {
        grid-template-columns: 1fr;
    }

    .marnyl-studio-stat-card {
        padding: 20px;
    }

    .marnyl-studio-stat-icon {
        font-size: 2rem;
    }

    .marnyl-studio-stat-value {
        font-size: 1.5rem;
    }

    /* Welcome section */
    .marnyl-studio-welcome {
        padding: 25px;
    }

    .marnyl-studio-welcome h1 {
        font-size: 1.5rem;
    }

    .marnyl-studio-welcome p {
        font-size: 1rem;
    }
}

/* ============================================
   LEADERBOARD TAB
   ============================================ */

.marnyl-leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Time Filter Buttons */
.marnyl-leaderboard-time-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.marnyl-time-filter-btn {
    padding: 12px 25px;
    background: #fff;
    border: 3px solid #000;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.marnyl-time-filter-btn:hover {
    background: #ff69b4;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-time-filter-btn.active {
    background: #ff69b4;
    border-color: #000;
}

/* Leaderboard Type Tabs */
.marnyl-leaderboard-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.marnyl-leaderboard-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 3px solid #000;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marnyl-leaderboard-tab .tab-icon {
    display: flex;
    align-items: center;
    color: #000;
}

.marnyl-leaderboard-tab:hover {
    background: rgba(255, 105, 180, 0.3);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-leaderboard-tab.active {
    background: #ff69b4;
    border-color: #000;
}

/* Loading State */
.marnyl-leaderboard-loading {
    background: transparent;
    border: none;
    padding: 60px 20px;
    text-align: center;
}

.marnyl-leaderboard-loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #000;
    border-top-color: #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.marnyl-leaderboard-loading p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

/* Leaderboard Table Container - EXACT COPY FROM DASHBOARD */
.marnyl-leaderboard-table-container {
    background: transparent;
    border: none;
    padding: 0;
    overflow-x: auto;
}

.marnyl-leaderboard-header {
    display: none;
}

/* Leaderboard Table - EXACT COPY FROM DASHBOARD */
.marnyl-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 3px solid #000;
}

.marnyl-leaderboard-table thead {
    background: #fff;
    border-bottom: 3px solid #000;
}

.marnyl-leaderboard-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marnyl-leaderboard-table tbody tr {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.marnyl-leaderboard-table tbody tr:last-child {
    border-bottom: none;
}

.marnyl-leaderboard-table tbody tr:hover {
    background: rgba(255, 105, 180, 0.05);
}

.marnyl-leaderboard-table tbody td {
    padding: 15px 20px;
    color: #000;
    font-weight: 600;
}

/* Custom styles for leaderboard specific columns */
.marnyl-leaderboard-table th.rank-col {
    width: 80px;
    text-align: center;
}

.marnyl-leaderboard-table th.player-col {
    width: auto;
}

.marnyl-leaderboard-table th.value-col {
    width: 150px;
    text-align: right;
}

.marnyl-leaderboard-table th.date-col {
    width: 150px;
    text-align: right;
}

.marnyl-leaderboard-table td.rank-col {
    text-align: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.marnyl-leaderboard-table td.rank-col.top-1 {
    color: #FFD700;
    font-size: 1.3rem;
}

.marnyl-leaderboard-table td.rank-col.top-2 {
    color: #C0C0C0;
    font-size: 1.2rem;
}

.marnyl-leaderboard-table td.rank-col.top-3 {
    color: #CD7F32;
    font-size: 1.2rem;
}

.marnyl-leaderboard-table td.player-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marnyl-leaderboard-table .player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #000;
    object-fit: cover;
}

.marnyl-leaderboard-table .player-name {
    font-weight: 700;
    color: #000;
}

.marnyl-leaderboard-table td.value-col {
    text-align: right;
    font-weight: 900;
    font-size: 1.1rem;
    color: #ff69b4;
}

.marnyl-leaderboard-table td.date-col {
    text-align: right;
    color: #666;
    font-size: 0.85rem;
}

/* Empty State */
.marnyl-leaderboard-empty {
    display: none !important;
}

/* ============================================
   SETTINGS TAB
   ============================================ */

.marnyl-studio-settings-section {
    background: #fff;
    border: 3px solid #000;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-studio-settings-section h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.marnyl-studio-settings-section.danger {
    background: #ffe0e0;
    border-color: #000;
}

.marnyl-studio-settings-section.danger h3 {
    color: #ff0000;
}

.marnyl-studio-settings-grid {
    display: grid;
    gap: 25px;
}

.marnyl-studio-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.marnyl-studio-setting-item > label {
    font-weight: 700;
    color: #000;
    flex: 1;
    font-size: 1.1rem;
}

.marnyl-studio-setting-item button {
    min-width: 200px;
}

.marnyl-studio-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 400px;
}

.marnyl-studio-slider-container input[type="range"] {
    flex: 1;
    height: 8px;
    background: #000;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.marnyl-studio-slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: #ff69b4;
    border: 3px solid #000;
    cursor: pointer;
}

.marnyl-studio-slider-container input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #ff69b4;
    border: 3px solid #000;
    cursor: pointer;
}

.marnyl-studio-slider-container span {
    min-width: 50px;
    font-weight: 900;
    color: #000;
    text-align: right;
}

.marnyl-studio-select {
    padding: 12px 40px 12px 20px;
    border: 3px solid #000;
    background: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    min-width: 250px;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.marnyl-studio-select:hover {
    border-color: #ff69b4;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-studio-select:focus {
    outline: none;
    border-color: #ff69b4;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-studio-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.marnyl-studio-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.marnyl-studio-radio-label input[type="radio"] {
    width: 25px;
    height: 25px;
    border: 3px solid #000;
    cursor: pointer;
    accent-color: #ff69b4;
}

.marnyl-studio-radio-label span {
    font-weight: 700;
    color: #000;
}

.marnyl-studio-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.marnyl-studio-checkbox-label input[type="checkbox"] {
    width: 25px;
    height: 25px;
    border: 3px solid #000;
    cursor: pointer;
    accent-color: #ff69b4;
}

.marnyl-studio-checkbox-label span {
    font-weight: 700;
    color: #000;
}

/* Settings buttons */
.marnyl-studio-btn {
    padding: 12px 25px;
    border: 3px solid #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.marnyl-studio-btn.primary {
    background: #ff69b4;
    color: #000;
}

.marnyl-studio-btn.primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-studio-btn.primary:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.marnyl-studio-btn.secondary {
    background: #fff;
    color: #000;
}

.marnyl-studio-btn.secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-studio-btn.secondary:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.marnyl-studio-btn.danger {
    background: #ff0000;
    color: #fff;
}

.marnyl-studio-btn.danger:hover {
    background: #cc0000;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-studio-btn.danger:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

@media (max-width: 768px) {
    .marnyl-studio-setting-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .marnyl-studio-slider-container,
    .marnyl-studio-select {
        width: 100%;
        max-width: 100%;
    }
}

/* Form groups for modals */
.marnyl-studio-form-group {
    margin-bottom: 20px;
}

.marnyl-studio-form-group label {
    display: block;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.marnyl-studio-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #000;
    font-size: 1rem;
    font-family: inherit;
}

.marnyl-studio-form-group input:focus {
    outline: none;
    border-color: #ff69b4;
}

/* ============================================
   PURCHASE SUCCESS POPUP
   ============================================ */

.marnyl-purchase-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.marnyl-purchase-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.marnyl-purchase-success-content {
    position: relative;
    background: #fff;
    border: 4px solid #000;
    max-width: 500px;
    width: 90%;
    box-shadow: 8px 8px 0 #000;
    animation: slideUp 0.4s ease;
}

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

.marnyl-purchase-success-header {
    background: #ff69b4;
    border-bottom: 4px solid #000;
    padding: 25px;
    text-align: center;
}

.marnyl-purchase-success-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: bounce 0.6s ease;
}

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

.marnyl-purchase-success-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.marnyl-purchase-success-body {
    padding: 30px 25px;
    text-align: center;
}

.marnyl-purchase-success-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 25px;
}

.marnyl-purchase-success-balance {
    background: #f0f0f0;
    border: 3px solid #000;
    padding: 20px;
    margin-bottom: 10px;
}

.marnyl-purchase-success-balance-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.marnyl-purchase-success-balance-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ff69b4;
    letter-spacing: 1px;
}

.marnyl-purchase-success-footer {
    padding: 0 25px 25px 25px;
}

.marnyl-purchase-success-btn {
    width: 100%;
    padding: 15px 30px;
    background: #ff69b4;
    border: 3px solid #000;
    color: #000;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marnyl-purchase-success-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 #000;
}

.marnyl-purchase-success-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 #000;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .marnyl-purchase-success-content {
        width: 95%;
        box-shadow: 5px 5px 0 #000;
    }

    .marnyl-purchase-success-header h2 {
        font-size: 1.4rem;
    }

    .marnyl-purchase-success-icon {
        font-size: 3rem;
    }

    .marnyl-purchase-success-balance-amount {
        font-size: 1.8rem;
    }

    .marnyl-purchase-success-message {
        font-size: 1rem;
    }
}

