/*
Theme Name: Dairy Milk Professional Theme
Theme URI: https://shokek.online
Author: AdNova Tech
Author URI: https://shokek.online
Description: Advanced WordPress Earning Platform Theme featuring full Dairy Milk branding, 25+ structured investment plans across Normal & VIP tiers, functional multi-page view router, interactive deposit/withdrawal modals, lucky spin task, and member team system.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dairy-milk-pro-theme
*/

:root {
    --primary: #c62828;
    --primary-dark: #8e0000;
    --accent: #ffd700;
    --bg-light: #fff5f5;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --border-color: #ffcccc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding-bottom: 95px;
    -webkit-tap-highlight-color: transparent;
}

/* Header Banner */
.header-banner {
    background: linear-gradient(135deg, #c62828 0%, #4a0000 100%);
    color: white;
    padding: 15px;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 4px 20px rgba(198, 40, 40, 0.35);
}

.banner-slider {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.banner-slider img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

/* Quick Action Grid */
.quick-actions {
    display: flex;
    justify-content: space-around;
    background: white;
    margin: 15px;
    padding: 18px 10px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 6px;
    box-shadow: 0 3px 8px rgba(198,40,40,0.18);
}

/* Plan Tabs */
.plan-tabs {
    display: flex;
    margin: 15px;
    background: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-muted);
    border: none;
    background: transparent;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 10px rgba(198,40,40,0.4);
}

/* Plan Cards */
.container {
    padding: 0 15px;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-dark);
}

.limit-badge {
    background: #ffebee;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.plan-body {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.plan-img {
    width: 110px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.plan-stats {
    flex: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.stat-row span:last-child {
    font-weight: bold;
    color: var(--text-main);
}

.stat-row.highlight span:last-child {
    color: var(--primary);
    font-size: 15px;
}

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #c62828 0%, #8e0000 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
    transition: transform 0.1s ease;
}

.buy-btn:active {
    transform: scale(0.98);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

/* Center Spin Task Floating Button */
.nav-center {
    position: relative;
    top: -22px;
}

.spin-fab {
    width: 58px;
    height: 58px;
    background: radial-gradient(circle, #ff5252, #c62828);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(198,40,40,0.5);
    border: 3px solid white;
    cursor: pointer;
    font-size: 24px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: popUp 0.3s ease;
}

@keyframes popUp {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Views */
.app-view {
    display: none;
}
.app-view.active {
    display: block;
}
