:root {
    --primary-color: #2ecc71;
    /* Emerald Green */
    --primary-dark: #27ae60;
    --secondary-color: #1e272e;
    --background-gradient: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    /* Green Gradient */
    --text-color: #333;
    --text-light: #aaa;
    --white: #ffffff;
    --border-radius: 20px;
    --input-bg: #f5f6fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.header-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--white);
    z-index: 10;
}

.logo-hexagon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.logo-hexagon img {
    max-width: 120px;
    height: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    height: 70vh;
    margin-top: auto;
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: var(--input-bg);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
}

/* =========================================
   DASHBOARD REDESIGN - BOOKGREEN
   ========================================= */

.dashboard-header {
    background: url('https://images.unsplash.com/photo-1448375240586-dfd8d395ea6c?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    width: 100%;
    padding: 25px 20px 70px 20px;
    position: relative;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    color: white;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.header-right {
    text-align: right;
    font-size: 0.9rem;
}

.project-info {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    margin-top: 10px;
    position: relative;
}

.progress-bar-fill {
    background: #e74c3c;
    height: 100%;
    width: 70%;
    border-radius: 3px;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 20px;
    margin-top: 35px;
    /* Bajados un poco */
    position: relative;
    z-index: 5;
    margin-bottom: 30px;
}

.action-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.action-icon {
    width: 85px;
    /* Aún más grandes */
    height: 85px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.action-btn:active .action-icon {
    transform: scale(0.95);
}

.action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Icon Background Colors */
.bg-purple {
    background: #9b59b6;
}

.bg-blue {
    background: #3498db;
}

.bg-orange {
    background: #f39c12;
}

.bg-teal {
    background: #1abc9c;
}

.bg-green {
    background: #2ecc71;
}

.bg-red {
    background: #e74c3c;
}

/* Info Cards Container */
.info-cards-container {
    display: flex;
   justify-content: center;
   width: 90%;
    padding: 0 15px;
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 22px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    transition: transform 0.3s;
     flex-direction: column;
    justify-content: center;

}

.info-card:nth-child(1) {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.info-card:nth-child(2) {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.info-card h3 {
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.9;
    margin-bottom: 5px;
}

.info-card .amount {
    font-size: 1.5rem;
    font-weight: bold;
}

.info-card .currency {
    font-size: 0.8rem;
    opacity: 0.8;
}

.info-card .user-avatar {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
}

.info-card .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1e272e;
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 100;
}

.nav-item {
    color: #95a5a6;
    text-align: center;
    text-decoration: none;
    font-size: 0.7rem;
    flex: 1;
}

.nav-item.active {
    color: #2ecc71;
}

.nav-item i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

/* Team Page Styles */
.team-levels {
    display: flex;
    justify-content: space-around;
    background: #1e272e;
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.level-col h2 {
    color: #2ecc71;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.level-col p {
    color: #aaa;
    font-size: 0.7rem;
    margin: 2px 0;
}

.refund-text {
    color: #2ecc71;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.share-card {
    background: #1e272e;
    margin: 0 20px 20px;
    padding: 20px;
    border-radius: 20px;
    color: white;
    text-align: center;
}

.share-input-group {
    background: #2f3542;
    padding: 10px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.share-input-group span {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-align: left;
    margin-right: 10px;
}

.copy-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Updated Profile Page Styles */
.profile-info-card {
    background: #1e272e;
    margin: 0 15px 20px;
    padding: 25px 20px;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.profile-avatar {
    font-size: 4.5rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.profile-details {
    text-align: left;
    margin-top: 20px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #2f3542;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item-icon {
    width: 42px;
    height: 42px;
    background: #2f3542;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.profile-item-icon i {
    color: #2ecc71;
    font-size: 1.2rem;
}

.profile-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.profile-item-label {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 4px;
}

.profile-item-value {
    font-size: 1rem;
    color: white;
    font-weight: 500;
}

.profile-actions {
    margin: 0;
    padding: 0 15px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    background: #1e272e;
    color: white;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.profile-action-btn:active {
    transform: scale(0.98);
}

.profile-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.profile-btn-icon i {
    color: white;
    font-size: 1.4rem;
}

.profile-action-btn span {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

.profile-action-btn .arrow-icon {
    color: #666;
    font-size: 1rem;
    margin-left: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        background: #0f1419;
    }

    .dashboard-header {
        padding: 20px 15px 60px 15px;
        background-position: center bottom;
    }

    .header-content {
        align-items: center;
    }

    .project-info h2 {
        font-size: 1rem;
    }

    .action-icon {
        width: 75px;
        /* Más grandes en móvil */
        height: 75px;
        font-size: 2rem;
        border-radius: 20px;
    }

    .quick-actions {
        margin-top: 25px;
        /* Bajados en móvil */
        gap: 8px;
    }

    .action-btn span {
        font-size: 0.75rem;
    }

    .info-cards-container {
        padding: 0 10px;
        gap: 10px;
    }

    .info-card {
        padding: 15px;
    }

    .info-card .amount {
        font-size: 1.2rem;
    }

    .team-levels {
        flex-direction: row;
        padding: 15px 5px;
        margin: 15px 10px;
    }

    .level-col h2 {
        font-size: 1.2rem;
    }

    .level-col p {
        font-size: 0.6rem;
    }

    .share-card {
        margin: 0 10px 20px;
        padding: 15px;
    }

    .share-input-group {
        flex-direction: row;
    }

    /* Profile Mobile Styles */
    .dashboard-header {
        height: 160px !important;
        padding-bottom: 15px !important;
    }

    .profile-info-card {
        margin: -50px 0 15px 0;
        padding: 20px 15px;
        border-radius: 0;
        width: 100%;
    }

    .profile-avatar {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .profile-details {
        margin-top: 15px;
    }

    .profile-item {
        padding: 13px 0;
    }

    .profile-item-icon {
        width: 38px;
        height: 38px;
    }

    .profile-item-icon i {
        font-size: 1.1rem;
    }

    .profile-item-label {
        font-size: 0.7rem;
    }

    .profile-item-value {
        font-size: 0.9rem;
    }

    .profile-actions {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .profile-action-btn {
        padding: 15px 20px;
        margin-bottom: 0;
        border-radius: 0;
        border-bottom: 1px solid #2f3542;
    }

    .profile-action-btn:last-child {
        border-bottom: none;
        margin-bottom: 80px;
    }

    .profile-btn-icon {
        width: 44px;
        height: 44px;
    }

    .profile-btn-icon i {
        font-size: 1.3rem;
    }

    .profile-action-btn span {
        font-size: 0.95rem;
    }

    .profile-action-btn .arrow-icon {
        font-size: 0.95rem;
    }
}

/* Investment Plans */
.plans-section {
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.plan-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border: none;
    color: #1e272e;
}

.plan-card:active {
    transform: scale(0.98);
}

.plan-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.plan-info {
    padding: 20px;
}

.plan-info h3 {
    margin: 0 0 15px 0;
    color: #1e272e;
    font-size: 1.4rem;
    font-weight: bold;
}

.plan-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-value.highlight {
    color: #2ecc71;
}

.stat-value.gold {
    color: #f39c12;
}

.btn-buy {
    width: 100%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    transition: all 0.3s;
}

.btn-buy:hover {
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.btn-buy:active {
    transform: translateY(0);
}