/* ============================================================
   MyDSBowl Standalone Page Styles
   Modern, Apple-like design with generous whitespace
   ============================================================ */

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --mydsbowl-pink: #e6007e;
    --mydsbowl-orange: #ffb300;
    --mydsbowl-purple: #9521f3;
    --mydsbowl-blue: #1c33ff;
    --mydsbowl-gradient: linear-gradient(90deg, #ffb300, #e6007e, #9521f3, #1c33ff);
    --mydsbowl-dark: #1a1a1a;
    --mydsbowl-light: #f8f9fa;
    --mydsbowl-card-bg: rgba(255, 255, 255, 0.9);
    --mydsbowl-glass: rgba(255, 255, 255, 0.15);
    --mydsbowl-radius: 24px;
    --mydsbowl-radius-sm: 16px;
    --mydsbowl-radius-xs: 12px;
    --mydsbowl-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --mydsbowl-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
    --mydsbowl-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Page Base
   ============================================================ */
.page-mydsbowl {
    background-color: var(--mydsbowl-light);
    min-height: 100vh;
}

/* Gradient Text Helper */
.gradient-text {
    background: var(--mydsbowl-gradient);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.mydsbowl-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.mydsbowl-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(230, 0, 126, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(149, 33, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 179, 0, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.mydsbowl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
}

.mydsbowl-hero-kicker {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--mydsbowl-pink);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.mydsbowl-hero-title {
    font-size: clamp(48px, 12vw, 96px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.mydsbowl-hero-title .gradient-text {
    display: inline;
}

.mydsbowl-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.mydsbowl-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--mydsbowl-gradient);
    background-size: 200% 200%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--mydsbowl-transition);
    animation: gradientShift 4s ease infinite;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230, 0, 126, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--mydsbowl-transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.mydsbowl-features {
    padding: 100px 24px;
    background: #fff;
}

.mydsbowl-features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.mydsbowl-features-kicker {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--mydsbowl-pink);
    margin-bottom: 12px;
}

.mydsbowl-features-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--mydsbowl-dark);
    margin-bottom: 60px;
}

.mydsbowl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.mydsbowl-feature-card {
    background: var(--mydsbowl-light);
    border-radius: var(--mydsbowl-radius);
    padding: 48px 32px;
    text-align: center;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--mydsbowl-shadow-hover);
}

.mydsbowl-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--mydsbowl-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mydsbowl-feature-icon i {
    font-size: 32px;
    color: #fff;
}

.mydsbowl-feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--mydsbowl-dark);
    margin-bottom: 12px;
}

.mydsbowl-feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ============================================================
   MAIN SECTION (Auth / Dashboard)
   ============================================================ */
.mydsbowl-main {
    padding: 80px 24px 120px;
    min-height: 60vh;
}

/* ============================================================
   GUEST VIEW - Auth Cards
   ============================================================ */
.mydsbowl-guest-view {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mydsbowl-auth-container {
    width: 100%;
    max-width: 480px;
}

.mydsbowl-auth-card {
    background: #fff;
    border-radius: var(--mydsbowl-radius);
    padding: 48px 40px;
    box-shadow: var(--mydsbowl-shadow);
    /* Glassmorphism effect */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mydsbowl-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.mydsbowl-auth-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.mydsbowl-auth-header p {
    color: #666;
    font-size: 15px;
}

.mydsbowl-auth-tabs {
    display: flex;
    background: var(--mydsbowl-light);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--mydsbowl-transition);
}

.auth-tab.active {
    background: #fff;
    color: var(--mydsbowl-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mydsbowl-auth-form {
    display: none;
}

.mydsbowl-auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Form Groups */
.mydsbowl-form-group {
    position: relative;
    margin-bottom: 20px;
}

.mydsbowl-form-group input {
    width: 100%;
    padding: 18px 16px 8px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: var(--mydsbowl-radius-xs);
    background: #fff;
    transition: var(--mydsbowl-transition);
    outline: none;
}

.mydsbowl-form-group input:focus {
    border-color: var(--mydsbowl-pink);
}

.mydsbowl-form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: var(--mydsbowl-transition);
    background: #fff;
    padding: 0 4px;
}

.mydsbowl-form-group input:focus+label,
.mydsbowl-form-group input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    color: var(--mydsbowl-pink);
}

/* Checkbox Group */
.mydsbowl-checkbox-group {
    margin-bottom: 24px;
}

.mydsbowl-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.mydsbowl-checkbox input {
    display: none;
}

.mydsbowl-checkbox .checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-checkbox input:checked+.checkmark {
    background: var(--mydsbowl-pink);
    border-color: var(--mydsbowl-pink);
}

.mydsbowl-checkbox input:checked+.checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Submit Button */
.mydsbowl-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--mydsbowl-gradient);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--mydsbowl-radius-xs);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--mydsbowl-transition);
    animation: gradientShift 4s ease infinite;
}

