/* ==========================================================================
   Views Specific Styles
   ========================================================================== */

/* Logos */
.home-main-logo {
    height: 138px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 22px auto;
    display: block;
}

.page-logo-light {
    height: 112px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    margin-bottom: 10px;
}

.card-logo-img {
    height: 78px;
    width: auto;
    max-width: 100%;
    display: block;
}

.header-logo-container {
    margin-top: 10px;
    margin-bottom: 18px;
}

/* Utility padding */
.page-content {
    padding: 20px 18px calc(var(--nav-height) + 34px);
}

.page-content-full {
    padding-bottom: calc(var(--nav-height) + 34px);
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 22px;
    margin-top: 12px;
    letter-spacing: -0.02em;
}

.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mt-15 { margin-top: 15px; }

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--color-primary), #3a6287);
    color: white;
    width: 100%;
    padding: 15px 18px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(46, 79, 115, 0.18);
    cursor: pointer;
    font-family: var(--font-family);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover {
    filter: brightness(1.02);
}

.primary-btn:active {
    transform: scale(0.985);
    box-shadow: 0 8px 18px rgba(46, 79, 115, 0.14);
}

.outline-btn {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--color-border-strong);
    color: var(--color-primary);
    padding: 13px 24px;
    border-radius: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
    box-shadow: 0 8px 18px rgba(46, 79, 115, 0.06);
}

.icon-btn-light {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(26, 38, 55, 0.15);
    cursor: pointer;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    border: 1px solid var(--color-border-strong);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(46, 79, 115, 0.08);
}

.state-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(46, 79, 115, 0.08);
    border-radius: 24px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 16px 30px rgba(46, 79, 115, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.state-card.compact {
    margin: 0 16px;
}

.state-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.state-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.state-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-card-icon i {
    width: 24px;
    height: 24px;
}

.state-card-icon.is-loading i {
    animation: partner-spin 1s linear infinite;
}

@keyframes partner-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Home View */
.hero-section {
    background:
        radial-gradient(circle at top right, rgba(230, 196, 106, 0.22), transparent 30%),
        linear-gradient(180deg, #f8fbfe 0%, #eef5fb 100%);
    color: var(--color-text-main);
    padding: 34px 20px 36px;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
    border-bottom: 1px solid rgba(46, 79, 115, 0.08);
    box-shadow: inset 0 -18px 30px rgba(255, 255, 255, 0.45);
}

.hero-content h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 15px;
    color: var(--color-text-muted);
    max-width: 240px;
    margin: 0 auto;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 28px var(--spacing-md) 14px;
    letter-spacing: -0.02em;
}

.partner-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 var(--spacing-md);
    scrollbar-width: none;
}

.partner-grid::-webkit-scrollbar { display: none; }

.partner-card {
    min-width: 264px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(46, 79, 115, 0.08);
    border: 1px solid rgba(46, 79, 115, 0.08);
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}

.partner-img {
    height: 152px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.partner-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(35, 61, 89, 0.08) 100%);
}

.partner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 14px;
    color: var(--color-secondary);
    box-shadow: 0 10px 18px rgba(46, 79, 115, 0.12);
    z-index: 1;
}

.partner-info {
    padding: 16px 16px 18px;
}

.partner-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.partner-info .text-muted {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.partner-info .text-muted i {
    width: 13px;
    height: 13px;
}

/* Catalog */
.brand-header-catalog {
    margin-bottom: 22px;
    margin-top: 4px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--color-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.search-bar {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(46, 79, 115, 0.06);
    border: 1px solid rgba(46, 79, 115, 0.08);
    margin-bottom: 18px;
}

.search-bar i {
    color: var(--color-primary);
    margin-right: 12px;
}

.search-bar input {
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 15px;
    width: 100%;
    color: var(--color-text-main);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--color-text-soft);
}

.catalog-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.grid-cat-item {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(46, 79, 115, 0.08);
    border-radius: 18px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 22px rgba(46, 79, 115, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-cat-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-main);
    text-align: center;
    line-height: 1.35;
}

.cat-icon-container {
    width: 42px;
    height: 42px;
    background: var(--color-primary-soft);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
}

.cat-icon-container i {
    width: 19px;
    height: 19px;
}

.grid-cat-item.active {
    background: linear-gradient(180deg, var(--color-primary), #3d688d);
    border-color: transparent;
    transform: translateY(-1px);
}

.grid-cat-item.active span { color: white; }
.grid-cat-item.active .cat-icon-container {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 250, 241, 0.96);
    color: var(--color-secondary);
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 18px rgba(46, 79, 115, 0.12);
    z-index: 2;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.partner-card-horizontal {
    display: flex;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(46, 79, 115, 0.07);
    border: 1px solid rgba(46, 79, 115, 0.08);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.img-wrapper {
    width: 112px;
    min-height: 118px;
    flex-shrink: 0;
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.card-content .location {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.card-content .location i {
    width: 13px;
    height: 13px;
}

.advantage-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-secondary-soft);
    color: var(--color-secondary);
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    align-self: flex-start;
    border: 1px solid rgba(201, 142, 167, 0.14);
}

.advantage-badge i { width: 14px; height: 14px; }

.map-explore-section { padding-bottom: 10px; }

.map-explore-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 251, 0.97));
    border: 1px solid rgba(46, 79, 115, 0.08);
    border-radius: 26px;
    padding: 26px 22px;
    box-shadow: 0 16px 32px rgba(46, 79, 115, 0.07);
}

