/*
 * V247 UI layer on top of the YouLink template (web/youlink/css/main.css, not modified).
 * Sections: 1 tokens · 2 base/a11y · 3 header & navigation · 4 banner/layout · 5 buttons ·
 *           6 cards & components · 7 forms · 8 states · 9 footer & misc · 10 responsive
 * Template tokens (--tp-*) are reused; --v-* are project aliases.
 */

/* ===== 1. Tokens ===== */
:root {
  --v-primary: var(--tp-theme-1, #336EF9);
  --v-primary-dark: #1f56dc;
  --v-accent: var(--tp-theme-2, #FFB302);
  --v-ink: var(--tp-common-black, #020626);
  --v-text: var(--tp-text-body, #707481);
  --v-bg: var(--tp-grey-1, #F5F7FA);
  --v-border: #E5E8EF;
  --v-success: var(--tp-common-green, #00C44E);
  --v-radius: 12px;
  --v-shadow: 0 4px 34px rgba(0, 0, 0, 0.06);
  --v-focus: 0 0 0 3px rgba(51, 110, 249, 0.35);
}

/* ===== 2. Base / accessibility ===== */
body { background: #fff; }
.v-main { min-height: 50vh; }
.v-skip-link { position: absolute; left: 12px; top: -60px; z-index: 100000; background: var(--v-ink); color: #fff; padding: 10px 16px; border-radius: 6px; transition: top .2s; }
.v-skip-link:focus { top: 12px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--v-primary); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v-more { color: var(--v-primary); font-weight: 600; }
.v-more:hover { color: var(--v-ink); }
.v-note { color: var(--v-text); }
.v-main p a, .v-article a { color: var(--v-primary); }
p { font-size: 15px; line-height: 1.7; }

/* ===== 3. Header & navigation ===== */
.v-topbar-phones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.v-topbar-phones a { color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.v-topbar-phones a i, .tp-header-top__left-info i { color: var(--v-accent); margin-right: 4px; }
.v-topbar-phones a:hover { color: var(--v-accent); }
.tp-header-top__left-info li { list-style: none; color: #fff; font-size: 14px; }
.tp-header-top__custom-wrap { border-radius: 0 0 12px 12px; }
.tp-header-3__customize { border-radius: 12px; padding: 12px 28px; box-shadow: var(--v-shadow); margin-top: 14px; }
.header-sticky .tp-header-3__customize { margin-top: 0; border-radius: 0 0 12px 12px; box-shadow: none; }
.header-sticky .tp-header-3__transparent { position: fixed; }
.v-logo img { height: 40px; width: auto; display: block; }

.v-nav ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 6px; margin: 0; padding: 0; list-style: none; }
.v-nav > ul > li { position: relative; }
.v-nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 18px 12px; font-family: var(--tp-ff-heading); font-weight: 700; font-size: 15px; color: var(--v-ink); white-space: nowrap; }
.v-nav > ul > li > a i { font-size: 11px; transition: transform .2s; }
.v-nav > ul > li:hover > a, .v-nav > ul > li.is-active > a, .v-nav > ul > li:focus-within > a { color: var(--v-primary); }
.v-nav .tp-submenu { position: absolute; top: 100%; left: 0; min-width: 260px; display: block; background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(2, 6, 38, 0.14); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease; z-index: 100; text-align: left; list-style: none; }
.v-nav .has-dropdown:hover > .tp-submenu, .v-nav .has-dropdown:focus-within > .tp-submenu, .v-nav .has-dropdown.open > .tp-submenu { opacity: 1; visibility: visible; transform: none; }
.v-nav .has-dropdown:hover > a i, .v-nav .has-dropdown.open > a i { transform: rotate(180deg); }
.v-nav .tp-submenu li { display: block; }
.v-nav .tp-submenu a { display: block; padding: 9px 22px; font-size: 14px; font-weight: 500; color: var(--v-ink); }
.v-nav .tp-submenu a:hover, .v-nav .tp-submenu a.is-active { color: var(--v-primary); background: var(--v-bg); }
.tp-header-2__right-info { padding-right: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.tp-menu-bar { width: 44px; height: 44px; border-radius: 50%; background: var(--v-bg); color: var(--v-ink); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.tp-menu-bar:hover { background: var(--v-primary); color: #fff; }

/* Off-canvas (mobile) menu */
.tpoffcanvas { padding: 40px 30px; width: min(360px, 88vw); }
.tpoffcanvas__logo { margin-bottom: 28px; }
.tpoffcanvas__logo img { height: 36px; width: auto; }
.tpoffcanvas__close-btn button { border-radius: 50%; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.body-overlay.apply { opacity: .7; visibility: visible; }
.v-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.v-mobile-menu > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.v-mobile-menu a, .v-mm-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 0; color: #fff; font-weight: 600; font-size: 16px; text-align: left; }
.v-mobile-menu a:hover, .v-mobile-menu a.is-active, .v-mm-toggle:hover { color: var(--v-accent); }
.v-mm-group > ul { display: none; padding: 0 0 10px 14px; }
.v-mm-group.open > ul { display: block; }
.v-mm-group > ul a { font-weight: 400; font-size: 15px; padding: 9px 0; color: rgba(255, 255, 255, .85); }
.v-mm-toggle i { transition: transform .2s; }
.v-mm-group.open .v-mm-toggle i { transform: rotate(180deg); }
.v-mm-cta { margin-top: 28px; display: grid; gap: 14px; }
.v-mm-phone { justify-content: center !important; color: #fff; font-size: 17px; }
.v-mm-phone i { color: var(--v-accent); margin-right: 8px; }

/* ===== 4. Banner / layout ===== */
.breadcrumb__height { padding-top: 210px; padding-bottom: 90px; background-position: center; }
.breadcrumb__list { color: #fff; margin-bottom: 14px; font-size: 15px; }
.breadcrumb__list a { color: rgba(255, 255, 255, .85); }
.breadcrumb__list a:hover { color: var(--v-accent); }
.breadcrumb__list .dvdr { margin: 0 8px; }
.breadcrumb__title { color: #fff; font-size: 44px; font-weight: 700; margin: 0; }
.v-section { padding: 80px 0; }
.v-section-alt { background: var(--v-bg); }
.v-section-title { max-width: 720px; margin-bottom: 50px; }
.v-section-title .tp-section-title { margin-bottom: 14px; }
.v-section-desc { margin: 0; }
.v-flash { padding-top: 24px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* Brand gradients replace the template's stock photos (they are placeholders); no external images needed. */
.v-hero .tp-hero-3__bg, .v-banner { background-image: radial-gradient(circle at 85% 20%, rgba(51, 110, 249, .55) 0, rgba(51, 110, 249, 0) 55%), linear-gradient(135deg, #020626 0%, #0b1f66 100%) !important; }
.tp-section-title, .tp-service-3__title-sm, .tp-service-3__link a, .tp-price__title, .tp-hero__title, .breadcrumb__title, .accordion-buttons, .tp-footer__widget-title { text-transform: none; }

/* Home hero */
.tp-hero-3__bg { padding-top: 250px; padding-bottom: 110px; background-position: center; }
.tp-hero__subtitle { margin-bottom: 20px; }
.tp-hero__title { font-size: 64px; margin-bottom: 24px; }
.v-hero-desc { color: rgba(255, 255, 255, .88); font-size: 18px; max-width: 560px; margin-bottom: 32px; }
.v-hero .tp-hero-3__overlay::after { pointer-events: none; }

/* ===== 5. Buttons ===== */
.v-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--v-primary); color: #fff; font-family: var(--tp-ff-heading); font-weight: 700; font-size: 15px; line-height: 1; padding: 16px 30px; border-radius: 50px; border: 2px solid var(--v-primary); cursor: pointer; transition: all .25s; }
.v-btn:hover { background: var(--v-ink); border-color: var(--v-ink); color: #fff; }
.v-btn-sm { padding: 12px 22px; font-size: 14px; }
.v-btn-yellow { background: var(--v-accent); border-color: var(--v-accent); color: var(--v-ink); }
.v-btn-yellow:hover { background: #fff; border-color: #fff; color: var(--v-ink); }
.v-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.v-btn-ghost:hover { background: #fff; border-color: #fff; color: var(--v-ink); }
.v-btn-outline { background: transparent; border-color: var(--v-border); color: var(--v-ink); }
.v-btn-outline:hover { background: var(--v-primary); border-color: var(--v-primary); color: #fff; }
.v-btn[disabled], .v-btn.is-loading { opacity: .7; pointer-events: none; }
.v-btn.is-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: v-spin .7s linear infinite; }
@keyframes v-spin { to { transform: rotate(360deg); } }
.v-cta-btn { height: 56px; line-height: 56px; padding: 0 36px; font-size: 16px; }

/* ===== 6. Cards & components ===== */
.v-card { background: #fff; border: 1px solid var(--v-border); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 30px; margin-bottom: 30px; }
.v-card-title { font-size: 20px; font-weight: 700; color: var(--v-ink); margin-bottom: 18px; }
.v-card-title i { color: var(--v-primary); margin-right: 6px; }
.v-card-primary { background: linear-gradient(160deg, var(--v-primary) 0%, #0f3fc0 100%); border: 0; color: #fff; }
.v-card-primary .v-card-title, .v-card-primary p { color: #fff; }
.v-links { list-style: none; margin: 0; padding: 0; }
.v-links li { border-bottom: 1px solid var(--v-border); }
.v-links li:last-child { border-bottom: 0; }
.v-links a { display: block; padding: 10px 0; color: var(--v-ink); font-weight: 500; }
.v-links a:hover { color: var(--v-primary); padding-left: 6px; }
.v-news-item { padding: 16px 0; border-bottom: 1px solid var(--v-border); }
.v-news-item:last-child { border-bottom: 0; }
.v-news-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.v-news-item h3 a:hover { color: var(--v-primary); }
.news-views, .v-meta { font-size: 13px; color: var(--v-text); }
.v-article { line-height: 1.8; }
.v-article img { max-width: 100%; height: auto; border-radius: 8px; }
.v-article h2, .v-article h3 { margin: 24px 0 12px; }
.v-video { border-radius: 10px; overflow: hidden; }

/* Feature card (tp-service-3) */
.v-feature { background: #fff; height: 100%; border-radius: var(--v-radius); overflow: hidden; }
.v-feature .tp-service-3__title-sm { font-size: 20px; font-weight: 700; }
.v-feature .tp-service-3__title-sm a:hover { color: var(--v-primary); }
.v-feature-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(51, 110, 249, .1); color: var(--v-primary); font-size: 28px; display: inline-flex; align-items: center; justify-content: center; }
.v-feature:hover .v-feature-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.v-feature .tp-service-3__link { margin-top: 18px; }
.v-feature .tp-service-3__link a { font-weight: 700; color: var(--v-ink); }

/* Price card (tp-price) */
.v-price { height: 100%; border-radius: var(--v-radius); }
.v-price .tp-price__mpbs h4 em { font-size: 16px; font-style: normal; margin-left: 4px; }
.v-price .tp-price__content-wrap { padding-bottom: 36px; }

/* Info row */
.v-info { display: flex; align-items: center; gap: 16px; }
.v-info-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: rgba(51, 110, 249, .1); color: var(--v-primary); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.v-info-label { font-size: 14px; font-weight: 600; color: var(--v-text); margin: 0 0 2px; font-family: var(--tp-ff-body); }
.v-info-meta p { margin: 0; font-size: 17px; font-weight: 700; color: var(--v-ink); word-break: break-word; }
.v-info-meta a:hover { color: var(--v-primary); }

/* Accordion (tp-custom-accordion) */
.v-accordion .accordion-items { margin-bottom: 18px; border-radius: 10px; }
.v-numbers { list-style: none; margin: 0; padding: 0; }
.v-numbers li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--v-border); }
.v-numbers li:last-child { border-bottom: 0; }
.v-numbers a { color: var(--v-primary); font-weight: 700; }

/* Recharge card + amount picker */
.v-recharge-card { background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(2, 6, 38, .25); padding: 30px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.amount-grid label { margin: 0; position: relative; }
.amount-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-grid span { display: block; text-align: center; padding: 11px 0; border: 2px solid var(--v-border); border-radius: 10px; font-weight: 700; color: var(--v-ink); cursor: pointer; transition: all .2s; }
.amount-grid span:hover { border-color: var(--v-primary); }
.amount-grid input:checked + span { background: var(--v-primary); border-color: var(--v-primary); color: #fff; }
.amount-grid input:focus-visible + span { box-shadow: var(--v-focus); }
.v-calc-result { background: var(--v-bg); border-radius: 10px; padding: 12px 16px; color: var(--v-ink); }
.v-calc-result strong { color: var(--v-primary); font-size: 24px; }
.v-steps { padding-left: 20px; }
.v-steps li { padding: 4px 0; }
.v-summary { margin: 0 0 22px; }
.v-summary > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--v-border); }
.v-summary dt { font-weight: 500; color: var(--v-text); }
.v-summary dd { margin: 0; font-weight: 700; color: var(--v-ink); }
.v-summary-total { color: var(--v-primary) !important; font-size: 22px; }

/* CTA band (tp-cta-3) */
.v-cta { padding: 0 0 80px; }
.v-section-alt + .v-cta, .v-cta { margin-top: 0; }
.v-cta-box { border-radius: var(--v-radius); padding: 44px 50px; margin-top: 80px; }
.tp-cta-3__title-sm { color: #fff; font-size: 28px; font-weight: 700; margin: 0; }
.v-cta-phone span { display: block; color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.3; }
.v-cta-phone a { color: #fff; font-size: 22px; font-weight: 700; font-family: var(--tp-ff-heading); }

/* ===== 7. Forms ===== */
.v-form-card { background: #fff; border: 1px solid var(--v-border); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 36px; }
.v-form-intro { color: var(--v-text); margin-bottom: 24px; }
.v-form-section { font-size: 16px; font-weight: 700; color: var(--v-ink); padding-bottom: 8px; margin: 10px 0 18px; border-bottom: 1px solid var(--v-border); }
.v-req-mark, .v-required::after { color: #e5383b; }
.v-required::after { content: " *"; }
.form-label { font-weight: 600; color: var(--v-ink); font-size: 14px; margin-bottom: 6px; }
input.form-control, textarea.form-control, select.form-select { height: 52px; line-height: normal; padding: 0 18px; border: 1px solid var(--v-border); border-radius: 10px; background-color: #fff; font-size: 15px; color: var(--v-ink); box-shadow: none; }
textarea.form-control { height: auto; padding: 14px 18px; }
select.form-select { padding-right: 40px; }
input.form-control:focus, textarea.form-control:focus, select.form-select:focus { border-color: var(--v-primary); box-shadow: var(--v-focus); outline: 0; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #e5383b; background-image: none; }
.invalid-feedback { color: #c1121f; font-size: 13px; margin-top: 6px; }
.form-text { color: var(--v-text); font-size: 13px; }
.form-check-input { width: 1.15em; height: 1.15em; }
.form-check-input:checked { background-color: var(--v-primary); border-color: var(--v-primary); }
legend.form-label { float: none; padding: 0; }
.v-tabs .nav-link { border-radius: 50px; padding: 12px 24px; color: var(--v-ink); font-weight: 700; background: var(--v-bg); margin: 0 4px 8px; }
.v-tabs .nav-link.active, .v-tabs .nav-link:hover { background: var(--v-primary); color: #fff; }

/* ===== 8. States (alerts, empty, error, pager) ===== */
.v-alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; border-width: 1px; padding: 14px 18px; margin-bottom: 20px; }
.v-alert i { margin-top: 4px; }
.v-alert ul { margin: 0; padding-left: 18px; }
.v-empty { text-align: center; padding: 40px 20px; color: var(--v-text); }
.v-empty i { font-size: 42px; color: #c3c9d6; margin-bottom: 12px; display: block; }
.v-empty p { margin-bottom: 16px; }
.v-error { max-width: 560px; margin: 0 auto; padding: 20px 0; }
.v-error-code { font-family: var(--tp-ff-heading); font-weight: 800; font-size: 120px; line-height: 1; color: var(--v-primary); }
.v-error h2 { margin: 12px 0; }
.v-error p { margin-bottom: 26px; }
.pagination { margin-top: 30px; gap: 6px; flex-wrap: wrap; }
.page-link { color: var(--v-primary); border-radius: 8px !important; border: 1px solid var(--v-border); }
.page-item.active .page-link { background: var(--v-primary); border-color: var(--v-primary); color: #fff; }
.page-item.disabled .page-link { color: #a5abba; }

/* ===== 9. Footer & misc ===== */
.v-footer .tp-footer__info p, .v-footer .tp-footer__main-location { color: rgba(255, 255, 255, .75); font-size: 15px; }
.v-footer .tp-footer__main-location i { color: var(--v-accent); }
.v-footer .tp-footer__widget-content li { list-style: none; margin-bottom: 10px; }
.v-footer .tp-footer__widget-content a { color: rgba(255, 255, 255, .75); }
.v-footer .tp-footer__widget-content a:hover { color: var(--v-accent); }
.v-footer .tp-copyright__inner p { color: rgba(255, 255, 255, .7); margin: 0; font-size: 14px; }
.v-legal a { color: rgba(255, 255, 255, .75); margin-left: 24px; font-size: 14px; }
.v-legal a:first-child { margin-left: 0; }
.v-legal a:hover { color: var(--v-accent); }
.v-back-to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--v-primary); color: #fff; box-shadow: 0 6px 20px rgba(51, 110, 249, .4); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s; z-index: 98; }
.v-back-to-top.show { opacity: 1; visibility: visible; }
.v-back-to-top:hover { background: var(--v-ink); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== 10. Responsive ===== */
@media (max-width: 1199px) {
  .tp-hero__title { font-size: 52px; }
  .tp-header-3__customize { padding: 10px 20px; }
}
@media (max-width: 991px) {
  .tp-header-3__transparent { position: absolute; }
  .tp-header-3__customize { margin-top: 0; border-radius: 0 0 12px 12px; }
  .breadcrumb__height { padding-top: 140px; padding-bottom: 60px; }
  .breadcrumb__title { font-size: 34px; }
  .tp-hero-3__bg { padding-top: 130px; padding-bottom: 70px; }
  .tp-hero__title { font-size: 44px; }
  .v-section { padding: 60px 0; }
  .v-cta-box { margin-top: 60px; padding: 36px 24px; }
}
@media (max-width: 767px) {
  .breadcrumb__height { padding-top: 120px; padding-bottom: 44px; }
  .breadcrumb__title { font-size: 28px; }
  .tp-hero__title { font-size: 34px; }
  .v-hero-desc { font-size: 16px; }
  .v-section { padding: 44px 0; }
  .v-section-title { margin-bottom: 32px; }
  .v-card, .v-form-card, .v-recharge-card { padding: 22px; }
  .v-form-card { padding: 24px 20px; }
  .v-error-code { font-size: 88px; }
  .tp-cta-3__title-sm { font-size: 22px; }
  .v-legal a { display: inline-block; margin: 0 10px; }
  .container { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-hero__title { font-size: 30px; }
}