.mydsbowl-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 0, 126, 0.3);
}

/* ============================================================
   USER VIEW - Dashboard
   ============================================================ */
.mydsbowl-user-view {
    max-width: 800px;
    margin: 0 auto;
}

.mydsbowl-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.mydsbowl-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mydsbowl-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--mydsbowl-pink);
}

.mydsbowl-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mydsbowl-welcome {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.mydsbowl-username {
    font-size: 24px;
    font-weight: 800;
    color: var(--mydsbowl-dark);
    margin: 0;
}

.mydsbowl-header-actions {
    display: flex;
    gap: 12px;
}

.mydsbowl-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: var(--mydsbowl-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-icon-btn i {
    font-size: 18px;
    color: #666;
}

.mydsbowl-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mydsbowl-shadow-hover);
}

.mydsbowl-icon-btn:hover i {
    color: var(--mydsbowl-pink);
}

/* Points Card */
.mydsbowl-points-card {
    background: #fff;
    border-radius: var(--mydsbowl-radius);
    padding: 32px;
    box-shadow: var(--mydsbowl-shadow);
    margin-bottom: 40px;
}

.mydsbowl-points-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.mydsbowl-points-icon i {
    font-size: 48px;
}

.mydsbowl-points-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px 0;
}

.mydsbowl-points-value {
    font-size: 42px;
    font-weight: 900;
    color: var(--mydsbowl-dark);
    margin: 0;
}

.mydsbowl-points-hint {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}

/* Milestone Bar */
.mydsbowl-milestone {
    margin-bottom: 24px;
}

.mydsbowl-milestone-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mydsbowl-milestone-fill {
    height: 100%;
    background: var(--mydsbowl-gradient);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    transition: width 0.5s ease;
}

.mydsbowl-milestone-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
}

.mydsbowl-points-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mydsbowl-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-action-btn.primary {
    background: var(--mydsbowl-gradient);
    background-size: 200% 200%;
    border: none;
    color: #fff;
    animation: gradientShift 4s ease infinite;
}

.mydsbowl-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 0, 126, 0.3);
}

.mydsbowl-action-btn.secondary {
    background: transparent;
    border: 2px solid #e5e5e5;
    color: #666;
}

.mydsbowl-action-btn.secondary:hover {
    border-color: var(--mydsbowl-pink);
    color: var(--mydsbowl-pink);
}

/* Sections */
.mydsbowl-section {
    background: #fff;
    border-radius: var(--mydsbowl-radius);
    padding: 32px;
    box-shadow: var(--mydsbowl-shadow);
    margin-bottom: 24px;
}

.mydsbowl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mydsbowl-section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--mydsbowl-dark);
    margin: 0;
}

.mydsbowl-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--mydsbowl-light);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-toggle-btn:hover {
    background: #eee;
}

.mydsbowl-toggle-btn.active {
    background: var(--mydsbowl-pink);
    color: #fff;
}

.mydsbowl-toggle-btn.active i {
    transform: rotate(180deg);
}

.mydsbowl-section-hint {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Slider */
.mydsbowl-slider-container {
    position: relative;
    margin-top: 20px;
}

.mydsbowl-slider-container.hidden {
    display: none;
}

.mydsbowl-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mydsbowl-slider::-webkit-scrollbar {
    display: none;
}

.mydsbowl-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: var(--mydsbowl-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-slider-arrow:hover {
    background: var(--mydsbowl-pink);
    color: #fff;
}

.mydsbowl-slider-arrow.left {
    left: -20px;
}

.mydsbowl-slider-arrow.right {
    right: -20px;
}

.mydsbowl-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.mydsbowl-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-slider-dots .dot.active {
    background: var(--mydsbowl-pink);
}

/* Slider Cards */
.mydsbowl-card {
    flex: 0 0 280px;
    background: var(--mydsbowl-light);
    border-radius: var(--mydsbowl-radius-sm);
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--mydsbowl-transition);
    cursor: pointer;
}

.mydsbowl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mydsbowl-shadow);
}

.mydsbowl-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.mydsbowl-card-content {
    padding: 20px;
}

.mydsbowl-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--mydsbowl-dark);
    margin: 0 0 4px 0;
}