.map-icon-circle {
    width: 62px;
    height: 62px;
    background: var(--color-primary-soft);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.map-icon-circle i { width: 28px; height: 28px; }

.map-explore-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* Dropdowns */
.filter-dropdowns {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}

.dropdown-wrapper {
    position: relative;
    flex: 1;
}

.premium-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(46, 79, 115, 0.08);
    border-radius: 16px;
    padding: 13px 38px 13px 15px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--color-text-main);
    box-shadow: 0 10px 24px rgba(46, 79, 115, 0.05);
    cursor: pointer;
    outline: none;
}

.dropdown-wrapper .select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    pointer-events: none;
}

/* Partner View */
.header-img {
    height: 272px;
    background-size: cover;
    background-position: center;
    padding: 22px 18px;
}

.partner-placeholder-header {
    background: linear-gradient(180deg, #dfeaf4 0%, #eef4f8 100%);
}

.partner-details {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.98));
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 26px 22px 30px;
    margin-top: -34px;
    position: relative;
    min-height: 500px;
    box-shadow: 0 -18px 28px rgba(46, 79, 115, 0.06);
}

.p-header h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.p-header .text-muted {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.p-header .text-muted i {
    width: 14px;
    height: 14px;
}

.category-icon {
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 20px rgba(46, 79, 115, 0.08);
    border: 1px solid rgba(46, 79, 115, 0.08);
    color: var(--color-primary);
}

.advantage-box {
    background: linear-gradient(180deg, rgba(251, 243, 223, 0.92), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(184, 134, 43, 0.18);
    padding: 18px;
    border-radius: 20px;
    margin: 28px 0;
    box-shadow: 0 14px 26px rgba(184, 134, 43, 0.08);
}

.adv-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.adv-header i { width: 18px; height: 18px; }

.advantage-box p {
    font-size: 15px;
    color: var(--color-text-main);
    font-weight: 500;
    line-height: 1.65;
}

.section-block { margin-bottom: 26px; }

.section-block h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    color: var(--color-text-main);
}

.contact-row i {
    color: var(--color-text-muted);
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.map-btn { margin-top: 32px; }

/* Profile */
.avatar-circle {
    width: 88px;
    height: 88px;
    background: linear-gradient(180deg, var(--color-primary-soft), rgba(255,255,255,0.96));
    border-radius: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    color: var(--color-primary);
    box-shadow: 0 14px 26px rgba(46, 79, 115, 0.08);
}

.avatar-circle i { width: 40px; height: 40px; }

.profile-header { margin-bottom: 34px; }

.profile-header h2 {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.menu-list {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    box-shadow: 0 16px 28px rgba(46, 79, 115, 0.06);
    border: 1px solid rgba(46, 79, 115, 0.08);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(46, 79, 115, 0.08);
    cursor: pointer;
}

.menu-item:last-child { border-bottom: none; }

.menu-item i {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    margin-right: 14px;
}

.menu-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.menu-item .chevron {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    margin-right: 0;
}

.legal-links {
    margin-top: 24px;
    font-size: 12px;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

/* No-pass Card State */
.card-empty-state {
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.card-empty-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,251,0.98));
    padding: 36px 24px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(46, 79, 115, 0.1);
    border: 1px solid rgba(46, 79, 115, 0.08);
    width: 100%;
    max-width: 364px;
}

.card-empty-logo {
    height: 60px;
    margin-bottom: 24px;
    max-width: 100%;
    object-fit: contain;
}

.card-empty-title {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card-empty-text {
    color: var(--color-text-main);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.card-empty-actions,
.card-login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-login-state {
    display: none;
    text-align: left;
}

.card-login-title {
    font-size: 19px;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.card-login-text {
    color: var(--color-text-main);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-login-input-wrap {
    margin-bottom: 24px;
}

.card-login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(46, 79, 115, 0.12);
    border-radius: 16px;
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
    background: var(--color-surface-muted);
    color: var(--color-text-main);
}

.card-login-input::placeholder {
    color: var(--color-text-soft);
}

.card-login-feedback {
    min-height: 22px;
    margin: -8px 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #b42318;
}

.card-login-feedback.is-success {
    color: #027a48;
}

.card-cancel-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    box-shadow: none;
}

/* Pass Card View */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 40px);
}

.vertical-pass-card {
    background: linear-gradient(180deg, #fffdfa 0%, #f9f7f0 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(46, 79, 115, 0.14);
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(184, 134, 43, 0.14);
}

.vertical-pass-card.is-expired {
    filter: grayscale(100%);
    opacity: 0.9;
}

.vpc-top {
    background:
        radial-gradient(circle at top right, rgba(230, 196, 106, 0.22), transparent 35%),
        linear-gradient(135deg, var(--color-primary) 0%, #3e688d 100%);
    padding: 36px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid rgba(230, 196, 106, 0.8);
    position: relative;
    overflow: hidden;
}

.vpc-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.vpc-logo {
    height: auto;
    max-height: 98px;
    width: 100%;
    max-width: 220px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.vpc-middle {
    padding: 34px 22px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vpc-name {
    color: var(--color-primary-dark);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.vpc-id {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

.vpc-status {
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    box-shadow: 0 12px 24px rgba(46, 79, 115, 0.12);
}

.vpc-status-active {
    background: linear-gradient(135deg, #4aa76f, #32975b);
}

.vpc-status-expired {
    background: linear-gradient(135deg, #d97373, #c85b5b);
}

.vpc-bottom {
    padding: 8px 20px 26px;
    text-align: center;
}

.vpc-validity-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.vpc-validity-date {
    color: var(--color-primary-dark);
    font-size: 20px;
    font-weight: 600;
}

.vpc-footer {
    background: rgba(46, 79, 115, 0.06);
    color: var(--color-secondary);
    text-align: center;
    padding: 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.18em;
    border-top: 1px solid rgba(184, 134, 43, 0.18);
}
