/* ===================================================================
   HYIP DARK MOBILE - Mobile App UI CSS
   Green gradient theme 
   =================================================================== */

:root {
    --primary-green: #1a7a3a;
    --dark-green: #0d5c2a;
    --light-green: #2ecc71;
    --accent-green: #27ae60;
    --bg-dark: #0a2e14;
    --bg-card: rgba(26, 122, 58, 0.15);
    --bg-card-solid: #0f4020;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-green: rgba(46, 204, 113, 0.3);
    --shadow-green: rgba(26, 122, 58, 0.5);
    --yellow-accent: #f1c40f;
    --orange-accent: #e67e22;
}

/* Force mobile app appearance on all screens */
html,
body {
    background: linear-gradient(180deg, var(--dark-green) 0%, var(--bg-dark) 100%) !important;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text-white);
    background-attachment: fixed;
}

/* Mobile App Container - Centers content like an app */
.mobile-app-container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark-green) 0%, var(--bg-dark) 100%);
    position: relative;
    padding-bottom: 80px;
    padding-top: 70px;
}

/* ===================================================================
   MOBILE HEADER
   =================================================================== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, var(--dark-green) 0%, rgba(13, 92, 42, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-green);
}

.mobile-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header__logo img {
    height: 40px;
    width: auto;
}

.mobile-header__logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-header__info {
    text-align: right;
    font-size: 0.75rem;
}

.mobile-header__info .user-id {
    color: var(--text-white);
    font-weight: 600;
}

.mobile-header__info .uuid {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.mobile-header__icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-header__icons a,
.mobile-header__icons button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-header__icons a:hover,
.mobile-header__icons button:hover {
    background: var(--primary-green);
    transform: scale(1.1);
}

/* ===================================================================
   BOTTOM NAVIGATION
   =================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 70px;
    background: linear-gradient(180deg, rgba(10, 46, 20, 0.98) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    border-top: 1px solid var(--border-green);
    backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
}

.bottom-nav__item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.bottom-nav__item span {
    font-weight: 500;
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
    color: var(--yellow-accent);
}

.bottom-nav__item.active i {
    color: var(--yellow-accent);
}

.bottom-nav__item--center {
    position: relative;
}

.bottom-nav__item--center i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--yellow-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 4px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.bottom-nav__item--center.active i,
.bottom-nav__item--center:hover i {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

/* ===================================================================
   MOBILE CARDS
   =================================================================== */
.mobile-card {
    background: linear-gradient(145deg, var(--bg-card-solid) 0%, rgba(15, 64, 32, 0.8) 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-card--promo {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.mobile-card--promo::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mobile-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.mobile-card__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mobile-card--white {
    background: #ffffff;
    color: #333;
}

.mobile-card--white .mobile-card__title {
    color: #333;
}

.mobile-card--white .mobile-card__subtitle {
    color: #666;
}

/* ===================================================================
   QUICK ACTIONS GRID
   =================================================================== */
.quick-actions {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    margin-bottom: 16px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
}

.quick-action__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px var(--shadow-green);
    transition: all 0.3s ease;
}

.quick-action:hover .quick-action__icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-green);
}

.quick-action__text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ===================================================================
   WALLET BALANCE DISPLAY
   =================================================================== */
.wallet-balance {
    background: linear-gradient(135deg, var(--yellow-accent) 0%, var(--orange-accent) 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-balance__label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.wallet-balance__amount {
    font-size: 1.3rem;
    font-weight: 800;
}

.wallet-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.wallet-stat__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.wallet-stat__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

/* ===================================================================
   ACTION BUTTONS
   =================================================================== */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mobile-btn--primary {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--accent-green) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.mobile-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.5);
    color: var(--text-white);
}

.mobile-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid var(--border-green);
}

.mobile-btn--yellow {
    background: linear-gradient(135deg, var(--yellow-accent) 0%, var(--orange-accent) 100%);
    color: #333;
}

.mobile-btn--green {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: var(--text-white);
}