.mydsbowl-card-subtitle {
    font-size: 13px;
    color: var(--mydsbowl-pink);
    margin: 0 0 8px 0;
}

.mydsbowl-card-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Rewards Grid */
.mydsbowl-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.mydsbowl-reward-card {
    background: var(--mydsbowl-light);
    border-radius: var(--mydsbowl-radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-reward-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mydsbowl-shadow);
}

.mydsbowl-reward-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.mydsbowl-reward-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--mydsbowl-dark);
    margin: 0 0 4px 0;
}

.mydsbowl-reward-card .points {
    font-size: 13px;
    color: var(--mydsbowl-pink);
    font-weight: 600;
}

/* ============================================================
   MODALS
   ============================================================ */
.mydsbowl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.mydsbowl-modal.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mydsbowl-modal-content {
    background: #fff;
    border-radius: var(--mydsbowl-radius);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
}

.mydsbowl-modal-large {
    max-width: 600px;
}

.mydsbowl-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--mydsbowl-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-modal-close:hover {
    background: #eee;
}

.mydsbowl-modal-close i {
    font-size: 18px;
    color: #666;
}

.mydsbowl-modal-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}

.mydsbowl-modal-content img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--mydsbowl-radius-sm);
    margin-bottom: 20px;
}

/* My Code Display */
.mydsbowl-code-display {
    font-size: clamp(48px, 12vw, 72px);
    font-weight: 900;
    letter-spacing: 0.2em;
    padding: 24px;
    background: var(--mydsbowl-light);
    border: 2px dashed #ddd;
    border-radius: var(--mydsbowl-radius-sm);
    margin-bottom: 16px;
}

.mydsbowl-code-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.mydsbowl-code-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Detail Modal */
.mydsbowl-detail-conditions {
    font-size: 13px;
    color: var(--mydsbowl-pink);
    margin-bottom: 20px;
}

/* History List */
.mydsbowl-history-list {
    text-align: left;
}

.mydsbowl-history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--mydsbowl-light);
    border-radius: var(--mydsbowl-radius-xs);
    margin-bottom: 12px;
}

.mydsbowl-history-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mydsbowl-history-icon i {
    font-size: 18px;
}

.mydsbowl-history-info {
    flex: 1;
    min-width: 0;
}

.mydsbowl-history-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mydsbowl-dark);
    margin: 0 0 2px 0;
}

.mydsbowl-history-subtitle {
    font-size: 12px;
    color: #888;
    margin: 0 0 4px 0;
}

.mydsbowl-history-date {
    font-size: 11px;
    color: #aaa;
    margin: 0;
}

.mydsbowl-history-points {
    font-size: 16px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.mydsbowl-history-points.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.mydsbowl-history-points.negative {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Settings Form */
.mydsbowl-settings-form {
    text-align: left;
}

.mydsbowl-profile-upload {
    margin: 20px 0;
}

.mydsbowl-profile-upload p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.mydsbowl-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--mydsbowl-light);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--mydsbowl-transition);
}

.mydsbowl-upload-btn:hover {
    background: #eee;
}

.mydsbowl-settings-form input[type="file"] {
    display: none;
}

#file-chosen {
    font-size: 13px;
    color: #888;
    margin-left: 12px;
}

/* Loading Overlay */
.mydsbowl-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.mydsbowl-loading.active {
    display: flex;
}

.mydsbowl-loading-spinner {
    margin-bottom: 20px;
}

.mydsbowl-loading-spinner i {
    font-size: 48px;
    color: var(--mydsbowl-pink);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mydsbowl-loading p {
    font-size: 16px;
    color: #666;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .mydsbowl-hero {
        min-height: 70vh;
    }

    .mydsbowl-features {
        padding: 60px 24px;
    }

    .mydsbowl-main {
        padding: 40px 16px 80px;
    }

    .mydsbowl-auth-card {
        padding: 32px 24px;
    }

    .mydsbowl-section {
        padding: 24px;
    }

    .mydsbowl-points-card {
        padding: 24px;
    }

    .mydsbowl-points-value {
        font-size: 32px;
    }

    .mydsbowl-slider-arrow {
        display: none;
    }

    .mydsbowl-card {
        flex: 0 0 260px;
    }

    .mydsbowl-modal-content {
        padding: 32px 24px;
    }

    .mydsbowl-code-display {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .mydsbowl-hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .mydsbowl-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mydsbowl-points-actions {
        flex-direction: column;
    }

    .mydsbowl-action-btn {
        width: 100%;
    }

    .mydsbowl-rewards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mydsbowl-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================================
   UI IMPROVEMENTS
   ============================================================ */

/* Feature Icon Animation - Animated gradient background */
.mydsbowl-feature-icon {
    background: var(--mydsbowl-gradient);
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
}

/* Reward Cards - White background for JPEG images with white backgrounds */
.mydsbowl-reward-card {
    background: #ffffff;
    border: 1px solid #eee;
}

.mydsbowl-reward-card img {
    background: #ffffff;
    object-fit: contain;
}

/* Modal Images - object-fit contain to show full image */
.mydsbowl-modal-content img {
    object-fit: contain;
    background: #ffffff;
}

#detail-modal .mydsbowl-modal-content {
    background: #ffffff;
}

/* MyCode Modal Icon */
.mydsbowl-mycode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--mydsbowl-gradient);
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mydsbowl-mycode-icon i {
    font-size: 36px;
    color: #fff;
}

