/* MENU RESPONSIVO DO PORTAL */
.topbar {
    background: #0f172a;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .2px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-menu a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.main-menu a:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.menu-toggle {
    display: none;
    border: 0;
    background: #2563eb;
    color: #fff;
    padding: 9px 13px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 18px;
}

@media (max-width: 720px) {
    .topbar-inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 16px;
        max-width: calc(100% - 105px);
        line-height: 1.25;
    }

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .main-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 12px;
    }

    .main-menu.open {
        display: flex;
    }

    .main-menu a {
        background: rgba(255,255,255,.08);
        padding: 13px 14px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .page {
        padding: 16px 12px;
    }
}
/* =========================================================
   CABEÇALHO RESPONSIVO LIMPO
   ========================================================= */

.portal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

.portal-header-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.portal-logo {
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
}

.portal-menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.portal-menu a {
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
}

.portal-menu a:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

.portal-menu-btn {
    display: none !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid #dbeafe !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

.page {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 22px 16px !important;
}

@media (max-width: 720px) {
    .portal-header-inner {
        padding: 10px 12px !important;
        flex-wrap: wrap !important;
    }

    .portal-logo {
        font-size: 18px !important;
        max-width: calc(100% - 56px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .portal-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .portal-menu {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 10px !important;
    }

    .portal-menu.show {
        display: flex !important;
    }

    .portal-menu a {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        font-size: 16px !important;
        padding: 13px 14px !important;
        border-radius: 14px !important;
        background: #f8fafc !important;
    }

    .page {
        padding: 14px 10px !important;
    }
}
/* =========================================================
   VITRINE PREMIUM RESPONSIVA
   ========================================================= */

.store-hero {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 24px;
    align-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(96,165,250,.35), transparent 34%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #eaf2ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 30px;
    padding: clamp(28px, 5vw, 56px);
    margin-bottom: 28px;
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.store-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    color: #0f172a;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.store-hero p {
    font-size: clamp(18px, 2.4vw, 25px);
    color: #475569;
    max-width: 760px;
    line-height: 1.45;
}

.store-hero-icon {
    display: flex;
    justify-content: center;
}

.hero-icon-box {
    width: 150px;
    height: 150px;
    border-radius: 36px;
    background: linear-gradient(135deg, #60a5fa, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 74px;
    box-shadow: 0 22px 45px rgba(37,99,235,.28);
}

.store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 32px;
}

.store-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #bfdbfe;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15,23,42,.05);
}

.store-categories a.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.store-app-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 44px rgba(15,23,42,.09);
}

.store-app-image {
    width: 100%;
    background: #f8fafc;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 20px;
}

.store-app-image img {
    width: 100%;
    height: auto;
    display: block;
}

.store-app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.badge-trial,
.badge-free,
.badge-category,
.badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.badge-trial {
    background: #fef3c7;
    color: #92400e;
}

.badge-free {
    background: #dcfce7;
    color: #166534;
}

.badge-category {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-new {
    background: #ede9fe;
    color: #6d28d9;
}

.store-app-card h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 14px;
    color: #0f172a;
    letter-spacing: -.8px;
}

.store-app-card p {
    font-size: 19px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 24px;
}

.store-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-light,
.btn-dark,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
}

.btn-light {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.btn-dark {
    background: #0f172a;
    color: #ffffff;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-light:hover,
.btn-dark:hover,
.btn-primary:hover {
    text-decoration: none;
    filter: brightness(.96);
}

.empty-card {
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e2e8f0;
}

/* iPad/tablet */
@media (max-width: 980px) {
    .store-grid {
        grid-template-columns: 1fr;
    }

    .store-hero {
        grid-template-columns: 1fr;
    }

    .store-hero-icon {
        display: none;
    }
}

/* iPhone/Android */
@media (max-width: 720px) {
    .store-hero {
        border-radius: 24px;
        padding: 30px 22px;
        margin-bottom: 24px;
    }

    .store-hero h1 {
        font-size: 40px;
    }

    .store-hero p {
        font-size: 19px;
    }

    .store-categories {
        gap: 10px;
        margin-bottom: 24px;
    }

    .store-categories a {
        padding: 11px 15px;
        font-size: 15px;
    }

    .store-app-card {
        border-radius: 26px;
        padding: 20px;
    }

    .store-app-card h2 {
        font-size: 34px;
    }

    .store-app-card p {
        font-size: 18px;
    }

    .store-app-actions {
        flex-direction: column;
    }

    .btn-light,
    .btn-dark,
    .btn-primary {
        width: 100%;
        min-height: 54px;
    }
}
/* DETALHE DO APP */
.detail-page {
    padding: 10px 0 40px;
}

.detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(15,23,42,.09);
}

.detail-image {
    background: #f8fafc;
    border-radius: 24px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-content h1 {
    font-size: clamp(36px, 5vw, 58px);
    margin-bottom: 18px;
}

.detail-description {
    font-size: 20px;
    color: #475569;
    line-height: 1.55;
}

@media (max-width: 850px) {
    .detail-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 20px;
    }

    .detail-content h1 {
        font-size: 38px;
    }

    .detail-description {
        font-size: 18px;
    }
}
/* =========================================================
   ÁREA DO CLIENTE - MEUS APPS / MINHA CONTA
   ========================================================= */

.client-hero {
    background:
        radial-gradient(circle at 90% 20%, rgba(37,99,235,.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: clamp(24px, 5vw, 46px);
    margin-bottom: 26px;
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
}

.client-kicker {
    display: inline-flex;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 900;
    padding: 8px 13px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.client-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    color: #0f172a;
}

.client-hero p {
    max-width: 760px;
    color: #475569;
    font-size: 18px;
}

.client-section {
    margin-bottom: 26px;
}

.client-app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.client-card,
.client-app-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15,23,42,.07);
}

.client-app-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
}