.mobile-btn--full {
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.action-buttons .mobile-btn {
    flex: 1;
}

/* ===================================================================
   MOBILE FORM STYLES
   =================================================================== */
.mobile-form-group {
    margin-bottom: 16px;
}

.mobile-form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mobile-input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-green);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-input:focus {
    outline: none;
    border-color: var(--light-green);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.mobile-input::placeholder {
    color: var(--text-muted);
}

.mobile-input-wrapper {
    position: relative;
}

.mobile-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===================================================================
   SECTION HEADERS
   =================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.section-header__link {
    font-size: 0.8rem;
    color: var(--light-green);
    text-decoration: none;
}

/* ===================================================================
   SERVICE CARDS
   =================================================================== */
.service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card-solid);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-green);
}

.service-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-white);
}

.service-card__content {
    flex: 1;
}

.service-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2px;
}

.service-card__subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.service-card__action {
    padding: 8px 16px;
    background: var(--primary-green);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-white);
    text-decoration: none;
}

/* ===================================================================
   INVEST PLAN CARDS
   =================================================================== */
.plan-card {
    background: var(--bg-card-solid);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-green);
}

.plan-card__image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.plan-card__content {
    padding: 16px;
}

.plan-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--yellow-accent);
    margin-bottom: 12px;
}

.plan-card__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.plan-card__detail {
    font-size: 0.8rem;
}

.plan-card__detail-label {
    color: var(--text-muted);
}

.plan-card__detail-value {
    color: var(--text-white);
    font-weight: 600;
}

/* ===================================================================
   MINE/PROFILE PAGE
   =================================================================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--bg-card-solid) 100%);
    border-radius: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    border: 3px solid var(--light-green);
}

.profile-info {
    flex: 1;
}

.profile-info__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.profile-info__id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: var(--bg-card-solid);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-white);
    border: 1px solid var(--border-green);
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.menu-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.menu-item__text {
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-muted);
}

/* ===================================================================
   TRANSACTION LIST
   =================================================================== */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card-solid);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-green);
}

.transaction-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.transaction-item__icon--deposit {
    background: rgba(46, 204, 113, 0.2);
    color: var(--light-green);
}

.transaction-item__icon--withdraw {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.transaction-item__content {
    flex: 1;
}

.transaction-item__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

.transaction-item__date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.transaction-item__amount {
    font-size: 1rem;
    font-weight: 700;
}

.transaction-item__amount--positive {
    color: var(--light-green);
}

.transaction-item__amount--negative {
    color: #e74c3c;
}

/* ===================================================================
   LOGIN PAGE SPECIFIC
   =================================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    background: linear-gradient(180deg, var(--dark-green) 0%, var(--bg-dark) 100%);
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    height: 80px;
    width: auto;
}

.login-title {
    text-align: center;
    margin-bottom: 40px;
}

.login-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.login-title p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form {
    width: 100%;
    max-width: 340px;
    background: rgba(26, 122, 58, 0.15);
    padding: 30px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-green);
}

.login-form .mobile-form-group {
    margin-bottom: 20px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.login-links a {
    color: var(--light-green);
    text-decoration: none;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer a {
    color: var(--light-green);
    text-decoration: none;
}

.platform-stats-btn {
    margin-top: 30px;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-green);
}

/* ===================================================================
   HIDE DESKTOP ELEMENTS
   =================================================================== */
.sidebar-menu,
.dashboard__left,
.header--secondary,
.header,
.footer,
.scroll-top,
.preloader {
    display: none !important;
}

.container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
}

.my-60,
.my-120,
.mt-120,
.mb-120 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}


.dashboard {
    background: transparent !important;
}

.dashboard__inner {
    flex-direction: column;
}

.dashboard__right {
    width: 100% !important;
    max-width: 430px;
    margin: 0 auto;
    padding: 0;
}

.dashboard-body {
    padding: 16px;
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 8px !important;
}

.mb-2 {
    margin-bottom: 16px !important;
}

.mb-3 {
    margin-bottom: 24px !important;
}

.mt-2 {
    margin-top: 16px !important;
}

.mt-3 {
    margin-top: 24px !important;
}

.p-2 {
    padding: 16px !important;
}

