/* ==========================================================================
   Wisemattic Account — login and customer dashboard
   ========================================================================== */

.wmacc{--ink:#0f172a;--text:#334155;--muted:#64748b;--line:#e2e8f0;--soft:#f8fafc;--brand:#4f46e5;--brand-dark:#4338ca;--accent:#ff5b24;color:var(--text);font-family:inherit;box-sizing:border-box}
.wmacc *,.wmacc *::before,.wmacc *::after{box-sizing:border-box}
.wmacc h1,.wmacc h2,.wmacc h3,.wmacc p,.wmacc dl,.wmacc dd,.wmacc ul{margin:0}
.wmacc a{color:var(--brand);text-decoration:none;font-weight:600}
.wmacc a:hover{color:var(--brand-dark);text-decoration:underline}
.wmacc svg{flex-shrink:0}
.wmacc .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Buttons */
.wmacc .wmacc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:12px;border:1px solid transparent;font:inherit;font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,color .18s ease}
.wmacc .wmacc-btn:hover{transform:translateY(-1px);text-decoration:none}
.wmacc .wmacc-btn-primary{background:var(--brand);color:#fff;box-shadow:0 10px 24px rgba(79,70,229,.28)}
.wmacc .wmacc-btn-primary:hover{background:var(--brand-dark);color:#fff}
.wmacc .wmacc-btn-accent{background:linear-gradient(120deg,#7c3aed,#ff5b24);color:#fff;box-shadow:0 10px 24px rgba(124,58,237,.25)}
.wmacc .wmacc-btn-accent:hover{color:#fff;filter:brightness(1.05)}
.wmacc .wmacc-btn-ghost{background:#fff;color:var(--ink);border-color:var(--line)}
.wmacc .wmacc-btn-ghost:hover{border-color:#c7d2fe;color:var(--ink)}
.wmacc .wmacc-btn-sm{padding:9px 14px;font-size:14px;border-radius:10px}
.wmacc .wmacc-btn-block{width:100%}

/* Notices */
.wmacc-notice{margin:0 0 20px;padding:13px 16px;border-radius:12px;font-size:14.5px;line-height:1.55;border:1px solid}
.wmacc-notice-error{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
.wmacc-notice-success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.wmacc-notice-info{background:#eef2ff;border-color:#c7d2fe;color:#3730a3}
.wmacc-notice-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.wmacc-notice a{color:inherit;text-decoration:underline}

/* --------------------------------------------------------------------------
   Login, set / reset password
   -------------------------------------------------------------------------- */
.wmacc-auth{width:100%;padding:72px 16px 96px;background:radial-gradient(800px 420px at 15% 0%,rgba(99,102,241,.12),transparent 70%),radial-gradient(700px 420px at 90% 10%,rgba(255,91,36,.08),transparent 70%),linear-gradient(180deg,#f7f8ff 0%,#fff 100%)}
.wmacc-auth-card{max-width:460px;margin:0 auto;padding:40px 36px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 30px 60px -30px rgba(30,27,75,.30)}
.wmacc-auth-head{text-align:center;margin-bottom:26px}
.wmacc-auth-ico{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:15px;color:#fff;background:linear-gradient(135deg,#4f46e5,#9333ea);box-shadow:0 12px 24px -10px rgba(79,70,229,.6)}
.wmacc-auth-ico svg{width:24px;height:24px}
.wmacc-auth-head h1{margin-top:18px;font-size:26px;line-height:1.25;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.wmacc-auth-head p{margin-top:8px;font-size:15.5px;line-height:1.55;color:var(--muted)}
.wmacc-auth-head strong{color:var(--ink)}

.wmacc-form{display:flex;flex-direction:column;gap:18px}
.wmacc-field label{display:block;margin-bottom:7px;font-size:14.5px;font-weight:700;color:var(--ink)}
.wmacc-field input{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font:inherit;font-size:16px;color:var(--ink);transition:border-color .18s ease,box-shadow .18s ease}
.wmacc-field input::placeholder{color:#94a3b8}
.wmacc-field input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px rgba(79,70,229,.15)}
/* The theme adds a bottom margin to every input and stretches checkbox labels. */
.wmacc .wmacc-field input,.wmacc .wmacc-check input{margin:0}
.wmacc-pass{position:relative}
.wmacc-pass input{padding-right:50px}
.wmacc-toggle-pass{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer}
.wmacc-toggle-pass:hover,.wmacc-toggle-pass.is-on{color:var(--brand);background:#eef2ff}
.wmacc-form-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14.5px}
.wmacc .wmacc-check{display:inline-flex;align-items:center;gap:8px;width:auto;margin:0;color:var(--text);cursor:pointer}
.wmacc-check input{width:17px;height:17px;accent-color:var(--brand)}
.wmacc-hint{font-size:13.5px;line-height:1.55;color:var(--muted)}
.wmacc-hp{position:absolute !important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* AppSumo redemption page */
.wmacc .wmacc-appsumo{max-width:540px}
.wmacc-appsumo #wmacc-appsumo-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:17px;letter-spacing:.06em;text-transform:uppercase}
.wmacc-steps{list-style:none;margin:28px 0 0;padding:0;counter-reset:wmacc-step}
.wmacc-steps li{position:relative;padding:0 0 16px 44px;font-size:15px;line-height:1.55;color:var(--text);counter-increment:wmacc-step}
.wmacc-steps li::before{content:counter(wmacc-step);position:absolute;left:0;top:-2px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#eef2ff;color:var(--brand);font-size:14px;font-weight:800}
.wmacc-steps strong{color:var(--ink)}

.wmacc-auth-foot{margin-top:26px;padding-top:22px;border-top:1px solid #eef0f4;text-align:center;font-size:14.5px;line-height:1.6}
.wmacc-auth-foot p+p{margin-top:12px}
.wmacc-auth-foot strong{color:var(--ink)}
.wmacc-muted{color:var(--muted)}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
/* The page is a flex column: without width/min-width the nowrap tab bar would widen the dashboard past the screen. */
.wmacc-dash{width:100%;min-width:0;max-width:1120px;margin:0 auto;padding:48px 24px 88px}
.wmacc-preview{margin-bottom:20px;padding:10px 14px;border-radius:10px;background:#fffbeb;border:1px dashed #f59e0b;color:#92400e;font-size:14px}

.wmacc-dash-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:32px;border-radius:24px;background:radial-gradient(600px 300px at 0% 0%,rgba(99,102,241,.14),transparent 70%),radial-gradient(500px 300px at 100% 0%,rgba(255,91,36,.08),transparent 70%),#fff;border:1px solid var(--line)}
.wmacc-label{display:inline-block;font-size:12.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--brand)}
.wmacc-dash-head h1{margin-top:8px;font-size:clamp(26px,3.2vw,36px);line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.wmacc-dash-head p{margin-top:8px;font-size:15.5px;color:var(--muted)}
.wmacc-dash-head p strong{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.wmacc-dash-actions{display:flex;gap:10px;flex-wrap:wrap}

.wmacc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}
.wmacc-stat{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:18px}
.wmacc-stat-ico{grid-row:1 / span 2;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#eef2ff;color:var(--brand)}
.wmacc-stat b{font-size:24px;font-weight:800;line-height:1.1;color:var(--ink)}
.wmacc-stat span:last-child{font-size:13.5px;color:var(--muted)}

.wmacc-tabs{position:relative;display:flex;gap:6px;margin-top:28px;padding:6px;border-radius:16px;background:#f1f5f9;overflow-x:auto;scrollbar-width:none}
.wmacc-tabs::-webkit-scrollbar{display:none}
.wmacc-tab{display:inline-flex;align-items:center;gap:8px;flex:1 0 auto;justify-content:center;padding:11px 16px;border:0;border-radius:11px;background:transparent;font:inherit;font-size:15px;font-weight:700;color:var(--muted);cursor:pointer;white-space:nowrap;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.wmacc-tab:hover{color:var(--ink)}
.wmacc-tab.is-active{background:#fff;color:var(--ink);box-shadow:0 4px 12px rgba(15,23,42,.08)}
.wmacc-count{min-width:24px;padding:2px 7px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:800;color:var(--text);text-align:center}
.wmacc-tab.is-active .wmacc-count{background:#eef2ff;color:var(--brand)}

.wmacc-panel{margin-top:20px}
.wmacc-panel-title{margin:28px 0 14px !important;font-size:20px;font-weight:800;color:var(--ink)}
.wmacc-js .wmacc-panel{display:none}
.wmacc-js .wmacc-panel.is-active{display:block}
.wmacc-js .wmacc-panel-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Subscription cards */
.wmacc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.wmacc-card{display:flex;flex-direction:column;gap:16px;padding:22px;background:#fff;border:1px solid var(--line);border-radius:18px}
.wmacc-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.wmacc-card-head h3{font-size:17px;line-height:1.35;font-weight:800;color:var(--ink)}
.wmacc-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wmacc-meta dt{font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#94a3b8}
.wmacc-meta dd{margin-top:3px;font-size:15px;font-weight:600;color:var(--ink)}
.wmacc-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}

/* Tables */
.wmacc-table-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.wmacc-table{width:100%;border-collapse:collapse;font-size:15px}
.wmacc-table th{padding:13px 18px;background:var(--soft);border-bottom:1px solid var(--line);text-align:left;font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.wmacc-table td{padding:15px 18px;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:var(--text)}
.wmacc-table tr:last-child td{border-bottom:0}
.wmacc-table td strong{color:var(--ink)}
.wmacc-td-action{text-align:right;white-space:nowrap}
.wmacc-td-action a{display:inline-flex;align-items:center;gap:5px}
.wmacc-td-action svg{width:14px;height:14px}

.wmacc-key-wrap{display:flex;align-items:center;gap:6px}
.wmacc-key{padding:6px 10px;border-radius:8px;background:#f1f5f9;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13.5px;color:var(--ink);word-break:break-all;transition:filter .2s ease}
.wmacc-js .wmacc-key.is-masked{filter:blur(5px);user-select:none}
.wmacc-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);cursor:pointer;transition:color .18s ease,border-color .18s ease}
.wmacc-icon-btn:hover,.wmacc-icon-btn.is-on{color:var(--brand);border-color:#c7d2fe}
.wmacc-icon-btn.is-done{color:#059669;border-color:#a7f3d0}
.wmacc-icon-btn svg{width:16px;height:16px}

/* Badges */
.wmacc-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12.5px;font-weight:700;line-height:1.3;white-space:nowrap}
.wmacc-badge-green{background:#ecfdf5;color:#047857}
.wmacc-badge-blue{background:#eef2ff;color:#4338ca}
.wmacc-badge-amber{background:#fffbeb;color:#b45309}
.wmacc-badge-red{background:#fff1f2;color:#be123c}
.wmacc-badge-gray{background:#f1f5f9;color:#475569}

/* Downloads */
.wmacc-list{list-style:none;padding:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.wmacc-list-item{display:flex;align-items:center;gap:16px;padding:16px 18px}
.wmacc-list-item+.wmacc-list-item{border-top:1px solid #f1f5f9}
.wmacc-list-ico{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#eef2ff;color:var(--brand)}
.wmacc-list-body{flex:1;min-width:0}
.wmacc-list-body strong{display:block;font-size:15.5px;color:var(--ink);overflow-wrap:anywhere}
.wmacc-list-body span{display:block;margin-top:2px;font-size:13.5px;color:var(--muted)}
.wmacc-list+.wmacc-hint{margin-top:12px}

/* Empty states */
.wmacc-empty{padding:48px 24px;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:18px}
.wmacc-empty-ico{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:15px;background:#f1f5f9;color:var(--muted)}
.wmacc-empty-ico svg{width:24px;height:24px}
.wmacc-empty h3{margin-top:16px;font-size:18px;font-weight:800;color:var(--ink)}
.wmacc-empty p{margin:6px auto 0;max-width:420px;font-size:15px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.wmacc-empty .wmacc-btn{margin-top:18px}

.wmacc-dash-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:24px;font-size:14px;color:var(--muted)}
.wmacc-dash-foot>a{display:inline-flex;align-items:center;gap:6px}
.wmacc-dash-foot svg{width:15px;height:15px}
.wmacc-dash-help{margin-left:auto}

@media (max-width:900px){
	.wmacc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:700px){
	.wmacc-auth{padding:40px 16px 64px}
	.wmacc-auth-card{padding:28px 20px;border-radius:20px}
	.wmacc-auth-head h1{font-size:23px}

	.wmacc-dash{padding:28px 16px 64px}
	.wmacc-dash-head{padding:22px;border-radius:20px}
	.wmacc-dash-actions{width:100%}
	.wmacc-dash-actions .wmacc-btn{flex:1 1 100%}
	.wmacc-stats{gap:10px}
	.wmacc-stat{padding:14px;column-gap:10px}
	.wmacc-stat-ico{width:36px;height:36px}
	.wmacc-stat b{font-size:20px}
	.wmacc-tab{flex:0 0 auto;padding:10px 12px;font-size:14px}
	.wmacc-cards{grid-template-columns:1fr}
	.wmacc-meta{grid-template-columns:1fr}

	/* Tables turn into stacked cards */
	.wmacc-table-wrap{background:transparent;border:0;border-radius:0;overflow:visible}
	.wmacc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
	.wmacc-table,.wmacc-table tbody,.wmacc-table tr,.wmacc-table td{display:block;width:100%}
	.wmacc-table tr{margin-bottom:12px;padding:6px 16px;background:#fff;border:1px solid var(--line);border-radius:16px}
	.wmacc-table td{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;text-align:right}
	.wmacc-table td::before{content:attr(data-label);flex-shrink:0;font-size:12.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#94a3b8;text-align:left}
	.wmacc-table tr td:last-child{border-bottom:0}
	.wmacc-td-action{justify-content:flex-end !important}
	.wmacc-key-wrap{justify-content:flex-end;flex-wrap:wrap}

	.wmacc-list-item{flex-wrap:wrap}
	.wmacc-list-item .wmacc-btn{width:100%}
	.wmacc-dash-help{margin-left:0}
}
