/* OVIT Cloud Theme Upgrade Styles */

:root {
    --ovit-glass-bg: rgba(20, 28, 55, 0.78);
    --ovit-glass-border: rgba(0, 212, 255, 0.24);
    --ovit-pink-glow: rgba(255, 0, 110, 0.24);
}

body {
    background:
        radial-gradient(circle at 100% -10%, rgba(0, 212, 255, 0.07), transparent 40%),
        radial-gradient(circle at -10% 100%, rgba(255, 0, 110, 0.07), transparent 35%),
        linear-gradient(145deg, #070b1f 0%, #0b1230 45%, #0f1638 100%);
}

/* Header */
.site-header {
    background: linear-gradient(180deg, rgba(15, 23, 50, 0.94), rgba(14, 20, 41, 0.9));
    border-bottom: 1px solid var(--ovit-glass-border);
    box-shadow: 0 14px 28px rgba(3, 10, 24, 0.35);
}

.header-content {
    gap: var(--space-3);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.brand-logo img {
    height: 36px;
    width: auto;
}

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: #06172b;
    background: linear-gradient(135deg, #00d4ff 0%, #63f6ff 100%);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}

.brand-logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.brand-logo-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ecf4ff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.32);
}

.brand-logo-subtitle {
    margin-top: 0.24rem;
    font-size: 0.63rem;
    letter-spacing: 0.11em;
    color: #8fa8cf;
    text-transform: uppercase;
}

.nav-menu {
    gap: 0.4rem;
}

.nav-item {
    display: flex;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.82rem;
    border-radius: 10px;
    color: #a8b8de;
    font-size: 0.9rem;
    line-height: 1;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.82rem;
    right: 0.82rem;
    bottom: 0.27rem;
    height: 2px;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, #00d4ff, #ff006e);
    transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: #ecf5ff;
    background: rgba(0, 212, 255, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    gap: 0.65rem;
}

.lang-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.06);
}

.lang-link {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    color: #95a9d5;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.44rem;
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.lang-link.active {
    color: #06172b;
    background: linear-gradient(135deg, #00d4ff 0%, #63f6ff 100%);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.28);
}

.lang-link:hover:not(.active) {
    color: #d8e8ff;
    background: rgba(0, 212, 255, 0.1);
}

.header-dropdown {
    position: relative;
}

.header-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    height: 36px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 999px;
    padding: 0 0.78rem;
    background: rgba(0, 212, 255, 0.06);
    color: #ddedff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-base);
}

.header-dropdown-trigger:hover,
.header-dropdown-trigger[aria-expanded="true"] {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 185px;
    display: none;
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: rgba(14, 21, 43, 0.97);
    box-shadow: 0 20px 40px rgba(2, 10, 24, 0.42);
}

.header-dropdown-menu.active {
    display: block;
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    text-decoration: none;
    color: #a7b8de;
    border-radius: 8px;
    padding: 0.48rem 0.62rem;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
}

.header-dropdown-item small {
    color: #7f91ba;
    font-size: 0.76rem;
}

.header-dropdown-item:hover,
.header-dropdown-item.active {
    color: #eaf4ff;
    background: rgba(0, 212, 255, 0.12);
}

.header-auth-links {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.header-auth-links .btn {
    min-height: 36px;
    font-size: 0.81rem;
    padding: 0.5rem 0.88rem;
    border-radius: 10px;
}

.mobile-navigation {
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(10, 16, 33, 0.98);
    padding: 0.7rem 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu a {
    padding: 0.78rem 0;
    color: #cfddf8;
    text-decoration: none;
    display: block;
}

.mobile-nav-extra {
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(0, 212, 255, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.mobile-nav-extra .lang-toggle-group {
    flex: 0 0 auto;
}

.mobile-nav-extra .header-dropdown {
    flex: 0 0 auto;
}

/* Footer */
.site-footer.ovit-footer {
    background: linear-gradient(180deg, rgba(9, 14, 28, 0.96), rgba(9, 14, 28, 1));
    border-top: 1px solid rgba(0, 212, 255, 0.24);
    margin-top: var(--space-8);
    padding: var(--space-7) 0 var(--space-3);
}

.ovit-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.footer-brand-block p {
    color: #99add7;
    margin: 0.8rem 0 1.1rem;
    max-width: 30ch;
    line-height: 1.65;
}

.footer-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.38rem;
}

.footer-trust-list li {
    color: #8ea5d2;
    font-size: 0.84rem;
}

.ovit-footer h3 {
    margin-bottom: 0.78rem;
    color: #ecf4ff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ovit-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ovit-footer li + li {
    margin-top: 0.4rem;
}

.ovit-footer a {
    color: #9db1da;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ovit-footer a:hover {
    color: #00d4ff;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding-top: var(--space-3);
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: #7e92be;
}

.footer-bottom strong {
    color: #cbdbf8;
}

/* Shared page layouts */
.page-shell {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 var(--space-2);
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--ovit-glass-border);
    padding: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--space-5);
    background:
        radial-gradient(circle at 95% 0%, rgba(0, 212, 255, 0.16), transparent 45%),
        linear-gradient(140deg, rgba(20, 28, 55, 0.88), rgba(35, 18, 52, 0.7));
    box-shadow: 0 20px 40px rgba(3, 10, 24, 0.3);
    text-align: center;
}

.page-hero h1 {
    margin-top: 0;
    margin-bottom: var(--space-1);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.8rem, 4.8vw, 3.35rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f4f8ff;
    text-shadow: 0 0 26px rgba(0, 212, 255, 0.22);
}

.page-hero p {
    margin: 0 auto;
    max-width: 70ch;
    color: #a7b9dd;
    line-height: 1.7;
}

.page-section {
    margin-bottom: var(--space-6);
}

.section-heading {
    margin-bottom: var(--space-3);
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.45rem, 3.4vw, 2.2rem);
}

.section-heading p {
    color: #9ab0d8;
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
}

.card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-actions {
    margin-top: var(--space-2);
    display: flex;
    justify-content: center;
}

.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: linear-gradient(145deg, rgba(23, 30, 57, 0.9), rgba(16, 22, 44, 0.95));
    padding: var(--space-3);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.offer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 16px 34px rgba(0, 212, 255, 0.12);
}