.px-2 {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* ===================================================================
   RESPONSIVE - Ensure mobile layout on all screens
   =================================================================== */
@media (min-width: 431px) {
    body {
        background: #1a1a2e;
    }

    .mobile-app-container,
    .dashboard__right,
    .login-container {
        box-shadow: 0 0 60px rgba(26, 122, 58, 0.3);
    }
}

/* Custom table styles for mobile */
.table--responsive--xl {
    display: block;
}

.table--responsive--xl thead {
    display: none;
}

.table--responsive--xl tbody {
    display: block;
}

.table--responsive--xl tr {
    display: block;
    background: var(--bg-card-solid);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--border-green);
}

.table--responsive--xl td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none;
    font-size: 0.85rem;
}

.table--responsive--xl td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
}

/* Dashboard widgets override */
.dashboard-widget {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 16px !important;
}

.dashboard-widget__title {
    color: var(--text-muted) !important;
}

.dashboard-widget__currency {
    color: var(--text-white) !important;
}

/* Card overrides */
.custom--card {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 16px !important;
}

/* Alert overrides */
.alert {
    border-radius: 12px !important;
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border-green) !important;
}

/* Badge overrides */
.badge {
    border-radius: 8px !important;
    padding: 6px 12px !important;
}

.badge--primary {
    background: var(--primary-green) !important;
}

.badge--success {
    background: var(--accent-green) !important;
}

/* Form control overrides */
.form--control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 12px !important;
    color: var(--text-white) !important;
}

.form--control:focus {
    border-color: var(--light-green) !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2) !important;
}

/* Button overrides */
.btn--base {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--accent-green) 100%) !important;
    border-radius: 25px !important;
    border: none !important;
}

.btn--base:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%) !important;
}

/* Select dropdown fixes */
select.mobile-input,
select.form--control,
.form--control[type="select"],
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
    background-color: var(--bg-card-solid) !important;
    color: var(--text-white) !important;
    width: 100% !important;
    padding-left: 45px !important;
}


select.mobile-input option,
select.form--control option,
select option {
    background-color: var(--bg-card-solid) !important;
    color: var(--text-white) !important;
    padding: 10px !important;
}

select.mobile-input option:hover,
select.form--control option:hover,
select option:hover {
    background-color: var(--primary-green) !important;
}

/* Select2 dropdown fixes */
.select2-container {
    width: 100% !important;
}

.select2-wrapper {
    width: 100%;
    position: relative;
}

.select2-container--default .select2-selection--single {
    background-color: var(--bg-card-solid) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 12px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-white) !important;
    padding-left: 48px !important;
    line-height: 50px !important;
    padding-right: 30px !important;
}

.mobile-input-wrapper .input-icon {
    z-index: 10;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 12px !important;
}



.select2-dropdown {
    background-color: var(--bg-card-solid) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 12px !important;
}

.select2-container--default .select2-results__option {
    background-color: var(--bg-card-solid) !important;
    color: var(--text-white) !important;
    padding: 10px 16px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-green) !important;
    color: var(--text-white) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--accent-green) !important;
    color: var(--text-white) !important;
}

.select2-search--dropdown .select2-search__field {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 8px !important;
    color: var(--text-white) !important;
}

/* ===================================================================
   MODAL DARK THEME FIXES
   =================================================================== */
.modal-content {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 16px !important;
    color: var(--text-white) !important;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%) !important;
    border-bottom: 1px solid var(--border-green) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 16px 20px !important;
}

.modal-header .modal-title,
.modal-header h5,
.modal-header h6 {
    color: var(--text-white) !important;
    font-weight: 600 !important;
}

.modal-header .btn-close,
.modal-header .close {
    filter: invert(1) !important;
    opacity: 0.8 !important;
}

.modal-body {
    background: var(--bg-card-solid) !important;
    color: var(--text-white) !important;
    padding: 20px !important;
}

.modal-footer {
    background: var(--bg-card-solid) !important;
    border-top: 1px solid var(--border-green) !important;
    border-radius: 0 0 16px 16px !important;
}

/* ===================================================================
   LIST GROUP / DETAIL VIEW FIXES
   =================================================================== */
.list-group {
    background: transparent !important;
}

