/* =========================================
   AYUR OM FINTECH THEME v3.5
   Style: Swiss Bank / Apple Minimalist
   ========================================= */

:root {
    --ayr-gold: #C5A059;
    --ayr-gold-light: #e6cfa2;
    --ayr-black: #1d1d1f;
    --ayr-dark-gray: #86868b;
    --ayr-light-bg: #fbfbfd;
    --ayr-white: #ffffff;
    --ayr-glass: rgba(255, 255, 255, 0.8);
    --ayr-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --ayr-radius-card: 24px;
    --ayr-radius-btn: 50px; /* Pill Shape */
    --ayr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--ayr-light-bg);
    font-family: var(--ayr-font);
    color: var(--ayr-black);
}

/* --- 1. LOGIN & REGISTER (Auth Cards) --- */
.ayr-auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 50px 40px;
    background: var(--ayr-white);
    border-radius: var(--ayr-radius-card);
    box-shadow: var(--ayr-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.ayr-auth-container h3 {
    font-weight: 700;
    color: var(--ayr-black);
    letter-spacing: -0.5px;
    margin-bottom: 30px;
}

/* Inputs Modernos */
.ayr-form-group { margin-bottom: 25px; text-align: left; }
.ayr-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ayr-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ayr-form-group input, select.ayr-input {
    width: 100%;
    padding: 16px 20px;
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 16px;
    color: var(--ayr-black);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ayr-form-group input:focus {
    background: #fff;
    border-color: var(--ayr-gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

/* Botones Premium (Pill Shape) */
.ayr-btn-gold {
    display: inline-block;
    width: 100%;
    padding: 18px;
    background: var(--ayr-black); /* Elegancia Apple: Botón negro */
    color: #fff;
    border: none;
    border-radius: var(--ayr-radius-btn);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ayr-btn-gold:hover {
    background: var(--ayr-gold);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

/* --- 2. DASHBOARD LAYOUT --- */
#ayr-dashboard-container {
    max-width: 1180px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 0 20px;
}

/* Tarjetas Generales */
.ayr-card {
    background: var(--ayr-white);
    border-radius: var(--ayr-radius-card);
    padding: 35px;
    box-shadow: var(--ayr-shadow);
    position: relative;
    overflow: hidden;
}

/* Columna Izquierda: Perfil */
.ayr-profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.ayr-avatar-frame {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 5px;
    border: 2px dashed var(--ayr-gold); /* Efecto borde premium */
    position: relative;
}

#ayr-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.ayr-upload-btn-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ayr-gold);
    cursor: pointer;
    margin-top: 10px;
}

.ayr-user-name { font-size: 22px; font-weight: 700; color: var(--ayr-black); margin: 5px 0; }
.ayr-user-meta { font-size: 14px; color: var(--ayr-dark-gray); }

/* Badges (Píldoras de Estado) */
.ayr-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ayr-pill.success { background: #e4f9e9; color: #1c8e3e; }
.ayr-pill.warning { background: #fff4ce; color: #9c6e03; }
.ayr-pill.danger  { background: #ffe4e4; color: #c92a2a; }
.ayr-pill.info    { background: #e0f2fe; color: #0284c7; }

/* Menú Lateral (Si deseas agregarlo después) o Info Sponsor */
.ayr-sponsor-box {
    background: #f9f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

/* --- 3. CONTENIDO PRINCIPAL (Tabs & Grids) --- */

/* Navegación de Pestañas (Apple Segmented Control) */
.ayr-tabs {
    display: flex;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 16px;
    margin-bottom: 30px;
    width: fit-content;
}

.ayr-tab-link {
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ayr-dark-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.ayr-tab-link.active {
    background: var(--ayr-white);
    color: var(--ayr-black);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Grid de Datos (Glass Cards) */
.ayr-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ayr-glass-card {
    background: #fbfbfd;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    border-radius: 20px;
}
.ayr-glass-card small { display: block; color: var(--ayr-dark-gray); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.ayr-glass-card strong { font-size: 16px; color: var(--ayr-black); }

/* Árbol de Referidos Estilizado */
#ayr-my-tree {
    background: #fbfbfd;
    border-radius: 20px;
    padding: 30px;
}
ul.ayr-tree { padding-left: 20px; border-left: 2px solid #e5e5e5; list-style: none; }
ul.ayr-tree li { position: relative; padding-left: 10px; margin-bottom: 15px; }
ul.ayr-tree li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: #e5e5e5; }
.dot { height: 12px; width: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.active-dot { background: #28a745; box-shadow: 0 0 0 3px #d4edda; }
.inactive-dot { background: #dc3545; box-shadow: 0 0 0 3px #f8d7da; }

/* Loading Overlay */
.ayr-loading-glass {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    z-index: 10;
    display: flex; justify-content: center; align-items: center;
    border-radius: var(--ayr-radius-card);
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    #ayr-dashboard-container { grid-template-columns: 1fr; }
}