/* Slider container - Fix shadow clipping */
.mydsbowl-slider-container {
    overflow: visible;
    padding: 8px 0 20px;
}

.mydsbowl-slider {
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 4px 16px;
    margin: 0 -4px;
}

.mydsbowl-section {
    overflow: visible;
}

/* ============================================================
   STATISTICS MODAL
   ============================================================ */
.mydsbowl-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.mydsbowl-stat-card {
    background: var(--mydsbowl-light);
    border-radius: var(--mydsbowl-radius-sm);
    padding: 24px 16px;
    text-align: center;
}

.mydsbowl-stat-card .stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.mydsbowl-stat-card .stat-icon.earned {
    color: #4CAF50;
}

.mydsbowl-stat-card .stat-icon.spent {
    color: var(--mydsbowl-pink);
}

.mydsbowl-stat-card .stat-icon.rewards {
    color: var(--mydsbowl-orange);
}

.mydsbowl-stat-card .stat-icon.advantages {
    color: var(--mydsbowl-purple);
}

.mydsbowl-stat-card .stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--mydsbowl-dark);
    margin-bottom: 4px;
}

.mydsbowl-stat-card .stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mydsbowl-stats-bar-container {
    text-align: left;
}

.mydsbowl-stats-bar-container h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--mydsbowl-dark);
    margin-bottom: 16px;
}

.mydsbowl-stats-bar {
    height: 24px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.mydsbowl-stats-bar .bar-earned {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.mydsbowl-stats-bar .bar-spent {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--mydsbowl-gradient);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.mydsbowl-stats-legend {
    display: flex;
    gap: 24px;
}

.mydsbowl-stats-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.mydsbowl-stats-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mydsbowl-stats-legend .legend-dot.earned {
    background: #4CAF50;
}

.mydsbowl-stats-legend .legend-dot.spent {
    background: var(--mydsbowl-pink);
}

/* ============================================================
   MOBILE TOUCH OPTIMIZATIONS
   ============================================================ */
@media (max-width: 768px) {

    /* Larger touch targets */
    .mydsbowl-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .mydsbowl-action-btn {
        min-height: 48px;
        padding: 16px 24px;
    }

    .auth-tab {
        padding: 14px 20px;
    }

    /* Stats grid on mobile */
    .mydsbowl-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mydsbowl-stat-card {
        padding: 16px 12px;
    }

    .mydsbowl-stat-card .stat-value {
        font-size: 24px;
    }

    .mydsbowl-stat-card .stat-icon {
        font-size: 24px;
    }

    /* Slider full width cards on mobile */
    .mydsbowl-slider {
        scroll-padding-left: 16px;
    }

    .mydsbowl-card {
        flex: 0 0 85vw;
        max-width: 300px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .mydsbowl-auth-card {
        padding: 24px 16px;
    }

    .mydsbowl-modal-content {
        padding: 24px 16px;
    }

    .mydsbowl-code-display {
        font-size: 36px;
        letter-spacing: 0.15em;
    }

    .mydsbowl-rewards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mydsbowl-reward-card {
        padding: 12px;
    }

    .mydsbowl-reward-card img {
        width: 60px;
        height: 60px;
    }
}

/* ============================================================
   PHASE 6: MOBILE UI OVERHAUL
   ============================================================ */

/* Show/Hide helpers */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* Hero - 100vh on Mobile */
@media (max-width: 768px) {
    .mydsbowl-hero {
        min-height: 100vh;
        min-height: 100dvh;
        /* Dynamic viewport height for mobile */
    }
}

/* ============================================================
   MOBILE ACTION BAR
   ============================================================ */
.mydsbowl-mobile-actions {
    display: none;
    background: #fff;
    border-radius: var(--mydsbowl-radius);
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: var(--mydsbowl-shadow);
    justify-content: space-around;
    gap: 8px;
}

.mydsbowl-mobile-action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--mydsbowl-light);
    border: none;
    border-radius: var(--mydsbowl-radius-xs);
    cursor: pointer;
    transition: var(--mydsbowl-transition);
    -webkit-tap-highlight-color: transparent;
}

.mydsbowl-mobile-action-item i {
    font-size: 20px;
    color: var(--mydsbowl-pink);
}

.mydsbowl-mobile-action-item span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mydsbowl-mobile-action-item:active,
.mydsbowl-mobile-action-item.touch-active {
    background: var(--mydsbowl-pink);
    transform: scale(0.95);
}

.mydsbowl-mobile-action-item:active i,
.mydsbowl-mobile-action-item.touch-active i,
.mydsbowl-mobile-action-item:active span,
.mydsbowl-mobile-action-item.touch-active span {
    color: #fff;
}

/* ============================================================
   STEMPELKARTE
   ============================================================ */
.mydsbowl-stamps-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.mydsbowl-stamps-section h3 i {
    color: var(--mydsbowl-pink);
    margin-right: 8px;
}

.mydsbowl-stamps-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    text-align: center;
}