.list-group-item {
    background: var(--bg-card-solid) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-green) !important;
    color: var(--text-white) !important;
    padding: 14px 16px !important;
}

.list-group-item:first-child {
    border-radius: 12px 12px 0 0 !important;
}

.list-group-item:last-child {
    border-radius: 0 0 12px 12px !important;
    border-bottom: none !important;
}

.list-group-item span,
.list-group-item strong,
.list-group-item small,
.list-group-item p,
.list-group-item label {
    color: var(--text-white) !important;
}

.list-group-item .text-muted {
    color: var(--text-muted) !important;
}

.list-group-item .fw-bold,
.list-group-item .font-weight-bold {
    color: var(--text-white) !important;
}

/* ===================================================================
   TABLE DARK THEME FIXES
   =================================================================== */
.table,
table {
    color: var(--text-white) !important;
}

.table thead th,
table thead th,
.table th,
table th {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%) !important;
    color: var(--text-white) !important;
    border-color: var(--border-green) !important;
    font-weight: 600 !important;
    padding: 12px !important;
}

.table tbody td,
table tbody td,
.table td,
table td {
    background: var(--bg-card-solid) !important;
    color: var(--text-white) !important;
    border-color: var(--border-green) !important;
    padding: 12px !important;
}

.table tbody tr:hover td,
.table-hover tbody tr:hover td {
    background: rgba(46, 204, 113, 0.1) !important;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* ===================================================================
   CARD FIXES
   =================================================================== */
.card,
.custom--card {
    background: var(--bg-card-solid) !important;
    border: 1px solid var(--border-green) !important;
    border-radius: 16px !important;
    color: var(--text-white) !important;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%) !important;
    border-bottom: 1px solid var(--border-green) !important;
    border-radius: 16px 16px 0 0 !important;
    color: var(--text-white) !important;
}

.card-header h5,
.card-header .card-title {
    color: var(--text-white) !important;
}

.card-body {
    background: var(--bg-card-solid) !important;
    color: var(--text-white) !important;
}

.card-body p,
.card-body span,
.card-body label,
.card-body strong {
    color: var(--text-white) !important;
}

.card-body .text-muted {
    color: var(--text-muted) !important;
}

/* ===================================================================
   FORM LABEL FIXES
   =================================================================== */
.form--label,
.form-label,
label {
    color: var(--text-muted) !important;
}

.form-text,
small.text-muted {
    color: var(--text-muted) !important;
}

/* ===================================================================
   GENERAL TEXT FIXES
   =================================================================== */
.text-dark,
.text-body,
.text-black {
    color: var(--text-white) !important;
}

p,
span,
div,
strong,
small,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
}

/* Badge colors */
.badge {
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
}

.badge-success,
.bg-success {
    background: var(--light-green) !important;
    color: #fff !important;
}

.badge-danger,
.bg-danger {
    background: #e74c3c !important;
    color: #fff !important;
}

.badge-warning,
.bg-warning {
    background: var(--yellow-accent) !important;
    color: #333 !important;
}

.badge-info,
.bg-info {
    background: #3498db !important;
    color: #fff !important;
}

.badge-primary,
.bg-primary {
    background: var(--primary-green) !important;
    color: #fff !important;
}

.badge-secondary,
.bg-secondary {
    background: #6c757d !important;
    color: #fff !important;
}

/* Alert fixes */
.alert {
    border-radius: 12px !important;
    border: none !important;
}

.alert--success,
.alert-success {
    background: rgba(46, 204, 113, 0.15) !important;
    color: var(--light-green) !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
}

.alert--warning,
.alert-warning {
    background: rgba(241, 196, 15, 0.15) !important;
    color: var(--yellow-accent) !important;
    border: 1px solid rgba(241, 196, 15, 0.3) !important;
}

.alert--danger,
.alert-danger {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
}

.alert--info,
.alert-info {
    background: rgba(52, 152, 219, 0.15) !important;
    color: #3498db !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
}

.alert p,
.alert span,
.alert strong,
.alert .alert__content {
    color: inherit !important;
}

/* Text strikethrough */
del,
s,
.text-decoration-line-through {
    color: var(--text-muted) !important;
}