:root {
    --primary: #0099ff;
    --primary-dark: #0077cc;
    --secondary: #ff8800;
    --success: #28c76f;
    --danger: #ea5455;
    --warning: #ffcc00;
    --dark: #1e1e2f;
    --light: #f7f8fa;
    --card: #ffffff;
    --text: #2b2b2b;
    --muted: #777;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

/* =========================
   LANDING
========================= */

.landing {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0,153,255,.25), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255,136,0,.25), transparent 35%),
        #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    max-width: 950px;
    padding: 50px 25px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 10px 18px;
    background: #e5f4ff;
    color: var(--primary);
    border-radius: 999px;
    font-weight: bold;
}

.hero h1 {
    font-size: 72px;
    margin: 20px 0 10px;
    color: var(--dark);
    letter-spacing: -2px;
}

.hero p {
    font-size: 22px;
    color: #555;
}

.actions {
    margin-top: 30px;
}

.features {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.features div {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    font-weight: bold;
}

/* =========================
   AUTH
========================= */

.auth-card {
    width: 420px;
    max-width: calc(100% - 30px);
    margin: 60px auto;
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
}

.auth-card h2 {
    margin-bottom: 20px;
    color: var(--dark);
}

.auth-card p {
    margin-top: 18px;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: white;
    color: var(--text);
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,153,255,.12);
}

/* =========================
   BOTONES
========================= */

.btn {
    display: inline-block;
    border: none;
    border-radius: 14px;
    padding: 13px 22px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    background: var(--primary);
    color: white;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: var(--secondary);
    color: white;
}

.btn.secondary:hover {
    background: #e47700;
}

.mini {
    border: none;
    border-radius: 9px;
    padding: 7px 10px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    margin: 2px;
}

.mini.success {
    background: var(--success);
}

.mini.danger {
    background: var(--danger);
}

.mini.warning {
    background: var(--warning);
    color: #222;
}

/* =========================
   ALERTAS
========================= */