.offer-card.featured {
    border-width: 2px;
    border-color: #00d4ff;
    box-shadow: 0 0 38px rgba(0, 212, 255, 0.2);
}

.offer-card.centered-content {
    text-align: center;
}

.offer-badge {
    position: absolute;
    top: -11px;
    right: 16px;
    padding: 0.22rem 0.72rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #ff006e);
}

.offer-title {
    margin: 0;
    font-size: 1.12rem;
    color: #e9f2ff;
}

.offer-caption {
    margin: 0.22rem 0 0.9rem;
    color: #9fb2da;
    font-size: 0.9rem;
}

.offer-price {
    margin: 0.2rem 0 1rem;
    color: #00ff88;
    font-size: clamp(1.4rem, 2.8vw, 1.95rem);
    font-weight: 800;
}

.offer-period {
    color: #8ca2cd;
    font-size: 0.84rem;
    font-weight: 500;
}

.offer-list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    display: grid;
    gap: 0.34rem;
    flex: 1 1 auto;
}

.offer-list li {
    color: #a9bbde;
    font-size: 0.92rem;
    line-height: 1.55;
    display: flex;
    gap: 0.44rem;
    align-items: flex-start;
}

.offer-list i {
    color: #00ff88;
    margin-top: 0.22rem;
}

.offer-card .btn {
    margin-top: var(--space-2);
    width: 100%;
    justify-content: center;
}

.offer-card .offer-list + .btn {
    margin-top: auto;
}

.faq-list {
    display: grid;
    gap: 0.72rem;
}

.faq-item {
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    background: rgba(15, 21, 43, 0.72);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
    color: #d8e8ff;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: #9eb2db;
    line-height: 1.64;
}

/* Domain pricing specific */
.domain-search-form {
    display: flex;
    gap: 0.72rem;
    flex-wrap: wrap;
    margin-top: 1.45rem;
}

.domain-search-form .form-control {
    flex: 1 1 320px;
    min-height: 48px;
    background: rgba(11, 16, 33, 0.78);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #ebf4ff;
    border-radius: 10px;
}

.domain-search-form .btn {
    min-height: 48px;
}

.domain-tld-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.domain-tld-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(23, 30, 57, 0.9), rgba(16, 22, 44, 0.95));
    padding: var(--space-3);
}

.domain-tld-card .btn {
    margin-top: auto;
}

.domain-tld-card h3 {
    margin-bottom: var(--space-1);
    color: #00d4ff;
}

.domain-tld-price {
    margin: 0.14rem 0 0.8rem;
    color: #00ff88;
    font-weight: 800;
    font-size: 1.4rem;
}

.steps-grid {
    display: grid;
    gap: var(--space-2);
}

.step-item {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: var(--space-2);
    background: rgba(15, 21, 43, 0.72);
}

.step-index {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #021827;
    background: linear-gradient(135deg, #00d4ff, #63f6ff);
}

/* Cart */
.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-3);
}

.cart-panel {
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(23, 30, 57, 0.9), rgba(16, 22, 44, 0.95));
    padding: var(--space-3);
}

.cart-heading,
.cart-summary-title,
.cart-promo-title {
    margin: 0 0 1rem;
    color: #e9f2ff;
}

.cart-item-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #e9f2ff;
}

.cart-item-actions {
    text-align: right;
}

.cart-remove-form {
    margin-top: 0.45rem;
}

.cart-promo {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.16);
    padding-top: 1rem;
}

.cart-promo-form {
    margin-top: 0;
}

.cart-summary-list {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
}

