/**
 * OLAMI Master Manager — Student dashboard, hero, wallet, profile, frontend manager
 * File: assets/css/dashboard.css
 */


/* === Animated dashboard styles (style.css lines 2847-3253) === */
        /* =========================================
           NEW ANIMATED DASHBOARD STYLES
           ========================================= */

        .od-animated {
            animation: fadeInUp 0.6s ease-out;
        }

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

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

        .od-stagger {
            opacity: 0;
            animation: fadeInUp 0.5s ease-out forwards;
        }

        /* Hero Section - 3 Column on Desktop */
        .od-hero-section {
            display: grid;
            grid-template-columns: 1.2fr 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

        /* Wallet Hero Card */
        .od-wallet-hero {
            background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 50%, var(--dark-bg) 100%);
            border-radius: 20px;
            padding: 25px;
            position: relative;
            overflow: hidden;
            border-bottom: 4px solid var(--coin);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .od-wallet-glow {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(184, 134, 11, 0.15) 0%, transparent 50%);
            animation: glowPulse 4s ease-in-out infinite;
        }

        @keyframes glowPulse {

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

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

        .od-wallet-content {
            position: relative;
            z-index: 1;
        }

        .od-wallet-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .od-wallet-greeting {
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            font-weight: 500;
        }

        .od-milestone-badge {
            background: linear-gradient(135deg, var(--coin), #daa520);
            color: var(--text-inverse);
            font-size: 11px;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
            animation: badgePulse 2s ease-in-out infinite;
        }

        @keyframes badgePulse {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(184, 134, 11, 0);
            }
        }

        .od-wallet-main {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .od-wallet-balance {
            text-align: left;
        }

        .od-balance-num {
            font-size: 52px;
            font-weight: 800;
            color: var(--text-inverse);
            line-height: 1;
            text-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
        }

        .od-balance-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: rgba(255, 255, 255, 0.4);
            margin-top: 5px;
        }

        .od-streak-bar {
            margin-top: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            padding: 8px 15px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .od-streak-fire {
            font-size: 18px;
            animation: fireWiggle 0.5s ease-in-out infinite;
        }

        @keyframes fireWiggle {

            0%,
            100% {
                transform: rotate(-5deg);
            }

            50% {
                transform: rotate(5deg);
            }
        }

        .od-streak-text {
            color: var(--coin);
            font-size: 13px;
            font-weight: 700;
        }

        /* Stats Hero */
        .od-stats-hero {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .od-stat-card {
            background: var(--surface);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-light);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .od-stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .od-stat-main {
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .od-stat-icon {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .od-stat-number {
            font-size: 42px;
            font-weight: 800;
            color: var(--text);
            line-height: 1;
        }

        .od-stat-label {
            font-size: 12px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 5px;
        }

        .od-stat-bar {
            height: 6px;
            background: var(--border-light);
            border-radius: 3px;
            margin-top: 15px;
            overflow: hidden;
        }

        .od-stat-bar-fill {
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--primary), #ff6b6b);
            border-radius: 3px;
            transition: width 1.5s ease-out;
        }

        .od-stat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .od-stat-mini {
            background: var(--surface);
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
            border: 1px solid var(--border-light);
            transition: all 0.3s;
        }

        .od-stat-mini:hover {
            transform: scale(1.05);
            border-color: var(--primary);
        }

        .od-mini-icon {
            font-size: 20px;
            display: block;
            margin-bottom: 5px;
        }

        .od-mini-num {
            font-size: 18px;
            font-weight: 800;
            color: var(--text);
            display: block;
        }

        .od-mini-label {
            font-size: 9px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            margin-top: 2px;
        }

        .od-empty-stat {
            grid-column: span 2;
            padding: 20px;
        }

        .od-empty-stat .od-mini-label {
            font-size: 11px;
            margin-top: 8px;
        }

        /* Activity Hero */
        .od-activity-hero {
            background: var(--surface);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
        }

        .od-activity-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            font-weight: 700;
            color: var(--text);
        }

        .od-see-all {
            font-size: 12px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        .od-activity-scroll {
            flex: 1;
            overflow-y: auto;
            max-height: 220px;
        }

        .od-activity-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-light);
            transition: background 0.2s;
        }

        .od-activity-item:hover {
            background: var(--surface-hover);
            margin: 0 -10px;
            padding: 10px;
            border-radius: 8px;
        }

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

        .od-activity-dot {
            width: 8px;
            height: 8px;
            background: var(--primary);
            border-radius: 50%;
            flex-shrink: 0;
            animation: dotPulse 2s infinite;
        }

        @keyframes dotPulse {

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

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

        .od-activity-info {
            flex: 1;
            min-width: 0;
        }

        .od-activity-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .od-activity-date {
            font-size: 11px;
            color: var(--text-muted);
        }

        .od-activity-coins {
            background: linear-gradient(135deg, var(--coin), #daa520);
            color: var(--text-inverse);
            font-size: 11px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 12px;
            flex-shrink: 0;
        }

        .od-activity-empty {
            text-align: center;
            padding: 30px 20px;
            color: var(--text-muted);
        }

        .od-empty-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .od-empty-cta {
            display: inline-block;
            margin-top: 10px;
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
        }


/* === Empty tickets & coin animation (style.css lines 3254-3356) === */
        /* Empty Tickets State */
        .od-empty-tickets {
            text-align: center;
            padding: 40px 20px;
            background: var(--surface-hover);
            border-radius: 16px;
            border: 2px dashed var(--border);
        }

        .od-empty-tickets-icon {
            font-size: 40px;
            margin-bottom: 10px;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .od-empty-tickets-text {
            color: var(--text-secondary);
            margin-bottom: 15px;
        }

        .od-empty-tickets-btn {
            display: inline-block;
            background: var(--primary);
            color: var(--text-inverse);
            padding: 12px 24px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .od-empty-tickets-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(226, 27, 77, 0.3);
        }

        /* Keep the golden coin animation */
        .od-coin-container {
            width: 70px;
            height: 70px;
            perspective: 1000px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .od-coin-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            animation: spinCoin 5s infinite linear;
        }

        .od-wallet-hero:hover .od-coin-inner {
            animation-play-state: paused;
        }

        @keyframes spinCoin {
            0% {
                transform: rotateY(0deg);
            }

            100% {
                transform: rotateY(360deg);
            }
        }

        .od-coin-front,
        .od-coin-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        }

        .od-coin-front {
            background-image: url('https://olamiherzliya.org/wp-content/uploads/2026/01/Adobe-Express-file-3.png');
        }

        .od-coin-back {
            background-image: url('https://olamiherzliya.org/wp-content/uploads/2026/01/Adobe-Express-file-1.png');
            transform: rotateY(180deg);
        }


/* === Dashboard mobile responsive (style.css lines 3357-3454) === */
        /* MOBILE RESPONSIVE */
        @media (max-width: 900px) {
            .od-hero-section {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .od-wallet-hero {
                padding: 20px;
            }

            .od-balance-num {
                font-size: 42px;
            }

            .od-coin-container {
                width: 55px;
                height: 55px;
            }

            .od-stats-hero {
                order: 2;
            }

            .od-activity-hero {
                order: 3;
            }

            .od-stat-main {
                padding: 15px;
            }

            .od-stat-number {
                font-size: 32px;
            }

            .od-activity-scroll {
                max-height: 150px;
            }
        }

        /* MOBILE FIXES */
        @media (max-width: 600px) {
            .olami-checkin-wrap {
                padding: 0 !important
            }

            .oc-toolbar {
                flex-direction: column;
                align-items: stretch;
            }

            .oc-stats {
                justify-content: space-between;
            }

            .wp-list-table thead {
                display: none;
            }

            .wp-list-table tr {
                display: flex;
                align-items: center;
                padding: 12px;
                border-bottom: 1px solid var(--border);
                background: var(--surface);
                margin-bottom: 5px;
            }

            .wp-list-table td {
                display: block;
                padding: 0 !important;
                border: none !important;
            }

            .column-actions {
                display: none !important;
            }

            .olami-ticket-wrapper {
                width: 90vw;
            }

            .op-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .os-grid-4 {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .os-clean-table th:nth-child(3),
            .os-clean-table td:nth-child(3) {
                display: none;
            }


/* === Dashboard mobile optimizations (style.css lines 3455-3513) === */
            /* --- DASHBOARD MOBILE OPTIMIZATIONS --- */
            /* 1. Global Box Sizing & Constraints */
            .od-wrapper,
            .od-hero-section,
            .od-wallet-column,
            .od-stats-hero,
            .od-activity-hero {
                max-width: 100vw !important;
                width: 100% !important;
                box-sizing: border-box !important;
                overflow-x: hidden !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .od-wrapper * {
                box-sizing: border-box !important;
            }

            /* 2. Wallet Card Padding Reduction */
            .od-wallet-hero {
                padding: 15px !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }

            .od-activity-hero {
                padding: 15px !important;
            }

            .od-activity-scroll {
                overflow-x: hidden;
            }

            .od-activity-item {
                gap: 8px;
            }

            .od-activity-title {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 13px;
                /* Ensure readability */
                min-width: 0;
                flex: 1;
                /* Force flex shrinking */
            }

            /* Fix button grid gap on small screens */
            .ob-actions {
                gap: 10px !important;
            }

            /* Reduce font size slightly for balances if needed */
            .ob-card-balance {
                font-size: 32px;
            }

        } /* END @media (max-width: 600px) */


/* === Frontend manager overrides (style.css lines 3588-4041) === */
        /* FRONTEND MANAGER OVERRIDES (Section 20) */
        /* ... existing styles ... */
        .olami-app {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: var(--bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border);
            margin: 20px 0;
        }

        .oma-header {
            background: var(--surface);
            padding: 15px 25px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-light);
        }

        .oma-logo {
            font-weight: 800;
            font-size: 16px;
            color: var(--text);
            letter-spacing: -0.5px;
        }

        .oma-badge {
            background: var(--surface-active);
            color: var(--text-secondary);
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 6px;
            margin-left: 8px;
            text-transform: uppercase;
        }

        .oma-avatar {
            border-radius: 50%;
        }

        .oma-nav {
            background: var(--surface);
            display: flex;
            align-items: center;
            padding: 0 25px;
            gap: 25px;
            border-bottom: 1px solid var(--border);
            overflow: visible;
            flex-wrap: nowrap;
        }

        .oma-link {
            padding: 15px 0;
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .oma-link.active {
            color: var(--text);
            border-bottom-color: var(--text);
        }

        .oma-link.action {
            margin-left: auto;
            color: var(--secondary);
        }

        /* More Dropdown - Theme Resistant */
        .oma-more-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        .oma-more-btn {
            padding: 15px 0;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            border: none !important;
            background: transparent !important;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-family: inherit;
            outline: none !important;
            box-shadow: none !important;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .oma-more-btn:hover,
        .oma-more-btn.open {
            color: var(--text);
        }

        .oma-more-btn.active {
            color: var(--text);
            border-bottom-color: var(--text);
        }

        .oma-arrow {
            font-size: 10px;
            transition: transform 0.2s;
        }

        .oma-more-btn.open .oma-arrow {
            transform: rotate(180deg);
        }

        .oma-more-menu {
            position: absolute !important;
            top: 100% !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            background: var(--surface) !important;
            border: 1px solid var(--border) !important;
            border-radius: 10px !important;
            box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
            min-width: 180px;
            padding: 8px 0 !important;
            z-index: 99999 !important;
            opacity: 0 !important;
            visibility: hidden !important;
            transition: all 0.2s;
            margin-top: 0;
            display: block !important;
        }

        .oma-more-menu.open {
            opacity: 1 !important;
            visibility: visible !important;
        }

        .oma-more-item {
            display: block !important;
            padding: 10px 18px !important;
            color: var(--text-secondary) !important;
            text-decoration: none !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            transition: all 0.15s !important;
            background: transparent !important;
            border: none !important;
        }

        .oma-more-item:hover {
            background: var(--surface-active) !important;
            color: var(--text) !important;
        }

        .oma-more-item.active {
            background: var(--surface-active) !important;
            color: var(--text) !important;
        }

        .oma-canvas {
            padding: 25px;
            min-height: 600px;
            background: var(--bg);
        }

        .oma-shell {
            background: transparent;
        }

        /* SLEEK INPUTS FOR MANAGER */
        .olami-app select,
        .olami-app input[type="text"],
        .olami-app input[type="date"],
        .olami-app input[type="email"] {
            height: 40px !important;
            padding: 0 12px !important;
            font-size: 13px !important;
            border: 1px solid var(--border) !important;
            border-radius: 6px !important;
            background-color: var(--surface) !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
            color: var(--text) !important;
            width: 100%;
        }

        .olami-app select:focus,
        .olami-app input:focus {
            border-color: var(--text) !important;
            outline: none;
        }

        .olami-app button,
        .olami-app .button-primary {
            height: 40px !important;
            padding: 0 20px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            border-radius: 6px !important;
            border: none !important;
            cursor: pointer;
            background: var(--text) !important;
            color: var(--surface) !important;
            line-height: 40px !important;
        }

        .olami-app .button-secondary {
            background: var(--surface) !important;
            color: var(--text) !important;
            border: 1px solid var(--border) !important;
        }

        @media (max-width: 450px) {
            .olami-hide-mobile {
                display: none !important;
            }
        }

        #olami-install-banner {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 999999;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            border: 1px solid rgba(0, 0, 0, 0.05);
            animation: slideUp 0.5s ease-out forwards;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100px);
                opacity: 0;
            }

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

        .oib-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .oib-logo {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            margin-right: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .oib-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            margin: 0;
            line-height: 1.2;
        }

        .oib-desc {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 3px;
        }

        .oib-instructions {
            font-size: 14px;
            color: var(--text);
            background: var(--bg);
            padding: 12px;
            border-radius: 8px;
            line-height: 1.4;
        }

        .oib-icon {
            display: inline-block;
            vertical-align: middle;
            font-size: 18px;
            margin: 0 2px;
            color: var(--info);
        }

        .oib-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }

        .oib-btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            border: none;
            cursor: pointer;
        }

        .oib-btn-close {
            background: var(--border-light);
            color: var(--text-secondary);
        }

        @media all and (display-mode: standalone) {
            #olami-install-banner {
                display: none !important;
            }
        }


        .tablenav.top {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .olami-stats-wrap {
            font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
            color: var(--text);
        }

        .os-grid-4 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .os-grid-2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .os-card {
            background: var(--surface);
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(0, 0, 0, 0.05);
            transition: transform 0.2s;
        }

        .os-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
        }

        .os-card h3 {
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
            margin: 0 0 15px 0;
            border-bottom: 1px solid var(--bg);
            padding-bottom: 10px;
        }

        .os-kpi {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 20px;
        }

        .os-icon {
            font-size: 20px;
            width: 44px;
            height: 44px;
            background: var(--bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .os-num {
            font-size: 24px;
            font-weight: 700;
            color: var(--text);
            display: block;
            line-height: 1.1;
        }

        .os-label {
            font-size: 11px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .os-clean-table {
            width: 100%;
            border-collapse: collapse;
        }

        .os-clean-table th {
            text-align: left;
            font-size: 10px;
            text-transform: uppercase;
            color: var(--text-secondary);
            padding: 8px 0;
            font-weight: 600;
            border-bottom: 1px solid var(--border-light);
        }

        .os-clean-table td {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
            font-size: 13px;
            color: var(--text);
            vertical-align: middle;
        }

        .os-clean-table tr:last-child td {
            border-bottom: none;
        }

        .os-user-cell {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .os-user-cell img {
            border-radius: 50%;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .os-chart-container {
            position: relative;
            height: 220px;
            width: 100%;
        }



/* === Frontend manager (Apple style) (style.css lines 4412-4649) === */
        /* =========================================
   OLAMI FRONTEND MANAGER (Apple Style UI)
   ========================================= */
        .olami-app {
            font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background: var(--bg);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
            margin: 20px 0;
            border: 1px solid var(--border);
        }

        /* HEADER */
        .oma-header {
            background: var(--surface);
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-light);
        }

        .oma-logo {
            font-weight: 700;
            font-size: 15px;
            color: var(--text);
            letter-spacing: -0.3px;
        }

        .oma-badge {
            background: var(--bg);
            color: var(--text-secondary);
            font-size: 10px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 6px;
            margin-left: 8px;
            text-transform: uppercase;
        }

        .oma-avatar {
            border-radius: 50%;
        }

        /* NAV */
        .oma-nav {
            background: var(--surface);
            display: flex;
            padding: 0 20px;
            gap: 20px;
            border-bottom: 1px solid var(--border);
            overflow: visible;
            flex-wrap: nowrap;
        }

        .oma-link {
            padding: 14px 0;
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 500;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .oma-link.active {
            color: var(--text);
            border-bottom-color: var(--text);
            font-weight: 600;
        }

        .oma-link.action {
            margin-left: auto;
            color: var(--secondary);
            font-weight: 600;
        }

        /* MAIN CONTENT SHELL */
        .oma-canvas {
            padding: 24px;
            min-height: 600px;
            background: var(--bg);
        }

        .oma-shell {
            background: transparent;
        }

        /* GLOBAL OVERRIDES FOR MANAGER UI */
        .olami-app select,
        .olami-app input[type="text"],
        .olami-app input[type="date"],
        .olami-app input[type="email"] {
            height: 40px !important;
            padding: 0 12px !important;
            font-size: 13px !important;
            border: 1px solid var(--border) !important;
            border-radius: 8px !important;
            background-color: var(--surface) !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
            color: var(--text) !important;
            appearance: none;
            -webkit-appearance: none;
            width: 100%;
        }

        .olami-app select:focus,
        .olami-app input:focus {
            border-color: var(--secondary) !important;
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1) !important;
        }

        .olami-app button,
        .olami-app .button,
        .olami-app .button-primary {
            height: 40px !important;
            padding: 0 20px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            border-radius: 8px !important;
            border: none !important;
            cursor: pointer;
            transition: all 0.2s ease !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
            background: var(--text) !important;
            color: var(--surface) !important;
            line-height: 40px !important;
            margin-top: 0 !important;
        }

        .olami-app button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        }

        .olami-app button:active {
            transform: scale(0.98);
        }

        .olami-app .button-secondary {
            background: var(--surface) !important;
            color: var(--text) !important;
            border: 1px solid var(--border) !important;
        }

        /* TABLES - Apple Style */
        .olami-app table.wp-list-table {
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
            border-spacing: 0 8px !important;
            border-collapse: separate !important;
        }

        .olami-app table.wp-list-table thead th {
            border: none !important;
            font-size: 11px !important;
            text-transform: uppercase !important;
            color: var(--text-secondary) !important;
            font-weight: 600 !important;
            padding: 0 16px 8px 16px !important;
        }

        .olami-app table.wp-list-table tbody tr {
            background: var(--surface) !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
            transition: transform 0.2s;
            border-radius: 8px !important;
        }

        .olami-app table.wp-list-table tbody tr:hover {
            transform: scale(1.005);
        }

        .olami-app table.wp-list-table td {
            border: none !important;
            padding: 16px !important;
            vertical-align: middle !important;
            font-size: 13px !important;
            color: var(--text) !important;
        }

        .olami-app table.wp-list-table td:first-child {
            border-radius: 8px 0 0 8px !important;
        }

        .olami-app table.wp-list-table td:last-child {
            border-radius: 0 8px 8px 0 !important;
        }

        .olami-app h2 {
            font-size: 18px !important;
            font-weight: 700 !important;
            letter-spacing: -0.5px !important;
            color: var(--text) !important;
            margin-bottom: 5px !important;
        }

        .olami-app label {
            font-size: 11px !important;
            font-weight: 600 !important;
            color: var(--text-secondary) !important;
            text-transform: uppercase !important;
            margin-bottom: 6px !important;
            display: block;
        }

        /* MOBILE OPTIMIZATIONS FOR MANAGER */
        @media (max-width: 600px) {
            .oma-canvas {
                padding: 15px;
            }

            .olami-app table.wp-list-table tbody tr {
                display: flex;
                flex-direction: column;
                padding: 15px;
                height: auto !important;
            }

            .olami-app table.wp-list-table td {
                padding: 5px 0 !important;
                display: block;
                text-align: left !important;
            }

            .olami-app table.wp-list-table thead {
                display: none;
            }

            .olami-hide-mobile {
                display: none !important;
            }
        }


/* === Store frontend (style.css lines 4650-4827) === */
        /* =========================================
   OLAMI STORE FRONTEND
   ========================================= */
        .olami-store-wrap {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            max-width: 800px;
            margin: 0 auto;
        }

        .os-header {
            background: var(--dark-bg);
            color: var(--dark-text);
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        .os-balance-label {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 2px;
            opacity: 0.6;
            margin-bottom: 5px;
        }

        .os-balance-amount {
            font-size: 40px;
            font-weight: 800;
            color: var(--coin);
            text-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
        }

        .os-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .os-item-card {
            background: var(--surface);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-light);
            transition: transform 0.2s;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .os-item-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .os-item-card.is-disabled {
            opacity: 0.6;
            pointer-events: none;
        }

        .os-item-img {
            height: 180px;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .os-badge-out {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: var(--text-inverse);
            font-size: 10px;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: bold;
        }

        .os-item-body {
            padding: 15px;
            text-align: center;
        }

        .os-item-title {
            font-size: 15px;
            font-weight: 700;
            margin: 0 0 5px 0;
            color: var(--text);
        }

        .os-item-price {
            font-size: 13px;
            color: var(--coin);
            font-weight: 600;
            margin-bottom: 12px;
        }

        .os-btn {
            width: 100%;
            padding: 10px;
            border-radius: 6px;
            border: none;
            font-weight: 700;
            font-size: 12px;
            cursor: pointer;
            text-transform: uppercase;
        }

        .buy-btn {
            background: var(--text);
            color: var(--text-inverse);
        }

        .buy-btn:hover {
            background: var(--text);
        }

        .disabled {
            background: var(--border-light);
            color: var(--text-muted);
            cursor: default;
        }

        .os-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .os-modal {
            background: var(--surface);
            padding: 25px;
            border-radius: 12px;
            width: 90%;
            max-width: 320px;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        }

        .os-modal h3 {
            margin-top: 0;
        }

        .os-modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .os-btn-cancel {
            flex: 1;
            padding: 10px;
            background: var(--border-light);
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
        }

        .os-btn-confirm {
            flex: 1;
            padding: 10px;
            background: var(--text);
            color: var(--text-inverse);
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
        }


/* === Shabbat candle popup (style.css lines 4828-4899) === */
        /* =========================================
   SHABBAT CANDLE POPUP
   ========================================= */
        #olami-shabbat-popup {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 99999999;
            background: rgba(255, 255, 255, 0.20);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            padding: 8px 12px;
            border-radius: 50px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            animation: slideInBottom 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            transform-origin: bottom left;
        }

        .osp-icon {
            font-size: 25px;
            line-height: 1;
            margin-bottom: 2px;
        }

        .osp-info {
            display: flex;
            flex-direction: column;
            line-height: 1;
            justify-content: center;
        }

        .osp-label {
            font-size: 8px;
            text-transform: uppercase;
            font-weight: 800;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }

        .osp-time {
            font-size: 16px;
            font-weight: 900;
            color: var(--text);
            line-height: 0.9;
        }

        @keyframes slideInBottom {
            from {
                transform: translateY(60px);
                opacity: 0;
            }

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

        @media (max-width: 600px) {
            #olami-shabbat-popup {
                bottom: 75px;
                left: 20px;
            }
        }


/* === Login button shortcode (style.css lines 4900-4980) === */
        /* =========================================
   LOGIN BUTTON SHORTCODE
   ========================================= */
        .olb-wrapper {
            display: flex;
            justify-content: flex-end;
            width: 100%;
        }

        .olb-btn-login {
            text-decoration: none;
            background: var(--text);
            color: var(--text-inverse);
            padding: 6px 18px;
            border-radius: 50px;
            font-weight: 800;
            font-size: 12px;
            display: inline-block;
            transition: all 0.2s;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .olb-user-link {
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .olb-avatar-wrap {
            position: relative;
            margin-right: 8px;
            width: 28px;
            height: 28px;
        }

        .olb-avatar-icon {
            background: var(--text);
            color: var(--text-inverse);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .olb-notify-dot {
            position: absolute;
            top: 0;
            right: 0;
            width: 8px;
            height: 8px;
            background: var(--danger);
            border: 1px solid var(--surface);
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .olb-text-wrap {
            display: flex;
            flex-direction: column;
            justify-content: center;
            line-height: 1.1;
            text-align: left;
        }

        .olb-label-hi {
            font-size: 9px;
            color: var(--text-secondary);
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .olb-label-name {
            font-size: 13px;
            font-weight: 800;
            color: var(--text);
        }


/* === Dashboard card height (style.css lines 11351-11391) === */
        /* --- DASHBOARD CARD HEIGHT SETTING (USER EDIT HERE) --- */
        .od-wallet-hero {
            min-height: 220px !important;
            height: 220px !important;
            /* Force explicit height */
            padding-bottom: 20px !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .od-wallet-content {
            flex-grow: 1 !important;
            height: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
        }

        /* Apple-style Animations */
        .ob-btn {
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .ob-btn:active {
            transform: scale(0.96);
        }

        .ob-modal-content {
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        }

        .arena-wallet {
            transition: transform 0.2s ease, opacity 0.2s ease;
            cursor: pointer;
        }

        .arena-wallet:hover {
            transform: scale(1.05);
            opacity: 0.9;
        }


/* Source: includes/shortcodes.php line 70 (block 1/2) */
    @keyframes ocb-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.6; }
    }

/* Source: includes/shortcodes.php line 1529 (block 2/2) */
.od-programs-section { margin-bottom: 25px; overflow: visible; }
        .od-programs-grid { display: flex; overflow-x: auto; gap: 20px; padding: 15px 15px 20px 15px; margin: -15px -15px -20px -15px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; max-width: calc(100% + 30px); }
        .od-programs-grid .olami-prog-card-v2 { margin-bottom: 0; min-width: 340px; max-width: 340px; width: 340px !important; flex-shrink: 0; scroll-snap-align: start; }
        @media (max-width: 600px) { .od-programs-grid .olami-prog-card-v2 { min-width: 280px; max-width: 280px; width: 280px !important; } }