.client-app-image {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
}

.client-app-image img {
    width: 100%;
    height: auto;
    display: block;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.client-tags span {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 999px;
}

.client-app-card h2,
.client-card h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 28px;
}

.client-app-card p,
.client-card p {
    color: #64748b;
    font-size: 17px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .client-app-grid {
        grid-template-columns: 1fr;
    }

    .client-app-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .client-hero {
        border-radius: 22px;
        padding: 26px 20px;
    }

    .client-hero h1 {
        font-size: 36px;
    }

    .client-card,
    .client-app-card {
        border-radius: 22px;
        padding: 20px;
    }

    .client-app-card h2,
    .client-card h2 {
        font-size: 26px;
    }

    .client-app-card .btn-primary,
    .client-card .btn-primary {
        width: 100%;
    }
}
/* =========================================================
   MINHA CONTA - ÁREA DO CLIENTE
   ========================================================= */

.account-layout {
    max-width: 900px;
    margin: 0 auto 40px;
}

.account-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
}

.account-card h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 28px;
}

.account-card .muted {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid div:first-child {
    grid-column: 1 / -1;
}

.account-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 28px 0;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

@media (max-width: 720px) {
    .account-card {
        border-radius: 22px;
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions a,
    .account-actions button {
        width: 100%;
    }
}
/* =========================================================
   LOGIN / CADASTRO
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0 42px;
}

.auth-card {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: clamp(24px, 5vw, 40px);
    box-shadow: 0 18px 44px rgba(15,23,42,.09);
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h1 {
    margin: 12px 0 12px;
    color: #0f172a;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -1px;
}

.auth-header p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.5;
}

.auth-form label {
    display: block;
    font-weight: 900;
    color: #334155;
    margin: 15px 0 7px;
}

.auth-form input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    padding: 14px 15px;
    font-size: 16px;
    background: #ffffff;
}

.auth-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    outline: none;
}

.auth-form button {
    margin-top: 20px;
    width: 100%;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.auth-links a {
    font-weight: 800;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 720px) {
    .auth-page {
        align-items: flex-start;
        padding-top: 12px;
    }

    .auth-card {
        border-radius: 24px;
        padding: 22px;
    }

    .auth-header h1 {
        font-size: 38px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
/* =========================================================
   TELA DE EXPERIMENTAÇÃO
   ========================================================= */

.trial-access-wrap {
    padding: 18px 0 50px;
}

.trial-access-card {
    background:
        radial-gradient(circle at 90% 15%, rgba(37,99,235,.16), transparent 34%),
        linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #dbeafe;
    border-radius: 30px;
    padding: clamp(24px, 5vw, 44px);
    box-shadow: 0 18px 44px rgba(15,23,42,.09);
}

.trial-access-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    align-items: center;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    background: #fef3c7;
    color: #92400e;
    font-weight: 900;
    padding: 9px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.trial-access-content h1 {
    font-size: clamp(34px, 5vw, 56px);
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.trial-access-content p {
    color: #475569;
    font-size: 19px;
    line-height: 1.55;
    max-width: 760px;
}

.trial-benefits {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.trial-benefits div {
    background: rgba(255,255,255,.78);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 15px 16px;
}

.trial-benefits strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 4px;
}

.trial-benefits span {
    display: block;
    color: #64748b;
    font-size: 15px;
}

.trial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.trial-access-preview {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.trial-access-preview img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.trial-placeholder {
    min-height: 260px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.trial-placeholder span {
    display: inline-flex;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255,255,255,.16);
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.trial-placeholder strong {
    font-size: 26px;
}

@media (max-width: 900px) {
    .trial-access-grid {
        grid-template-columns: 1fr;
    }

    .trial-access-preview {
        order: -1;
    }
}

@media (max-width: 720px) {
    .trial-access-card {
        border-radius: 24px;
        padding: 22px;
    }

    .trial-access-content h1 {
        font-size: 36px;
    }

    .trial-access-content p {
        font-size: 17px;
    }

    .trial-actions {
        flex-direction: column;
    }

    .trial-actions a {
        width: 100%;
    }
}
/* =========================================================
   CORREÇÃO DO BOTÃO DE CADASTRO
   ========================================================= */

.auth-form input[type="submit"],
input.btn-primary[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    text-align: center !important;
    margin-top: 20px !important;
}

.auth-form input[type="submit"]:hover,
input.btn-primary[type="submit"]:hover {
    background: #1d4ed8 !important;
}