*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body.light-v2-body{
    background:#f5f7fc;
    color:#0f172a;
    line-height:1.45;
}

body.light-v2-body::before{
        content:"";
        position:fixed;
        inset:0;
        pointer-events:none;
        background:
            radial-gradient(1000px 520px at 100% 0%, rgba(37,99,235,.10), transparent 62%),
            radial-gradient(900px 440px at 0% 100%, rgba(59,130,246,.08), transparent 60%);
        z-index:-1;
}

.container{
    width:min(1200px, 92%);
    margin:auto;
}

.light-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 0;
}

:root {
  --wc-tg-top-inset: 0px;
  --wc-tg-bottom-inset: 0px;
}

body.light-v2-body .wc-neo-locale-toggle{
    color:#1f3f7a;
    border-color:#cfdcf6;
    background:#edf3ff;
}

body.light-v2-body .wc-neo-locale-menu{
    background:#ffffff;
    border:1px solid #d8e3f8;
    box-shadow:0 14px 28px rgba(30, 64, 128, 0.16);
}

body.light-v2-body .wc-neo-locale-item{
    color:#1f2f4f;
    background:#f3f7ff;
    opacity:1;
}

body.light-v2-body .wc-neo-locale-item:hover,
body.light-v2-body .wc-neo-locale-item.is-active{
    color:#17366f;
    background:#e7efff;
    border-color:#c3d6ff;
}

.logo{
    font-size:clamp(24px, 2.4vw, 34px);
    font-weight:800;
    letter-spacing:.2px;
}

.light-header nav{
    display:flex;
    align-items:center;
    gap:clamp(10px, 1.6vw, 22px);
    flex-wrap:wrap;
}

.light-nav-toggle{
    display:none;
    min-height:38px;
    padding:8px 14px;
    border-radius:10px;
    border:1px solid #e4e8f1;
    background:#f9fafc;
    color:#475569;
    font-weight:700;
    box-shadow:none;
    cursor:pointer;
}

.light-nav-toggle:hover{
    background:#ffffff;
    color:#334155;
}

.light-header nav a{
    text-decoration:none;
    color:#475569;
    font-weight:600;
    font-size:clamp(14px, 1.2vw, 16px);
    transition:color .16s ease;
}

.light-header nav a:hover{
    color:#1d4ed8;
}

.nav-login,
.btn-outline{
    border:1px solid #d5dbea;
    border-radius:12px;
    padding:8px 14px;
}

.light-main{
    padding-bottom:54px;
}

.hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:clamp(18px, 4vw, 46px) 0 clamp(18px, 3vw, 36px);
    gap:clamp(16px, 2.6vw, 34px);
}

.hero-text{
    max-width:min(580px, 100%);
}

.hero h1{
    font-size:clamp(42px, 6.1vw, 66px);
    font-weight:800;
    margin-bottom:16px;
    line-height:1.03;
    letter-spacing:-0.02em;
    color:#111827;
}

.hero p{
    font-size:clamp(16px, 1.75vw, 21px);
    margin-bottom:clamp(16px, 2vw, 26px);
    color:#5f687b;
    line-height:1.38;
}

.hero-image img{
    width:min(620px, 100%);
    max-width:100%;
    filter:drop-shadow(0 22px 42px rgba(15,23,42,.12));
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:clamp(10px, 1.2vw, 12px) clamp(16px, 2.2vw, 28px);
    border-radius:11px;
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:white;
    border:none;
    text-decoration:none;
    font-size:clamp(14px, 1.5vw, 17px);
    font-weight:600;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(37,99,235,.22);
}

.btn:hover{
    filter:brightness(1.03);
    transform:translateY(-1px);
}

.btn:active{
    transform:translateY(0);
}

.btn-outline{
    background:#fff;
    color:#64748b;
    box-shadow:none;
    font-size:clamp(13px, 1.2vw, 16px);
}

.inline-form{
    display:inline-flex;
}

