/* tk-auguri — area frontend [tk_auguri]: stessi componenti del pannello admin (generati da tk-auguri-admin.css) */
.tk-auguri-front {
    --tk-navy: #0f172a; --tk-navy-2: #1e293b; --tk-navy-3: #334155; --tk-navy-light: #e8eef7;
    --tk-accent: #e11d48; --tk-accent-d: #be123c; --tk-accent-l: #ffe4e6; --tk-accent-ll: #fff1f2;
    --tk-green: #10b981; --tk-green-l: #d1fae5; --tk-green-d: #065f46;
    --tk-amber: #f59e0b; --tk-amber-l: #fef3c7; --tk-amber-d: #92400e;
    --tk-red: #ef4444; --tk-red-l: #fee2e2; --tk-red-d: #991b1b;
    --tk-blue: #3b82f6; --tk-blue-l: #dbeafe;
    --tk-indigo: #6366f1; --tk-indigo-l: #e0e7ff;
    --tk-gray-50: #f8fafc; --tk-gray-100: #f1f5f9; --tk-gray-200: #e2e8f0; --tk-gray-300: #cbd5e1;
    --tk-gray-500: #64748b; --tk-gray-700: #334155; --tk-gray-900: #0f172a; --tk-white: #fff;
    --tk-radius: 10px; --tk-radius-sm: 6px;
    --tk-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --tk-shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --tk-shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --tk-transition: all .18s cubic-bezier(.4,0,.2,1);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    color: var(--tk-gray-700); font-size: 14px; line-height: 1.5; max-width: 1200px; margin: 40px auto 48px;
}
.tk-auguri-front *, .tk-aug-modal * { box-sizing: border-box; }
.tk-auguri-front .tk-version { color: var(--tk-gray-300); font-size: 12px; margin-left: 8px; font-weight: 500; }
.tk-auguri-front .tk-subtitle { color: var(--tk-gray-300); font-size: 13px; }
.tk-auguri-front .tk-plan-pill { padding: 5px 16px; border-radius: 50px; font-size: 12px; font-weight: 800; letter-spacing: .5px; color: #fff; flex-shrink: 0; }
.tk-auguri-front .tk-pill-free { background: #16a34a; }
.tk-auguri-front .tk-pill-pro { background: #3b82f6; }
.tk-auguri-front .tk-pill-agency { background: #6366f1; }
.tk-auguri-front .tk-pill-locked { background: #dc2626; }
.tk-auguri-front .tk-card { background: #fff; border: 1px solid var(--tk-gray-200); border-radius: var(--tk-radius); padding: 24px 28px; margin-bottom: 20px; box-shadow: var(--tk-shadow); }
.tk-auguri-front .tk-card h2 { font-size: 16px; font-weight: 700; color: var(--tk-navy); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--tk-gray-100); }
.tk-auguri-front .tk-card h4 { font-size: 13px; color: var(--tk-navy); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.tk-auguri-front .tk-card-accent { border-left: 4px solid var(--tk-accent); }
.tk-auguri-front .tk-aug-h2-plain { border: 0 !important; margin: 0 !important; padding: 0 !important; }
.tk-auguri-front .tk-creator-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--tk-gray-500); margin-bottom: 14px; font-weight: 700; }
.tk-auguri-front .tk-creator-logo { border-radius: 20px; display: block; margin: 0 auto 14px; }
.tk-auguri-front .tk-creator-name { font-size: 14px; font-weight: 700; color: var(--tk-navy); }
.tk-auguri-front .tk-creator-role { font-size: 11px; color: var(--tk-gray-500); margin-bottom: 14px; }
.tk-auguri-front .tk-creator-help { font-size: 12px; color: var(--tk-gray-700); margin-bottom: 12px; }
.tk-auguri-front .tk-btn-contact { display: block; width: 100%; text-align: center; padding: 12px 18px; background: var(--tk-navy); color: #fff !important; text-decoration: none; border-radius: 8px; font-weight: 700; font-size: 14px; transition: var(--tk-transition); }
.tk-auguri-front .tk-btn-contact:hover { background: var(--tk-navy-2); transform: translateY(-1px); box-shadow: var(--tk-shadow-md); }
.tk-auguri-front .tk-info-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--tk-gray-500); margin-bottom: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tk-auguri-front .tk-info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--tk-gray-100); font-size: 12px; }
.tk-auguri-front .tk-info-row:last-child { border-bottom: 0; }
.tk-auguri-front .tk-info-label { color: var(--tk-gray-500); font-weight: 500; }
.tk-auguri-front .tk-info-value { color: var(--tk-navy); font-weight: 700; }
.tk-auguri-front .tk-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.4; }
.tk-auguri-front .tk-badge-blue { background: var(--tk-blue-l); color: #1e40af; }
.tk-auguri-front .tk-badge-green { background: var(--tk-green-l); color: var(--tk-green-d); }
.tk-auguri-front .tk-badge-amber { background: var(--tk-amber-l); color: var(--tk-amber-d); }
.tk-auguri-front .tk-badge-red { background: var(--tk-red-l); color: var(--tk-red-d); }
.tk-auguri-front .tk-badge-indigo { background: var(--tk-indigo-l); color: #3730a3; }
.tk-auguri-front .tk-badge-navy { background: var(--tk-navy); color: #fff; letter-spacing: 1px; }
.tk-auguri-front .tk-table { width: 100%; border-collapse: collapse; }
.tk-auguri-front .tk-table th { background: var(--tk-navy); color: #fff; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; font-size: 11px; text-align: left; font-weight: 700; }
.tk-auguri-front .tk-table th:first-child { border-radius: 6px 0 0 0; }
.tk-auguri-front .tk-table th:last-child { border-radius: 0 6px 0 0; }
.tk-auguri-front .tk-table td { padding: 10px 12px; border-bottom: 1px solid var(--tk-gray-100); font-size: 13px; vertical-align: middle; }
.tk-auguri-front .tk-table tr:nth-child(even) td { background: var(--tk-gray-50); }
.tk-auguri-front .tk-table tr:hover td { background: var(--tk-accent-ll); }
.tk-auguri-front .tk-table code, .tk-auguri-front .tk-card code { background: var(--tk-gray-100); padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.tk-auguri-front .tk-btn-navy { display: inline-flex; align-items: center; gap: 6px; background: var(--tk-navy); color: #fff !important; text-decoration: none; border-radius: 6px; font-weight: 700; padding: 8px 18px; border: 0; cursor: pointer; font-size: 13px; line-height: 1.5; transition: var(--tk-transition); }
.tk-auguri-front .tk-btn-navy:hover { background: var(--tk-navy-2); }
.tk-auguri-front .tk-btn-navy:disabled { opacity: .6; cursor: wait; }
.tk-auguri-front .tk-btn-secondary { display: inline-flex; align-items: center; gap: 6px; background: var(--tk-gray-100); color: var(--tk-navy) !important; text-decoration: none; border-radius: 6px; font-weight: 700; padding: 8px 18px; border: 0; cursor: pointer; font-size: 13px; line-height: 1.5; }
.tk-auguri-front .tk-btn-secondary:hover { background: var(--tk-gray-200); }
.tk-auguri-front .tk-input, .tk-auguri-front .tk-select { border-radius: 6px; border: 1px solid var(--tk-gray-300); padding: 8px 14px; font-size: 13px; width: 100%; background-color: #fff; color: var(--tk-navy); box-shadow: none; max-width: 100%; }
.tk-auguri-front .tk-input:focus, .tk-auguri-front .tk-select:focus { outline: 0; border-color: var(--tk-accent); box-shadow: 0 0 0 3px var(--tk-accent-l); }
.tk-auguri-front input.tk-input, .tk-auguri-front .tk-select { min-height: 38px; }
.tk-auguri-front .tk-select { line-height: 1.4; appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'12'%20height%3D'8'%20viewBox%3D'0%200%2012%208'%3E%3Cpath%20fill%3D'%2364748b'%20d%3D'M1.41%200L6%204.58%2010.59%200%2012%201.41l-6%206-6-6z'%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.tk-auguri-front .tk-license-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tk-auguri-front .tk-license-title h3 { margin: 0; font-size: 15px; color: var(--tk-navy); }
.tk-auguri-front .tk-license-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: nowrap; max-width: 480px; }
.tk-auguri-front .tk-license-input { flex: 1; min-width: 0; padding: 5px 14px !important; background: var(--tk-gray-100); font-family: "Courier New", monospace; letter-spacing: 3px; border: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.tk-auguri-front .tk-btn-activate, .tk-auguri-front .tk-btn-deactivate, .tk-auguri-front .tk-btn-eye { border: 0; border-radius: 6px; font-weight: 700; font-size: 13px; padding: 8px 16px; cursor: pointer; flex-shrink: 0; }
.tk-auguri-front .tk-btn-activate { background: var(--tk-accent); color: #fff; }
.tk-auguri-front .tk-btn-activate:hover { background: var(--tk-accent-d); }
.tk-auguri-front .tk-btn-deactivate { background: var(--tk-red-l); color: var(--tk-red-d); }
.tk-auguri-front .tk-btn-eye { background: var(--tk-gray-100); }

/* ── Difese dal tema: bottoni, campi e titoli restano TK ── */
.tk-auguri-front button, .tk-auguri-front input, .tk-auguri-front select, .tk-auguri-front textarea { font-family: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; }
.tk-auguri-front .tk-btn-navy, .tk-auguri-front .tk-btn-secondary { line-height: 1.5; min-height: 0; height: auto; box-shadow: none; }
.tk-auguri-front .tk-input, .tk-auguri-front .tk-select { height: auto; margin: 0; line-height: 1.4; }
.tk-auguri-front h2, .tk-auguri-front h3 { font-family: inherit; letter-spacing: normal; text-transform: none; }
.tk-auguri-front .dashicons { font-family: dashicons !important; }

/* ── Testata area frontend ── */
.tk-aug-front-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, var(--tk-navy) 0%, var(--tk-navy-2) 60%, var(--tk-navy-3) 100%); border-radius: var(--tk-radius) var(--tk-radius) 0 0; padding: 18px 24px; }
.tk-aug-front-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.tk-aug-front-brand strong { display: block; font-size: 18px; }
.tk-aug-front-brand span { color: var(--tk-gray-300); font-size: 13px; }
.tk-aug-front-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d)); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.tk-aug-front-head .tk-btn-secondary { background: rgba(255,255,255,.12); color: #fff !important; }
.tk-aug-front-tabs { display: flex; gap: 2px; background: #fff; border: 1px solid var(--tk-gray-200); border-top: 0; padding: 0 16px; overflow-x: auto; }
.tk-aug-front-tabs button { background: none !important; border: 0; border-bottom: 2px solid transparent; padding: 13px 14px; font-size: 14px; font-weight: 500; color: var(--tk-gray-500); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 0; }
.tk-aug-front-tabs button.is-active { color: var(--tk-navy); font-weight: 700; border-bottom-color: var(--tk-accent); }
.tk-aug-front-body { background: var(--tk-gray-50); border: 1px solid var(--tk-gray-200); border-top: 0; border-radius: 0 0 var(--tk-radius) var(--tk-radius); padding: 24px; }

/* ── Login ── */
.tk-aug-login { max-width: 420px; margin: 30px auto; background: #fff; border: 1px solid var(--tk-gray-200); border-radius: 14px; box-shadow: var(--tk-shadow-md); padding: 34px 30px; text-align: center; }
.tk-aug-login-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-d)); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.tk-aug-login h3 { margin: 0 0 6px; font-size: 20px; color: var(--tk-navy); }
.tk-aug-login p { color: var(--tk-gray-500); font-size: 14px; margin: 0 0 18px; }
.tk-aug-login form { display: flex; gap: 8px; }
.tk-aug-login form .tk-input { flex: 1; }

@media (max-width: 782px) {
    .tk-auguri-front { margin: 20px 0 24px; }
    .tk-aug-front-head, .tk-aug-front-tabs, .tk-aug-front-body { border-radius: 0; }
    .tk-aug-front-body { padding: 12px 0; border-left: 0; border-right: 0; }
    .tk-auguri-front .tk-card { border-radius: 0; border-left-width: 0; border-right-width: 0; padding: 18px 16px; }
    .tk-auguri-front .tk-input, .tk-auguri-front .tk-select, .tk-auguri-front .tk-btn-navy, .tk-auguri-front .tk-btn-secondary { width: 100%; justify-content: center; }
    .tk-aug-front-head .tk-btn-secondary { width: auto; }
    .tk-aug-login form { flex-direction: column; }
}

/* Margine verticale blindato: i temi spesso azzerano i margini dei blocchi del contenuto. */
.tk-auguri-front.tk-auguri-app { margin-top: 40px !important; margin-bottom: 48px !important; }
@media (max-width: 782px) { .tk-auguri-front.tk-auguri-app { margin-top: 20px !important; margin-bottom: 24px !important; } }