.mydsbowl-stamps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mydsbowl-stamp {
    aspect-ratio: 1;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mydsbowl-stamp i {
    font-size: 16px;
    color: #bbb;
    transition: all 0.3s ease;
}

/* Filled stamp - black with white icon */
.mydsbowl-stamp.filled {
    background: #222;
}

.mydsbowl-stamp.filled i {
    color: #fff;
}

/* Reward stamp (6th) - same styling */
.mydsbowl-stamp.reward-stamp {
    background: #e0e0e0;
}

.mydsbowl-stamp.reward-stamp i {
    color: #bbb;
    font-size: 18px;
}

.mydsbowl-stamp.reward-stamp.filled {
    background: #222;
}

.mydsbowl-stamp.reward-stamp.filled i {
    color: #fff;
}

.mydsbowl-stamps-progress {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--mydsbowl-dark);
}

.mydsbowl-stamps-progress span {
    color: var(--mydsbowl-pink);
    font-size: 18px;
    font-weight: 700;
}

/* ============================================================
   GEO CHECK-IN SECTION
   ============================================================ */
.mydsbowl-checkin-section {
    background: linear-gradient(135deg, var(--mydsbowl-pink), var(--mydsbowl-purple));
    color: #fff;
}

.mydsbowl-checkin-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mydsbowl-checkin-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease infinite;
}

.mydsbowl-checkin-icon i {
    font-size: 24px;
    color: #fff;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.mydsbowl-checkin-info {
    flex: 1;
    min-width: 150px;
}

.mydsbowl-checkin-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.mydsbowl-checkin-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 6px 0;
}

.mydsbowl-checkin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.mydsbowl-checkin-status.detected {
    background: rgba(76, 175, 80, 0.8);
}

.mydsbowl-checkin-status.not-in-range {
    background: rgba(244, 67, 54, 0.8);
}

.mydsbowl-checkin-status.already-checked {
    background: rgba(33, 150, 243, 0.8);
}

.mydsbowl-checkin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: var(--mydsbowl-pink);
    cursor: pointer;
    transition: var(--mydsbowl-transition);
    -webkit-tap-highlight-color: transparent;
}

.mydsbowl-checkin-btn:hover,
.mydsbowl-checkin-btn:active {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   IMPROVED CARD STYLES - No Image Cropping
   ============================================================ */
.mydsbowl-card {
    flex: 0 0 auto;
    width: 280px;
    background: #fff;
    border-radius: var(--mydsbowl-radius-sm);
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--mydsbowl-transition);
    cursor: pointer;
    border: 1px solid #eee;
}

.mydsbowl-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: contain;
    background: #fff;
}

.mydsbowl-card:active,
.mydsbowl-card.touch-active {
    transform: translateY(-4px);
    box-shadow: var(--mydsbowl-shadow);
}

/* Detail Modal - No image cropping */
#detail-modal .mydsbowl-modal-content img {
    width: 100%;
    max-height: 280px;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: var(--mydsbowl-radius-sm);
}

