:root {
    --bg: #F9F6F1; /* Color crema cálido editorial */
    --card: #FFFFFF;
    --accent: #FF5757;
    --accent-purple: #7C3AED;
    --text-main: #1A1A1A;
    --text-muted: rgba(0, 0, 0, 0.45);
    --border: rgba(0, 0, 0, 0.03);
    --radius-lg: 3.5rem;
    --radius-md: 2rem;
    
    /* Blobs Colors - Más saturados para el fondo cálido */
    --blob-salmon: rgba(255, 87, 87, 0.12);
    --blob-menta: rgba(191, 227, 200, 0.2);
    --blob-cielo: rgba(185, 226, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Blobs System */
.blobs-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-salmon);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-menta);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--blob-cielo);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
    filter: blur(120px);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

.app-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.03);
}

.sidebar {
    height: calc(100vh - 4rem);
    position: sticky;
    top: 2rem;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    background: #F3F4F6;
}

.status-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border: 4px solid var(--card);
    border-radius: 50%;
}

.status-indicator.active { background: #10B981; }
.status-indicator.pending { background: #F59E0B; }

.name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 0.9;
}

.email {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.membership-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #F3EEFF;
    border: 1px solid #E5DEFF;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #6D28D9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    border: none;
}

.next-billing-box {
    background: rgba(0,0,0,0.02);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: left;
    width: 100%;
}

.next-billing-mini .label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.next-billing-mini .date {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.sidebar-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-footer .btn-secondary {
    width: 100%;
}

/* Main Content */
.content {
    padding-top: 1rem;
}

.content-header {
    margin-bottom: 3rem;
}

.title-lg {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    line-height: 0.85;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.launcher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem;
    min-height: 500px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.02);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.limit-tag {
    font-size: 0.7rem;
    font-weight: 800;
    background: #000000;
    color: #FFFFFF;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Account Cards */
.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.account-card:hover {
    background: #FFFFFF;
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

/* Empty State (Green Menta Edition) */
.empty-state {
    background: rgba(191, 227, 200, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px dashed rgba(191, 227, 200, 0.5);
    border-radius: var(--radius-md);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 1rem;
}

.empty-state:hover {
    background: rgba(191, 227, 200, 0.15);
    border-color: rgba(191, 227, 200, 1);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -15px rgba(191, 227, 200, 0.2);
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 20px rgba(191, 227, 200, 0.4));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.empty-state:hover .empty-icon {
    transform: scale(1.3) rotate(12deg);
}

.empty-state p {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1F3F32; 
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 200px;
}

.empty-state .btn-primary {
    background: #10B981; 
    padding: 0.9rem 1.8rem;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.15);
}

.empty-state .btn-primary:hover {
    background: #059669;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.25);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.acc-icon {
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    background: var(--bg);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.account-card:hover .acc-icon {
    transform: scale(1.1) rotate(-5deg);
    background: #FFFFFF;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.acc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.acc-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.acc-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.acc-arrow {
    color: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s;
}

.account-card:hover .acc-arrow {
    color: var(--accent);
    opacity: 1;
    transform: translateX(4px);
}

/* Add Button */
.btn-add-more {
    width: 100%;
    background: transparent;
    border: 2px dashed rgba(0,0,0,0.05);
    border-radius: 1.5rem;
    padding: 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-add-more:hover {
    background: rgba(0,0,0,0.02);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-add-more span {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Subscription Info */
.next-billing-box {
    background: #F9FAFB;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    text-align: left;
}

.next-billing-box .label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.next-billing-box .date {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-main);
}

/* Modal Stylings */
.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 3rem;
    border-radius: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal.hidden .modal-content {
    transform: scale(0.95);
}

.modal-content h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.modal-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
}

.modal-content input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(0,0,0,0.03);
    border: 2px solid transparent;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s;
    outline: none;
    text-align: center;
}

.modal-content input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.05);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 1.25rem;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background: #E64E4E;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 87, 87, 0.2);
}

.btn-secondary {
    background: #F3F4F6;
    color: #4B5563;
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 1.25rem;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #E5E7EB;
}

/* Badge States */
.membership-badge.pending {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #D97706;
}

.membership-badge.pending .dot {
    background: #D97706;
}

/* --- Legal Footer --- */
.app-legal-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
}

.app-legal-footer p {
    font-size: 10px !important;
    color: var(--text-muted) !important;
    opacity: 0.6;
    margin: 0 auto;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.app-legal-footer a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 8px;
}

.app-legal-footer a:hover {
    color: var(--accent);
    opacity: 1;
}

@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
        position: relative;
        top: 0;
    }
    .launcher-grid {
        grid-template-columns: 1fr;
    }
    .title-lg {
        font-size: 3rem;
    }
}
