/* Global Styles */
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --primary-green: #ccff00;
    /* Citron Green */
    --primary-blue: #2962ff;
    /* Vivid Blue */
    --text-dark: #0f172a;
    --text-dim: #64748b;
    --danger: #ef4444;
    --success: #22c55e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--primary-blue);
    font-weight: 600;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    background-color: var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo {
    height: 32px;
    width: auto;
    border-radius: 6px;
    display: block;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.user-welcome {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    background-color: var(--secondary-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    gap: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

.nav-item.active {
    color: var(--text-dark);
    font-weight: 700;
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item.active .nav-icon {
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 0.5rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-secondary {
    background-color: var(--primary-green);
    color: var(--text-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: none;
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 0.75rem;
}

/* Cards & Sections */
.section {
    padding: 1rem 1.5rem;
}

.card {
    background-color: var(--secondary-bg);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Balance Card */
/* Brand Hero */
.brand-hero {
    width: 100%;
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    line-height: 0;
}

.full-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Robot Product Images */
.robot-card img {
    transition: transform 0.3s ease;
}

.robot-card:hover img {
    transform: scale(1.05);
}

.detail-image-container {
    width: 100%;
    height: 250px;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.balance-card {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 10px 25px -5px rgba(41, 98, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.balance-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.eye-icon {
    cursor: pointer;
    opacity: 0.8;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

/* Dynamic Chart */
.chart-wrapper {
    background-color: var(--secondary-bg);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.chart-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background-color: #e2e8f0;
    padding: 0.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
}

.chart-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-dim);
    transition: all 0.2s;
}

.chart-tab.active {
    background-color: white;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    background-color: #e2e8f0;
    padding: 0.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.6rem;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-dim);
    transition: all 0.2s;
}

.tab-btn.active {
    background-color: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-value-display {
    margin-bottom: 1rem;
}

.chart-main-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.chart-trend-indicator {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Product/Assets List */
.product-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-icon-container {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-bg);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-blue);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-roi {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.product-price {
    font-weight: 700;
    color: var(--primary-blue);
}

/* Link Button */
.btn-link-style {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-bg);
    color: var(--text-dark);
    border-radius: 1rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s;
    gap: 0.5rem;
}

.btn-link-style:hover {
    background-color: #e2e8f0;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    background-color: #f8fafc;
    color: var(--text-dark);
    outline: none;
    font-weight: 600;
}

.form-input:focus {
    border-color: var(--primary-blue);
    background-color: white;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-dim);
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

.password-wrapper .form-input {
    padding-right: 3.5rem;
}

/* Utilities */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-pending {
    color: #854d0e;
}

.status-confirmed {
    color: var(--success);
}

.status-cancelled {
    color: var(--danger);
}

.status-suspended {
    color: #64748b;
}

/* --- Responsive Design (Mobile First adjustments) --- */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .section {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .balance-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .balance-amount {
        font-size: 2.2rem;
    }

    .chart-main-value {
        font-size: 1.5rem;
    }

    .detail-image-container {
        height: 180px;
    }

    .btn {
        width: 100%;
        padding: 0.85rem 1rem;
    }

    .form-input {
        padding: 0.85rem;
    }

    /* Grid adjustments */
    #robots-grid {
        grid-template-columns: 1fr !important;
    }

    .robot-card {
        padding: 1rem;
    }

    /* Bottom Nav text smaller */
    .nav-item span {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
   .balance-amount {
        font-size: 1.8rem;
    }
    
    .chart-wrapper {
        padding: 1rem;
    }
    
    .tabs, .chart-tabs {
        width: 100%;
        overflow-x: auto;
    }
}

.nav-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 15px);
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    z-index: 10;
}