/* ============================================================
   TOUCH HOVER EFFECTS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

    /* Touch devices */
    .mydsbowl-card:active,
    .mydsbowl-action-btn:active,
    .mydsbowl-reward-card:active,
    .mydsbowl-feature-card:active,
    .mydsbowl-toggle-btn:active,
    .mydsbowl-submit-btn:active,
    .mydsbowl-icon-btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    /* Keep hover styles for touch */
    .mydsbowl-card.touch-active {
        transform: translateY(-4px);
        box-shadow: var(--mydsbowl-shadow-hover);
    }
}

/* ============================================================
   MOBILE POINTS ACTIONS (Side by Side)
   ============================================================ */
@media (max-width: 768px) {
    .mydsbowl-points-actions {
        flex-direction: row;
        gap: 12px;
    }

    .mydsbowl-action-btn {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
    }

    .mydsbowl-action-btn span {
        display: inline;
    }
}

/* ============================================================
   MOBILE DASHBOARD HEADER
   ============================================================ */
@media (max-width: 768px) {
    .mydsbowl-dashboard-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .mydsbowl-user-avatar {
        width: 56px;
        height: 56px;
    }

    .mydsbowl-username {
        font-size: 20px;
    }
}

/* ============================================================
   MOBILE STAMPS GRID
   ============================================================ */
@media (max-width: 480px) {
    .mydsbowl-stamps-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .mydsbowl-stamp i {
        font-size: 18px;
    }
}

/* ============================================================
   MOBILE CHECK-IN
   ============================================================ */