.cart-summary-row.is-discount {
    color: #00ff88;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    color: #00ff88;
    border-top: 1px solid rgba(0, 212, 255, 0.16);
    padding-top: 0.9rem;
    margin-bottom: 1rem;
}

.cart-continue-btn {
    margin-top: 0.6rem;
}

.cart-security-note {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: #9ab0da;
}

.cart-empty {
    text-align: center;
}

.cart-empty-icon {
    font-size: 2.5rem;
    color: rgba(0, 212, 255, 0.4);
}

.cart-empty-title {
    margin-top: 0.6rem;
}

.cart-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.14);
}

.cart-item-row:last-child {
    border-bottom: 0;
}

.cart-item-meta {
    color: #9db2dd;
    font-size: 0.86rem;
}

.cart-price {
    color: #00ff88;
    font-size: 1.2rem;
    font-weight: 800;
}

.cart-summary {
    position: sticky;
    top: 88px;
}

/* Auth pages */
.auth-page {
    padding: clamp(2.4rem, 6vw, 4.4rem) 1rem;
}

.auth-shell {
    margin: 0 auto;
}

.auth-shell-narrow {
    max-width: 560px;
}

.auth-shell-wide {
    max-width: 760px;
}

.auth-card {
    background: linear-gradient(135deg, #1a1f3a, #252d4d);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.12);
}

.auth-title {
    margin: 0 0 0.5rem;
    text-align: center;
    color: #e0e8ff;
    font-size: clamp(1.9rem, 3.8vw, 2.4rem);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.auth-subtitle {
    text-align: center;
    color: #a8b4d8;
    margin-bottom: 2rem;
}

.auth-subtitle a,
.auth-link {
    color: #00d4ff;
}

.auth-subtitle a:hover,
.auth-link:hover {
    color: #63f6ff;
}

.auth-form .form-control,
.auth-form input,
.auth-form select,
.auth-form textarea {
    background: rgba(26, 31, 58, 0.86);
    border: 1px solid rgba(0, 212, 255, 0.24);
    color: #e0e8ff;
}

.auth-inline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #a8b4d8;
    font-size: 0.875rem;
}

.auth-lock-notice {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    color: #a8b4d8;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: rgba(0, 212, 255, 0.1);
}

.auth-benefits {
    margin-top: 3rem;
    text-align: center;
}

.auth-benefits-title {
    color: #a8b4d8;
    margin-bottom: 1rem;
}

.auth-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.auth-benefit-icon {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.auth-benefit-text {
    font-size: 0.875rem;
    color: #a8b4d8;
}

.auth-section-title {
    margin: 0 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    color: #e0e8ff;
}

.auth-section-spaced {
    margin-top: 2rem;
}

.auth-help-text {
    color: #a8b4d8;
}

.auth-terms-wrap {
    margin-bottom: 1.5rem;
}

.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    color: #a8b4d8;
}

.auth-terms-checkbox {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.auth-terms-text {
    flex: 1;
}

.auth-footnote {
    text-align: center;
    color: #a8b4d8;
    margin-top: 1rem;
}

.auth-alert-danger {
    border: 1px solid rgba(255, 0, 85, 0.3);
    background: rgba(255, 0, 85, 0.1);
    color: #ff7a9f;
}

.auth-alert-success {
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.auth-alert-stack {
    display: block;
}

.auth-alert-line {
    margin: 0;
    padding: 0.25rem 0;
}

.auth-page-header {
    margin-bottom: 1.2rem;
    text-align: center;
}

.auth-page-header h1 {
    margin: 0;
    color: #e0e8ff;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.auth-page-header small {
    color: #9fb2da;
    font-size: 0.8em;
    font-weight: 500;
}

.progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(10, 16, 32, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.18);
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 100%;
    width: 0;
    transition: width 0.25s ease;
    background: linear-gradient(90deg, #ff4f6d, #ffd26a);
}

.progress-bar.progress-bar-success {
    background: linear-gradient(90deg, #00d4ff, #00ff88);
}

.progress-bar.progress-bar-warning {
    background: linear-gradient(90deg, #ffb347, #ffd26a);
}

.progress-bar.progress-bar-danger {
    background: linear-gradient(90deg, #ff4f6d, #ff7b9c);
}

/* Hero title emphasis */
.hero-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    color: #f4f9ff;
    text-shadow:
        0 0 14px rgba(0, 212, 255, 0.28),
        0 0 34px rgba(0, 212, 255, 0.18),
        0 0 64px rgba(255, 0, 110, 0.08);
}

/* Responsive */
@media (max-width: 1100px) {
    .ovit-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .header-content {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
    }

    .main-navigation,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .card-grid-two {
        grid-template-columns: 1fr;
    }

    .auth-inline-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: calc(100% - 1.25rem);
    }

    .page-hero {
        padding: 1.55rem;
    }

    .ovit-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        letter-spacing: 0.07em;
    }
}