.nav-logout-btn{
    min-height:36px;
    padding:8px 18px;
    border-radius:10px;
    border:1px solid #e4e8f1;
    background:#f9fafc;
    color:#475569;
    font-weight:600;
    box-shadow:none;
    font-size:15px;
}

.nav-logout-btn:hover{
    background:#ffffff;
    color:#334155;
    transform:none;
    filter:none;
}

.section-title{
    font-size:clamp(30px, 3.2vw, 44px);
    font-weight:800;
    margin:20px 0 16px;
    width:100%;
    max-width:none;
    letter-spacing:-0.01em;
}

.light-title-center{
    text-align:center;
    margin-top:34px;
}

.section-title-inline{
    width:100%;
    max-width:none;
    margin:0 0 16px;
    font-size:clamp(30px, 3vw, 40px);
    text-align:center;
}

.features{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:10px 0 26px;
    gap:clamp(14px, 1.8vw, 26px);
}

.feature-card{
    background:white;
    padding:clamp(18px, 2.1vw, 28px) clamp(16px, 1.8vw, 26px);
    border-radius:18px;
    box-shadow:0 12px 26px rgba(15,23,42,0.07);
    text-align:left;
    border:1px solid #edf1f8;
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.feature-card::before{
    display:none;
}

.light-features .feature-card::before{
    content:"";
    position:absolute;
    left:-14%;
    right:-14%;
    bottom:-8px;
    height:130px;
    background:
      radial-gradient(120% 70% at 50% 106%, rgba(147,197,253,.34) 0%, rgba(147,197,253,.20) 48%, rgba(147,197,253,0) 56%),
      radial-gradient(120% 74% at 50% 114%, rgba(191,219,254,.72) 0%, rgba(191,219,254,.42) 45%, rgba(191,219,254,0) 56%),
      linear-gradient(to top, rgba(241,247,255,.92) 0%, rgba(241,247,255,0) 72%);
    pointer-events:none;
    display:block;
}

.feature-card img{
    width:clamp(58px, 6.8vw, 78px);
    margin-top:auto;
    margin-bottom:6px;
    background:#f4f8ff;
    border:1px solid #dbe7ff;
    border-radius:999px;
    padding:12px;
    position:relative;
    z-index:1;
}

.feature-icon-bottom{
    margin:14px auto 0;
    align-self:center;
}

.feature-card h3{
    font-size:clamp(20px, 1.7vw, 30px);
    line-height:1.2;
    margin-bottom:10px;
    position:relative;
    z-index:1;
}

.feature-card p{
    color:#606980;
    font-size:clamp(15px, 1.05vw, 18px);
    line-height:1.34;
    position:relative;
    z-index:1;
    max-width:320px;
}

.tariffs-preview{
    margin-top:0;
}

.tariff-card{
    padding:24px;
}

.tariff-card::before{
    display:none;
}

.tariff-card-compact{
    min-height:192px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    text-align:center;
    gap:8px;
}

.tariff-card-compact .btn{
    min-width:140px;
    margin-top:auto;
}

.light-landing-hero .hero-text{
    max-width:620px;
}

.light-landing-hero .hero-image{
    flex:1;
    display:flex;
    justify-content:flex-end;
}

.light-features .feature-card{
    min-height:240px;
}

.light-bottom-showcase{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:4px;
}

.light-bottom-showcase-single{
    grid-template-columns:1fr;
}

.light-bottom-col{
    display:grid;
    gap:12px;
    align-content:start;
    max-width:1200px;
    margin:0 auto;
}

.light-tariff-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.light-controls-card{
    background:#fff;
    border:1px solid #e3e9f5;
    border-radius:16px;
    box-shadow:0 10px 24px rgba(15,23,42,0.06);
    padding:14px;
    display:grid;
    gap:10px;
}

.light-controls-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.light-input-row{
    grid-template-columns:1fr 44px;
}

.light-controls-row .btn{
    width:100%;
}

.light-controls-row input{
    min-height:42px;
    border-radius:10px;
    border:1px solid #d7deed;
    background:#f9fbff;
    padding:10px 12px;
}

.light-check{
    border:1px solid #d7deed;
    background:#f0f5ff;
    color:#64748b;
    border-radius:10px;
    font-weight:700;
}

.light-cta-card{
    text-align:center;
    min-height:208px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    margin-top:10px;
}

.light-landing-footer{
    text-align:center;
    margin:50px 0 8px;
    color:#8b95aa;
    font-size:clamp(14px, 1.2vw, 18px);
}

.light-cta-card .btn{
    margin:4px auto 0;
    min-width:206px;
}

.tariff-price{
    font-size:clamp(30px, 4vw, 40px) !important;
    color:#111827 !important;
    font-weight:800;
    margin:10px 0 12px;
}

.tariff-card-compact h3{
    font-size:clamp(30px, 1.9vw, 40px);
    margin-bottom:0;
}

.tariff-period{
    font-size:14px;
    font-weight:700;
    color:#5f6f8b;
    margin:0;
}

.tariff-meta{
    margin:0;
    font-size:14px;
    color:#6a768f;
    line-height:1.35;
}

.tariff-card-compact .btn{
    min-height:40px;
    font-size:clamp(18px, 1.25vw, 22px);
}

.m2-notice{
  margin-bottom:12px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #dbe3f3;
  background:#ffffff;
  color:#0f172a;
}

.m2-success{border-color:#bde4cf;background:#ecfdf3;color:#166534}
.m2-error{border-color:#f3c9ce;background:#fff2f2;color:#b42318}

.m2-grid{display:grid;gap:14px;margin-bottom:14px}
.m2-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.m2-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}

.m2-card{
  background:#fff;
  border:1px solid #e6eaf3;
    border-radius:clamp(14px, 1.6vw, 20px);
    padding:clamp(14px, 1.8vw, 20px);
    box-shadow:0 12px 30px rgba(15,23,42,0.06);
}

.m2-card h1,
.m2-card h2,
.m2-card h3{
    color:#0f172a;
}

.m2-kpi-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  border-radius:999px;
  padding:0 12px;
  background:#eef4ff;
  color:#2563eb;
  font-size:14px;
  font-weight:600;
}

.m2-stack-16{margin-top:16px}
.m2-muted{color:#64748b}
.m2-actions{display:flex;gap:10px;flex-wrap:wrap}

.m2-props p{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px dashed #e5e7eb;
  padding:10px 0;
}
.m2-kicker{color:#64748b;font-size:14px}
.m2-metric{font-size:36px;font-weight:800;color:#0f172a;margin-top:8px}

.m2-content-wrap,
.m2-content,
.m2-shell{
    width:100%;
}

.m2-chip-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:8px 12px;
    border-radius:12px;
    border:1px solid #d7deed;
    background:#fff;
    color:#475569;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    transition:all .14s ease;
}

.m2-chip-link.is-active{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

.m2-chip-link:hover{
    border-color:#bfd3ff;
    color:#1d4ed8;
}

.m2-field{display:grid;gap:6px;font-size:14px;color:#334155}
.m2-form-grid{display:grid;gap:12px}

.m2-input,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #d8deeb;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#8bb3ff;
    box-shadow:0 0 0 3px rgba(59,130,246,.14);
}

label{
    color:#334155;
}

.notice,
.muted{
    color:#64748b;
}

.m2-auth-layout{
    display:grid;
    grid-template-columns:minmax(280px, 1fr) minmax(340px, 1fr);
    gap:20px;
}

.light-dashboard{
    margin-top:2px;
}

.light-dashboard .m2-card{
    background:#f8f9fc;
    border:1px solid #e7ebf4;
    border-radius:16px;
    box-shadow:none;
    padding:16px;
}

.light-dashboard-top{
    margin-top:4px;
}

.light-dash-main-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 170px;
    gap:16px;
    align-items:center;
}

.light-main-actions{
    display:grid;
    gap:10px;
}

.light-main-actions .btn{
    width:100%;
    min-height:54px;
    border-radius:12px;
    font-size:clamp(16px, 1.2vw, 19px);
    line-height:1.1;
    padding:12px 10px;
    text-align:center;
}

.light-main-actions .btn.btn-outline{
    background:#f3f5fa;
    color:#64748b;
    border-color:#e3e8f2;
}

.light-dashboard .m2-kpi-pill{
    min-height:32px;
    padding:0 12px;
    border:1px solid #c7dafb;
    color:#2f65d9;
    background:#eef5ff;
    font-size:16px;
    font-size:clamp(13px, 1vw, 16px);
}

.light-dashboard .m2-hero-card h1{
    margin-top:10px;
    margin-bottom:8px;
    font-size:clamp(36px, 2.8vw, 56px);
    line-height:1.1;
    letter-spacing:-0.01em;
}

.light-dashboard .m2-hero-card .m2-muted{
    color:#7a869c;
    max-width:510px;
    font-size:clamp(17px, 1.2vw, 20px);
    line-height:1.34;
}

.light-quick-panel h2{
    font-size:clamp(38px, 2.5vw, 50px);
    line-height:1.1;
    margin-bottom:4px;
}

.light-quick-panel .m2-props{
    margin-top:6px;
}

.light-quick-panel .m2-props p{
    border-bottom:1px dashed #d7ddea;
    padding:12px 0;
    color:#4b5d79;
    font-size:clamp(16px, 1.02vw, 19px);
}

.light-quick-panel .m2-props p b{
    color:#1e2f4d;
    font-weight:700;
}

.light-quick-panel > .btn{
    width:100%;
    justify-content:center;
    background:transparent;
    border:0;
    color:#7c8aa3;
    min-height:40px;
    padding:6px 10px;
    box-shadow:none;
}

.light-quick-panel > .btn:hover{
    color:#596a86;
    background:transparent;
    transform:none;
}

.light-dashboard-kpis .m2-card{
    min-height:112px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.light-dashboard-kpis .m2-kicker{
    font-size:clamp(21px, 1.35vw, 26px);
    color:#7d8ba3;
    text-transform:uppercase;
    letter-spacing:.02em;
    margin-bottom:6px;
}

.light-dashboard-kpis .m2-metric{
    font-size:clamp(52px, 3vw, 68px);
    line-height:1;
    margin-top:0;
}

.m2-auth-side,
.m2-auth-main,
.auth-card,
.card{
    background:#fff;
    border:1px solid #e6eaf3;
    border-radius:20px;
    padding:22px;
    box-shadow:0 15px 40px rgba(15,23,42,0.06);
}

.m2-auth-main-lg,
.m2-auth-side-lg{
    min-height:100%;
}

.m2-feature-list{
    margin:0;
    padding-left:20px;
    display:grid;
    gap:10px;
    color:#64748b;
}

.m2-keys-header{
    margin-bottom:18px;
}

.m2-payments-top-grid,
.m2-dashboard-hero-grid{
    margin-top:10px;
}

.m2-payment-info-card .m2-list-steps{
    margin-bottom:12px;
}

.m2-tariff-item{
    border:1px solid #e4eaf6;
    border-radius:16px;
    padding:16px;
    background:#fff;
}

.m2-row-between{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.m2-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.m2-chip{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    border-radius:999px;
    padding:0 11px;
    border:1px solid #d4e2ff;
    background:#eff5ff;
    color:#2563eb;
    font-size:13px;
    font-weight:600;
}

.m2-actions-wrap,
.m2-inline-form,
.m2-install-top-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.m2-inline-form .m2-input,
.m2-actions-wrap .m2-input{
    min-height:38px;
    padding:8px 10px;
}

.m2-inline-form .m2-btn,
.m2-actions-wrap .m2-btn{
    min-height:38px;
    padding:8px 14px;
    font-size:14px;
}

.m2-break-all{
    word-break:break-all;
}

.m2-table tbody tr:hover{
    background:#f8fbff;
}

.m2-table td{
    color:#334155;
}

.m2-table th{
    color:#64748b;
}

.m2-platform-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.m2-platform-tab,
.m2-app-btn{
    border:1px solid #d6deef;
    border-radius:12px;
    background:#fff;
    color:#475569;
    min-height:38px;
    padding:8px 12px;
    cursor:pointer;
    font-weight:600;
}

.m2-platform-tab.is-active,
.m2-app-btn.is-active{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

.m2-apps-grid{
    display:grid;
    gap:8px;
    margin-top:10px;
}

.m2-install-grid{
    margin-top:14px;
    display:grid;
    grid-template-columns:320px minmax(0,1fr);
    gap:14px;
}

.m2-install-sidebar,
.m2-install-main,
.m2-app-card{
    border:1px solid #e2e8f4;
    border-radius:16px;
    padding:14px;
    background:#fff;
}

.m2-app-card{
    margin-bottom:12px;
}

.keys-table td,
.keys-table th{
    vertical-align:top;
}

.m2-btn,
.btn{
    min-height:42px;
}

.m2-btn-danger{
    background:#ffe9ec;
    color:#b42318;
    border:1px solid #f5b7c0;
    box-shadow:none;
}

.m2-btn-danger:hover{
    filter:brightness(1.01);
}

.m2-btn-ghost{
    background:#fff;
    color:#475569;
    border:1px solid #d7deed;
    box-shadow:none;
}

a{
    color:#2563eb;
}

a:hover{
    color:#1d4ed8;
}

.m2-chart-wrap{
    position:relative;
    width:100%;
    min-height:220px;
    height:260px;
}

.m2-chart-wrap canvas{
    width:100% !important;
    height:100% !important;
    display:block;
}

textarea{min-height:110px;resize:vertical}

.m2-table-wrap{overflow:auto}
.m2-table{width:100%;border-collapse:collapse;min-width:680px}
.m2-table th,.m2-table td{padding:10px 8px;border-bottom:1px solid #edf0f6;text-align:left}
.m2-table thead th{color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.02em}

.m2-user-actions{
    align-items:stretch;
    gap:6px;
}

.m2-user-actions > a.m2-btn,
.m2-user-actions > form{
    display:flex;
    margin:0;
}

.m2-user-actions > form > .m2-btn,
.m2-user-actions > a.m2-btn{
    width:100%;
    justify-content:center;
    min-height:36px;
}

body.light-v2-body .m2-topbar-sub,
body.light-v2-body .m2-kicker,
body.light-v2-body .m2-table thead th,
body.light-v2-body .m2-muted,
body.light-v2-body .muted,
body.light-v2-body .notice{
    color:#5f6f8b;
}

body.light-v2-body .m2-props p{
    color:#334155;
}

body.light-v2-body .m2-props span{
    color:#64748b;
}

body.light-v2-body .m2-props b{
    color:#0f172a;
    font-weight:700;
}

@media (max-width: 900px){
    .m2-user-actions{
        display:grid;
        grid-template-columns:1fr;
        width:100%;
    }

    .m2-user-actions > a.m2-btn,
    .m2-user-actions > form{
        width:100%;
    }
}

.light-v2-auth .light-header{
    padding:20px 0;
    border-bottom:1px solid #e2e8f0;
    margin-bottom:10px;
}

.light-v2-auth .light-header nav a{
    font-weight:500;
    color:#475569;
}

.light-v2-auth .nav-logout-btn{
    background:#2563eb;
    color:#fff;
    border:0;
    border-radius:8px;
    min-height:34px;
    padding:6px 15px;
}

.light-v2-auth .light-dashboard{
    margin-top:0;
}

.light-v2-auth .light-dashboard .m2-card{
    background:#fff;
    border:1px solid #e7ebf4;
    border-radius:16px;
    box-shadow:0 5px 20px rgba(15,23,42,0.03);
    padding:24px;
}

.light-v2-auth .m2-grid{
    gap:20px;
    margin-bottom:0;
}

.light-v2-auth .light-dashboard-top{
    margin-top:8px;
}

.light-v2-auth .m2-kpi-pill{
    min-height:auto;
    padding:0;
    border:0;
    background:transparent;
    color:#2563eb;
    font-size:12px;
    font-weight:600;
}

.light-v2-auth .light-dash-title{
    margin-top:8px;
    margin-bottom:10px;
    font-size:32px;
    line-height:1.2;
    letter-spacing:0;
}

.light-v2-auth .m2-hero-card .m2-muted{
    color:#64748b;
    max-width:none;
    font-size:14px;
    line-height:1.45;
}

.light-v2-auth .light-main-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.light-v2-auth .light-main-actions .btn{
    width:auto;
    min-height:40px;
    border-radius:8px;
    font-size:14px;
    line-height:1;
    padding:10px 20px;
    box-shadow:none;
}

.light-v2-auth .light-main-actions .btn.btn-outline{
    background:#e2e8f0;
    border:0;
    color:#0f172a;
}

.light-v2-auth .light-quick-panel h2{
    font-size:24px;
    line-height:1.2;
    margin-bottom:10px;
}

.light-v2-auth .light-quick-panel .m2-props{
    margin-top:0;
}

.light-v2-auth .light-quick-panel .m2-props p{
    border-bottom:0;
    padding:4px 0;
    color:#64748b;
    font-size:14px;
    justify-content:flex-start;
    gap:6px;
}

.light-v2-auth .light-quick-panel .m2-props p b{
    color:#0f172a;
    font-weight:600;
}

.light-v2-auth .light-quick-panel > .btn{
    width:auto;
    justify-content:center;
    background:#e2e8f0;
    border:0;
    color:#0f172a;
    border-radius:8px;
    min-height:40px;
    padding:10px 20px;
    box-shadow:none;
}

.light-v2-auth .light-quick-panel > .btn:hover{
    color:#0f172a;
    background:#d9e1ec;
    transform:none;
}

.light-v2-auth .light-dashboard-kpis{
    margin-top:20px;
}

.light-v2-auth .light-dashboard-kpis .m2-card{
    min-height:120px;
    text-align:center;
    padding:20px;
}

.light-v2-auth .light-dashboard-kpis .m2-kicker{
    font-size:14px;
    color:#64748b;
    text-transform:none;
    letter-spacing:0;
    margin-bottom:10px;
}

.light-v2-auth .light-dashboard-kpis .m2-metric{
    font-size:28px;
    line-height:1.1;
    margin-top:0;
}

@media (max-width: 1200px){
    .m2-install-grid{grid-template-columns:280px minmax(0,1fr)}
}

@media (max-width: 1024px){
    .hero{align-items:flex-start}
    .hero h1{font-size:clamp(34px, 6vw, 58px)}
    .m2-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
    .features{grid-template-columns:repeat(2,minmax(0,1fr))}
    .m2-auth-layout{grid-template-columns:1fr}
    .light-bottom-showcase{grid-template-columns:1fr}
    .light-dash-main-grid{grid-template-columns:1fr}
    .light-main-actions{grid-template-columns:1fr 1fr}
    .light-v2-auth .m2-grid-3{grid-template-columns:1fr}
    .light-tariff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 980px){
    .light-nav-toggle{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        width:100%;
    }

    .light-header nav[hidden]{
        display:none !important;
    }

    .hero{flex-direction:column;align-items:flex-start;padding:30px 0 24px}
    .features{grid-template-columns:1fr}
  .m2-grid-2,.m2-grid-3{grid-template-columns:1fr}
    .m2-install-grid{grid-template-columns:1fr}
  .light-header{flex-direction:column;align-items:flex-start;gap:12px}
    .light-header nav{width:100%;gap:8px}
    .btn{font-size:16px}
        .light-landing-hero .hero-image{justify-content:center;width:100%}
    .light-dashboard .m2-hero-card h1{font-size:clamp(32px, 7vw, 46px)}
    .light-quick-panel h2{font-size:clamp(30px, 6vw, 42px)}
    .light-dashboard-kpis .m2-metric{font-size:clamp(42px, 9vw, 56px)}
    .section-title{font-size:clamp(30px, 6.2vw, 42px)}
    .section-title-inline{font-size:clamp(28px, 6vw, 36px)}
    .light-title-center{margin-top:20px}
}

@media (max-width: 768px){
    .container{width:94%}
    .light-header{padding:18px 0}
    .light-main{padding-bottom:calc(122px + env(safe-area-inset-bottom))}
    .light-header nav a,
    .light-header nav .btn-outline{
        min-height:36px;
        padding:8px 10px;
    }
    .section-title{width:94%}
    .m2-table{min-width:560px}
    .m2-actions-wrap,
    .m2-inline-form,
    .m2-install-top-actions,
    .m2-actions{
        width:100%;
    }
    .m2-actions .btn,
    .m2-install-top-actions .btn{
        flex:1 1 auto;
    }
    .m2-row-between{align-items:flex-start;flex-direction:column}
    .m2-kpi-pill{font-size:12px}
    .light-tariff-grid{grid-template-columns:1fr}
    .light-controls-row{grid-template-columns:1fr}
    .light-input-row{grid-template-columns:1fr 44px}
    .light-cta-card .btn{min-width:0;width:100%}
    .light-main-actions{grid-template-columns:1fr}
    .light-v2-auth .light-main-actions{display:grid;grid-template-columns:1fr}
    .light-v2-auth .light-main-actions .btn{width:100%}
}

@media (max-width: 560px){
    .hero{padding:24px 0 18px}
    .hero-image img{max-width:96%;margin:0 auto;display:block}
    .feature-card{border-radius:16px}
    .m2-card{border-radius:16px}
    .m2-table{min-width:480px}
    .m2-table th,.m2-table td{padding:8px 6px}
    .m2-auth-side,
    .m2-auth-main,
    .auth-card,
    .card{padding:16px}
    .btn,
    .m2-btn{width:100%}
    .inline-form{width:100%}
}

@media (max-width: 420px){
    .logo{letter-spacing:0}
    .hero h1{line-height:1.12}
    .hero p{line-height:1.4}
    .m2-field{font-size:13px}
    .m2-input,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea{min-height:40px;padding:8px 10px}
}

.m2-subscription-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.m2-subscription-extend-form{
    display:inline-flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:8px;
    margin:0;
}

.m2-subscription-days-input,
.m2-subscription-extend-form .m2-input,
.m2-subscription-extend-form .m2-btn{
    width:auto !important;
    flex:0 0 auto;
}

.m2-subscription-days-input{
    max-width:100px;
}

.m2-subscription-actions .m2-btn,
.m2-subscription-extend-form .m2-btn,
.m2-subscription-extend-form .m2-input{
    min-height:38px !important;
    height:38px;
}

.m2-subscription-extend-form .m2-input{
    padding-top:0;
    padding-bottom:0;
}

.m2-table td > input[type="checkbox"]{
    width:13px !important;
    height:13px !important;
    min-width:13px !important;
    min-height:13px !important;
    max-width:13px !important;
    max-height:13px !important;
    display:block;
    margin:0 auto;
    padding:0 !important;
}

@media (max-width: 900px){
    html,
    body.light-v2-body{
        min-height:100dvh;
    }

    body.light-v2-body{
        position:relative;
        overflow-x:hidden;
    }

    body.light-v2-body::before{
        position:absolute;
        inset:0;
        min-height:100%;
        height:100%;
    }

    .light-header{
        position:static;
        top:auto;
    }
}

@media (max-width: 760px){
    .container{
        width:min(100%, 96%);
    }

    .light-header{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        padding:14px 0;
    }

    .light-header nav{
        display:grid;
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:8px;
        width:100%;
    }

    .light-header nav a,
    .light-header nav .btn,
    .light-header nav .nav-login,
    .light-header nav .nav-logout-btn,
    .inline-form{
        width:100%;
        text-align:center;
    }

    .light-main{
        padding-bottom:calc(122px + env(safe-area-inset-bottom));
    }

    .section-title,
    .section-title-inline,
    .hero h1{
        line-height:1.2;
    }

    .m2-grid-2,
    .m2-grid-3,
    .m2-auth-grid,
    .m2-dashboard-hero-grid,
    .m2-payments-top-grid,
    .grid.two,
    .features{
        grid-template-columns:1fr !important;
    }

    .m2-card,
    .auth-card,
    .card,
    .m2-auth-side,
    .m2-auth-main,
    .m2-install-main,
    .m2-install-sidebar{
        padding:12px;
    }

    .m2-topbar-sub,
    .m2-muted,
    .m2-field,
    p,
    li,
    td,
    th{
        line-height:1.45;
        font-size:13px;
    }

    .m2-table-wrap{
        overflow:visible;
    }

    .m2-table:not(.keys-table),
    .m2-table:not(.keys-table) thead,
    .m2-table:not(.keys-table) tbody,
    .m2-table:not(.keys-table) tr,
    .m2-table:not(.keys-table) td{
        display:block;
        width:100%;
    }

    .m2-table:not(.keys-table){
        min-width:0 !important;
        border:0;
        background:transparent;
        box-shadow:none;
    }

    .m2-table:not(.keys-table) thead{
        display:none;
    }

    .m2-table:not(.keys-table) tr{
        margin-bottom:10px;
        padding:10px;
        border-radius:12px;
        border:1px solid #dbe5f5;
        background:#ffffff;
    }

    .m2-table:not(.keys-table) td{
        border:0 !important;
        padding:6px 0;
        white-space:normal;
        word-break:break-word;
    }

    .m2-table:not(.keys-table) td::before{
        content:attr(data-col-label);
        display:block;
        margin-bottom:3px;
        font-size:11px;
        font-weight:700;
        letter-spacing:.05em;
        text-transform:uppercase;
        opacity:.78;
    }

    .light-v2-body .m2-table.keys-table tr{
        margin-bottom:10px;
        padding:10px;
        border-radius:12px;
        border:1px solid #dbe5f5;
        background:#ffffff;
        box-shadow:0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .light-v2-body .m2-table.keys-table td{
        border:0 !important;
        padding:6px 0;
        color:#334155;
        background:transparent !important;
    }

    .light-v2-body .m2-table.keys-table td::before{
        color:#64748b;
    }
}

@media (max-width: 520px){
    .light-header nav{
        grid-template-columns:1fr;
    }
}

@media (max-width: 900px){
    .light-main,
    .m2-content-wrap{
        padding-bottom:calc(132px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 980px){
    body.wc-tg-miniapp.light-v2-body .light-main,
    body.wc-tg-miniapp.light-v2-body .m2-content-wrap,
    body.wc-tg-miniapp.light-v2-body .container.light-main,
    body.wc-tg-browser.light-v2-body .light-main,
    body.wc-tg-browser.light-v2-body .m2-content-wrap,
    body.wc-tg-browser.light-v2-body .container.light-main{
        padding-top:calc(8px + var(--wc-tg-top-inset, 10px)) !important;
        padding-bottom:calc(196px + env(safe-area-inset-bottom) + var(--wc-tg-bottom-inset, 28px)) !important;
    }

    body.wc-tg-miniapp.light-v2-body .wc-mobile-nav,
    body.wc-tg-browser.light-v2-body .wc-mobile-nav{
        bottom:calc(10px + env(safe-area-inset-bottom) + var(--wc-tg-bottom-inset, 28px)) !important;
    }
}

/* legal footer */
.wc-legal-footer{color:#94a3b8}
.wc-legal-footer a{color:#64748b}
.wc-legal-footer a:hover{color:#3b82f6}
.wc-legal-sep{color:#cbd5e1}

/* checkbox field light override */
.m2-field-checkbox > span{color:#64748b}
.m2-field-checkbox > span a{color:#3b82f6}
.m2-field-checkbox input[type="checkbox"]{accent-color:#3b82f6}