@media (max-width: 480px) {
    .mydsbowl-checkin-content {
        flex-direction: column;
        text-align: center;
    }

    .mydsbowl-checkin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   RANK BADGE STYLES
   ============================================================ */
.mydsbowl-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mydsbowl-rank-badge i {
    font-size: 16px;
}

.mydsbowl-rank-progress {
    margin-top: 12px;
}

.mydsbowl-rank-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mydsbowl-rank-progress-fill {
    height: 100%;
    background: var(--mydsbowl-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mydsbowl-rank-progress-text {
    font-size: 12px;
    color: #666;
}

.mydsbowl-rank-multiplier {
    margin-top: 8px;
    font-size: 12px;
    color: var(--mydsbowl-pink);
    font-weight: 600;
}

.mydsbowl-rank-multiplier i {
    margin-right: 4px;
}

/* ============================================================
   RANK-UP MODAL & CONFETTI
   ============================================================ */
.mydsbowl-rankup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mydsbowl-rankup-modal.active {
    opacity: 1;
    visibility: visible;
}

.mydsbowl-rankup-content {
    position: relative;
    background: white;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.mydsbowl-rankup-modal.active .mydsbowl-rankup-content {
    transform: scale(1);
}

.mydsbowl-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.mydsbowl-confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

.mydsbowl-rankup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.mydsbowl-rankup-icon i {
    font-size: 36px;
    color: white;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(230, 0, 126, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(230, 0, 126, 0.8);
        transform: scale(1.05);
    }
}

.mydsbowl-rankup-title {
    font-size: 32px;
    font-weight: 900;
    background: var(--mydsbowl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.mydsbowl-rankup-subtitle {
    color: #666;
    margin-bottom: 24px;
}

.mydsbowl-rankup-badge {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.mydsbowl-rankup-benefits {
    color: #444;
    margin-bottom: 24px;
}

.mydsbowl-rankup-benefits i {
    color: var(--mydsbowl-orange);
    margin-right: 8px;
}

/* ============================================================
   POINTS GAIN OVERLAY
   ============================================================ */
.mydsbowl-points-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mydsbowl-points-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mydsbowl-points-gain {
    text-align: center;
    animation: pointsFlyIn 0.5s ease-out;
}

@keyframes pointsFlyIn {
    0% {
        transform: translateY(50px) scale(0.5);
        opacity: 0;
    }

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

.mydsbowl-points-icon-big {
    width: 80px;
    height: 80px;
    background: var(--mydsbowl-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: starPulse 0.5s ease-out;
}

@keyframes starPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.mydsbowl-points-icon-big i {
    font-size: 36px;
    color: white;
}

.mydsbowl-points-amount {
    font-size: 64px;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mydsbowl-points-reason {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* ============================================================
   CHECK-IN STATUS INDICATOR
   ============================================================ */
.mydsbowl-checkin-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    margin-top: 8px;
}

.mydsbowl-checkin-status.detected {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.mydsbowl-checkin-status.not-in-range {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.mydsbowl-checkin-status.already-checked {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

/* ============================================================
   PERMISSION MODAL
   ============================================================ */
.mydsbowl-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mydsbowl-permission-modal.active {
    opacity: 1;
    visibility: visible;
}

.mydsbowl-permission-content {
    background: white;
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    max-width: 320px;
    width: 90%;
}

.mydsbowl-permission-icon {
    width: 64px;
    height: 64px;
    background: var(--mydsbowl-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mydsbowl-permission-icon i {
    font-size: 28px;
    color: white;
}

.mydsbowl-permission-content h3 {
    margin-bottom: 12px;
    color: #333;
}

.mydsbowl-permission-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ============================================================
   REDESIGNED STAMP CARD (6 Stamps, Mobile Optimized)
   ============================================================ */
.mydsbowl-stamps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 16px;
}

.mydsbowl-stamp {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    background: rgba(0, 0, 0, 0.02);
    color: #ccc;
    transition: all 0.3s ease;
}

.mydsbowl-stamp i {
    font-size: 20px;
}

/* Filled stamps - solid but desaturated */
.mydsbowl-stamp.filled {
    border: 2px solid #999;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

/* Current/Latest stamp - pulsing gradient */
.mydsbowl-stamp.filled:last-of-type:not(.reward-stamp),
.mydsbowl-stamp.filled+.mydsbowl-stamp:not(.filled) {
    border: none;
    background: var(--mydsbowl-gradient);
    background-size: 200% 200%;
    color: white;
    animation: stampPulse 2s ease-in-out infinite, gradientShift 4s ease infinite;
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.4);
}

@keyframes stampPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(230, 0, 126, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(230, 0, 126, 0.6);
    }
}

/* Reward stamp (6th) */
.mydsbowl-stamp.reward-stamp {
    border: 2px dashed var(--mydsbowl-orange);
    color: var(--mydsbowl-orange);
}

.mydsbowl-stamp.reward-stamp.filled {
    border: none;
    background: linear-gradient(135deg, #ffd700, #ffb300, #e6007e);
    color: white;
    animation: rewardGlow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes rewardGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

/* Mobile stamp adjustments */
@media (max-width: 480px) {
    .mydsbowl-stamps-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .mydsbowl-stamp {
        width: 40px;
        height: 40px;
    }

    .mydsbowl-stamp i {
        font-size: 16px;
    }
}

/* ============================================================
   PRIMARY BUTTON STYLE
   ============================================================ */
.mydsbowl-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--mydsbowl-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mydsbowl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 0, 126, 0.4);
}

/* ============================================================
   ENHANCED SETTINGS SECTIONS
   ============================================================ */
.mydsbowl-settings-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mydsbowl-settings-section:last-child {
    border-bottom: none;
}

.mydsbowl-settings-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mydsbowl-settings-section h4 i {
    color: var(--mydsbowl-pink);
    font-size: 16px;
}

.mydsbowl-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mydsbowl-settings-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.mydsbowl-settings-btn i {
    color: var(--mydsbowl-pink);
}

.mydsbowl-settings-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.mydsbowl-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Legal Links */
.mydsbowl-legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mydsbowl-legal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mydsbowl-legal-link:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.mydsbowl-legal-link i {
    color: var(--mydsbowl-pink);
    font-size: 16px;
}

/* Danger Zone */
.mydsbowl-danger-zone {
    background: rgba(244, 67, 54, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin: 20px -24px -24px;
    border-bottom: none;
}

.mydsbowl-danger-zone h4 {
    color: #f44336;
}

.mydsbowl-danger-zone h4 i {
    color: #f44336;
}

.mydsbowl-settings-warning {
    font-size: 13px;
    color: #f44336;
    margin-bottom: 16px;
}

.mydsbowl-danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mydsbowl-danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
}

.mydsbowl-danger-btn i {
    font-size: 14px;
}

/* ============================================================
   RANK LABEL (Below Username)
   ============================================================ */
.mydsbowl-rank-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.mydsbowl-rank-label:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mydsbowl-rank-label i {
    font-size: 12px;
}

/* ============================================================
   RANK MODAL STYLES
   ============================================================ */
.mydsbowl-rank-modal-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.mydsbowl-rank-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--mydsbowl-gradient);
}

.mydsbowl-rank-modal-icon i {
    font-size: 30px;
    color: white;
}

.mydsbowl-rank-modal-badge {
    display: inline-block;
    padding: 8px 24px;
    background: var(--mydsbowl-gradient);
    color: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.mydsbowl-rank-modal-content {
    padding: 0;
}

.mydsbowl-rank-multiplier-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(230, 0, 126, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--mydsbowl-pink);
    font-weight: 600;
}

.mydsbowl-rank-multiplier-display i {
    font-size: 18px;
}

.mydsbowl-rank-progress-section {
    margin-bottom: 24px;
}

.mydsbowl-rank-tiers {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mydsbowl-rank-tiers h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
}

.mydsbowl-rank-tier {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.mydsbowl-rank-tier.current {
    background: rgba(230, 0, 126, 0.08);
    border: 2px solid var(--mydsbowl-pink);
}

.mydsbowl-rank-tier-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.mydsbowl-rank-tier-badge.striker {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.mydsbowl-rank-tier-badge.kingpin {
    background: linear-gradient(135deg, #cd7f32, #8b5a2b);
}

.mydsbowl-rank-tier-badge.pro {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.mydsbowl-rank-tier-badge.legend {
    background: linear-gradient(135deg, #ffd700, #ffb300, #e6007e);
}

.mydsbowl-rank-tier-info {
    flex: 1;
}

.mydsbowl-rank-tier-info .tier-name {
    display: block;
    font-weight: 600;
    color: #333;
}

.mydsbowl-rank-tier-info .tier-points {
    display: block;
    font-size: 12px;
    color: #888;
}

.mydsbowl-rank-tier .tier-multiplier {
    font-weight: 700;
    color: var(--mydsbowl-pink);
    font-size: 14px;
}

/* ============================================================
   POINTS COUNTING ANIMATION
   ============================================================ */
.mydsbowl-points-overlay.counting .mydsbowl-points-gain {
    animation: none;
}

.mydsbowl-points-counter {
    font-size: 56px;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-variant-numeric: tabular-nums;
}

.mydsbowl-points-delta {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin-top: -8px;
    animation: deltaPopIn 0.5s ease-out;
}

@keyframes deltaPopIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   STATISTICS CHARTS
   ============================================================ */
.mydsbowl-chart-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mydsbowl-chart-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
}

/* Weekly Bar Chart */
.mydsbowl-chart-bar {
    display: flex;
    gap: 8px;
    height: 120px;
    align-items: flex-end;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar-value {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.chart-bar-fill {
    width: 100%;
    background: var(--mydsbowl-gradient);
    border-radius: 4px 4px 0 0;
    min-height: 3px;
    transition: height 0.5s ease;
}

.chart-bar-label {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    font-weight: 500;
}

/* Source Distribution */
.mydsbowl-source-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.source-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.source-name {
    font-size: 13px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.source-bar-container {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.source-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.source-value {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    min-width: 70px;
    text-align: right;
}

.no-data {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Prognosis Section */
.mydsbowl-prognose-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(230, 0, 126, 0.05), rgba(255, 179, 0, 0.05));
    border-radius: 16px;
}

.mydsbowl-prognose-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mydsbowl-pink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prognose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.prognose-item {
    text-align: center;
}

.prognose-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--mydsbowl-dark);
}

.prognose-label {
    font-size: 11px;
    color: #888;
}

.prognose-next-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
}

.prognose-next-rank i {
    color: var(--mydsbowl-pink);
    font-size: 16px;
}

.prognose-next-rank.max-rank {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.prognose-next-rank.max-rank i {
    color: #333;
}

/* Stat icon for check-ins */
.stat-icon.checkins {
    color: #2196F3;
}

@media (max-width: 480px) {
    .prognose-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .prognose-value {
        font-size: 22px;
    }

    .source-name {
        max-width: 60px;
    }
}

/* ============================================================
   GUEST FEATURE SECTIONS
   ============================================================ */
.mydsbowl-features-guest {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.mydsbowl-feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.mydsbowl-feature-row:last-child {
    margin-bottom: 0;
}

.mydsbowl-feature-row.reverse {
    flex-direction: row-reverse;
}

.mydsbowl-feature-image {
    flex: 1;
    min-width: 0;
}

.mydsbowl-feature-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mydsbowl-feature-content {
    flex: 1;
    min-width: 0;
}

.mydsbowl-feature-kicker {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e6007e, #ff6b9d);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.mydsbowl-feature-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.mydsbowl-feature-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 24px 0;
}

.mydsbowl-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mydsbowl-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
}

.mydsbowl-feature-list li:last-child {
    margin-bottom: 0;
}

.mydsbowl-feature-list li i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 0, 126, 0.1);
    color: #e6007e;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mydsbowl-features-guest {
        padding: 40px 16px;
    }

    .mydsbowl-feature-row,
    .mydsbowl-feature-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .mydsbowl-feature-image img {
        height: 220px;
    }

    .mydsbowl-feature-content h3 {
        font-size: 24px;
    }

    .mydsbowl-feature-content p {
        font-size: 15px;
    }
}