.alert {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.alert.error {
    background: #ffe7e7;
    color: #b00020;
}

.alert.success {
    background: #e7fff2;
    color: #087a3d;
}

/* =========================
   APP GENERAL
========================= */

.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

aside {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px;
}

aside h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

aside p {
    opacity: .85;
    margin-bottom: 20px;
}

aside a {
    display: block;
    color: white;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    font-weight: bold;
}

aside a:hover {
    opacity: .85;
}

main {
    padding: 35px;
    overflow-x: auto;
}

.inline-form {
    display: flex;
    gap: 10px;
    max-width: 700px;
    align-items: center;
    margin-bottom: 25px;
}

.inline-form input {
    margin: 0;
}

/* =========================
   CHATS
========================= */

.chat-list {
    max-width: 800px;
}

.chat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    color: var(--text);
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.chat-item strong {
    color: var(--dark);
}

.chat-item span {
    color: var(--muted);
    font-size: 13px;
}

.chat-page header,
.video-page header {
    height: 70px;
    background: white;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.chat-page header h2,
.video-page header h2 {
    margin: 0;
}

.messages {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 20px;
    background: #eef4f8;
}

.bubble {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.bubble small {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    opacity: .8;
}

.bubble p {
    margin: 0;
    line-height: 1.4;
}

.bubble span {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    opacity: .6;
}

.bubble.mine {
    margin-left: auto;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.bubble.other {
    margin-right: auto;
    background: white;
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.message-form {
    height: 70px;
    display: flex;
    gap: 10px;
    background: white;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.message-form input {
    margin: 0;
}

.message-form button {
    border: none;
    border-radius: 12px;
    padding: 0 22px;
    background: var(--primary);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* =========================
   PAGOS
========================= */

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pay-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.pay-card h3 {
    color: var(--dark);
}

/* =========================
   ADMIN
========================= */

.admin-app aside {
    background: linear-gradient(180deg, #1e1e2f, #111827);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    border-left: 5px solid var(--primary);
}

.stat-card strong {
    display: block;
    font-size: 34px;
    color: var(--dark);
}

.stat-card span {
    color: var(--muted);
    font-weight: bold;
}

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-card.danger {
    border-left-color: var(--danger);
}

.admin-section {
    margin-top: 35px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    margin: 20px 0;
}

.admin-table th {
    background: var(--dark);
    color: white;
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

.admin-table td {
    padding: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 14px;
}

.admin-table tr:hover td {
    background: #f8fbff;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* =========================
   VIDEO
========================= */

.video-page iframe {
    display: block;
    width: 100%;
    height: 85vh;
    border: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .app {
        grid-template-columns: 1fr;
    }

    aside {
        position: relative;
    }

    aside a {
        padding: 10px 0;
    }

    main {
        padding: 22px;
    }

    .features,
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero p {
        font-size: 18px;
    }

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bubble {
        max-width: 90%;
    }
}

@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .chat-page header,
    .video-page header {
        height: auto;
        min-height: 70px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }

    .messages {
        height: calc(100vh - 170px);
    }
}
/* === YUMAREWAPP ULTRA PREMIUM SOCIAL UPGRADE === */
:root{--premium:#00a884;--premium2:#16d48f;--violet:#7c3aed;--ink:#101828;--glass:rgba(255,255,255,.78);--line:#e6edf2;--shadow-xl:0 30px 80px rgba(15,23,42,.15)}
body{background:radial-gradient(circle at 10% 0%,rgba(0,168,132,.10),transparent 30%),radial-gradient(circle at 90% 10%,rgba(124,58,237,.10),transparent 28%),#f5f8fb}.glass,.social-card,.story-card,.post-card,.profile-panel{background:var(--glass);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.72);box-shadow:var(--shadow-xl);border-radius:26px}.brand-logo{width:42px;height:42px;border-radius:16px;display:inline-grid;place-items:center;background:linear-gradient(135deg,var(--premium),var(--violet));color:#fff;font-weight:900}.premium-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:linear-gradient(135deg,#f59e0b,#fde68a);color:#7c2d12;font-size:12px;font-weight:900}.social-shell{display:grid;grid-template-columns:280px minmax(0,1fr) 320px;gap:20px;padding:22px;min-height:100vh}.social-nav{position:sticky;top:22px;height:calc(100vh - 44px);padding:20px}.social-nav a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;color:#475569;font-weight:800}.social-nav a:hover,.social-nav a.active{background:linear-gradient(135deg,var(--premium),var(--premium2));color:#fff}.post-card{padding:18px;margin-bottom:18px}.post-head{display:flex;gap:12px;align-items:center}.post-media{width:100%;max-height:520px;object-fit:cover;border-radius:22px;margin-top:14px}.post-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.story-strip{display:flex;gap:12px;overflow-x:auto;padding:4px 0 18px}.story-card{min-width:150px;height:190px;padding:14px;display:flex;align-items:flex-end;color:#fff;background:linear-gradient(150deg,var(--premium),var(--violet));overflow:hidden;position:relative}.story-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.82}.story-card strong{position:relative;z-index:2;text-shadow:0 8px 20px rgba(0,0,0,.45)}.avatar-img{border-radius:50%;object-fit:cover}.status-dot{width:9px;height:9px;border-radius:50%;background:#22c55e;display:inline-block}.gloss{position:relative;overflow:hidden}.gloss:after{content:"";position:absolute;top:-60%;left:-80%;width:45%;height:220%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:rotate(25deg);animation:glossMove 5s infinite}@keyframes glossMove{0%,70%{left:-80%}100%{left:140%}}.typing{font-size:12px;color:var(--premium);font-weight:800}.message-tools{display:none;gap:4px;margin-top:6px}.bubble:hover .message-tools{display:flex}.react-btn{border:0;background:rgba(255,255,255,.65);border-radius:999px;padding:3px 7px;cursor:pointer}.hd-preview{max-width:260px;border-radius:16px;display:block;margin-top:6px}.profile-cover{height:240px;border-radius:30px;background:linear-gradient(135deg,var(--premium),var(--violet));overflow:hidden}.profile-cover img{width:100%;height:100%;object-fit:cover}.profile-meta{margin-top:-48px;padding:0 24px 24px;display:flex;align-items:flex-end;gap:18px}.profile-meta .avatar-img,.profile-meta .chat-avatar{border:5px solid #fff}.admin-hero{background:linear-gradient(135deg,#08111f,#123c35);color:white;border-radius:30px;padding:26px;box-shadow:var(--shadow-xl)}
@media(max-width:1100px){.social-shell{grid-template-columns:1fr}.social-nav{position:relative;height:auto}.right-rail{display:none}}@media(max-width:760px){.social-shell{padding:12px 10px 76px}.post-card{border-radius:20px}.story-card{min-width:122px;height:165px}.bottom-nav{display:flex!important}}
