/* ==========================================================================
   GLOBAL DESIGN SYSTEM & THEME
   ========================================================================== */
:root {
    --bg-dark: #0f172a;
    --surface-dark: #1e293b;
    --surface-card: rgba(30, 41, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.12);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary: #3b82f6;
    --accent: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: #0f172a;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --surface-dark: #ffffff;
    --surface-card: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --input-bg: #f1f5f9;
}

* { box-sizing: border-box; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

header .logo svg { color: var(--primary); }

.top-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-item:hover { color: #fff; }

.nav-item .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow-main);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.dropdown a:hover {
    background: var(--primary);
    color: #fff;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* ==========================================================================
   HERO SECTION & TOOL PANEL
   ========================================================================== */
.hero-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.hero-tool-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.hero-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
}

.hero-tabs .tab {
    flex: 1;
    padding: 1.1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    border-bottom: 2px solid transparent;
}

.hero-tabs .tab.active {
    color: #fff;
    background: var(--surface-dark);
    border-bottom-color: var(--primary);
}

.hero-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

@media (max-width: 868px) {
    .hero-tool-grid { grid-template-columns: 1fr; }
    .top-nav { display: none; }
}

.hero-input-area {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-select-wrapper select,
.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.custom-select-wrapper select:focus,
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.advanced-options.compact {
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.color-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.color-group input[type="color"] {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Dynamic Preview Output Area */
.hero-preview-area {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    min-height: 280px;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.glow-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-glow);
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

#barcode-canvas-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.actions-group.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-action {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   PREMIUM SAAS CARD & INTERACTIVE SECTION DESIGNS
   ========================================================================== */
.all-tools-section {
    position: relative;
    padding: 3rem 0;
}

.tg-category {
    margin-bottom: 3.5rem;
    position: relative;
}

.tg-cat-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tg-cat-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.tg-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tg-card {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tg-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.25);
}

.tg-card:hover::before {
    opacity: 1;
}

.tg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.tg-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tg-card:hover .tg-icon-box {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    transform: scale(1.08);
}

.tg-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.tg-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.tg-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}


:root{
  --p:#6D28D9;        /* プライマリ（バイオレット） */
  --p-dark:#2a1065;
  --a:#EC4899;        /* アクセント（ピンク） */
  --a2:#F0ABFC;
  --tint:#f2f4f7;
  --tint-a:#faf0f6;
  --tx:#1a2028;
  --tx2:#5b6472;
  --line:#e5e8ec;
  --r:10px;
  --max:1080px;
}
*{box-sizing:border-box}
body{margin:0;font-family:'Noto Sans JP',-apple-system,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:var(--tx);background:#fff;line-height:1.75;font-size:16px}
img{max-width:100%;height:auto}
a{color:#2563eb;text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.4;color:var(--p);font-weight:700}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}

/* ── ナビ ── */
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:var(--max);margin:0 auto;padding:14px 20px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:9px;font-weight:700;font-size:17px;color:var(--p);text-decoration:none}
.logo:hover{text-decoration:none}
.logo-ic{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:var(--p);color:var(--a);font-weight:700;letter-spacing:1px;font-size:15px}
.nav-links{display:flex;gap:20px;font-size:14px}
.nav-links a{color:var(--tx2)}
.nav-cta{background:var(--a);color:#ffffff;font-weight:700;font-size:14px;padding:9px 18px;border-radius:8px;text-decoration:none}
.nav-cta:hover{background:var(--a2);text-decoration:none}

/* ── ヒーロー＋ツール ── */
.hero{background:var(--p);color:#fff;padding:44px 0 52px}
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:32px;align-items:center;max-width:var(--max);margin:0 auto;padding:0 20px}
.hero h1{color:#fff;font-size:30px;margin:0 0 12px}
.hero p{color:rgba(255,255,255,.85);font-size:15px;margin:0 0 18px;max-width:480px}
.hpill{display:inline-block;background:rgba(255,255,255,.14);color:var(--a2);font-size:12.5px;font-weight:500;padding:5px 14px;border-radius:20px;margin-bottom:14px}
.toolcard{background:#fff;border-radius:16px;padding:22px;color:var(--tx)}
.toolcard .tl{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--a);font-weight:700;margin-bottom:12px}
.ttabs{display:flex;gap:6px;margin-bottom:14px}
.ttab{flex:1;border:1px solid var(--line);background:#f7f8fa;padding:9px;border-radius:8px;cursor:pointer;font-size:13.5px;font-weight:500;color:var(--tx2);font-family:inherit}
.ttab.on{background:var(--p);color:#fff;border-color:var(--p)}
.tin{width:100%;border:1px solid var(--line);background:#f7f8fa;border-radius:8px;padding:11px 13px;font-size:15px;font-family:inherit;margin-bottom:10px}
.tin:focus{outline:2px solid var(--a);border-color:var(--a)}
.thint{font-size:12px;color:var(--tx2);margin:-4px 0 10px}
.tbtn{background:var(--a);color:var(--p-dark);border:none;padding:12px 24px;border-radius:8px;cursor:pointer;font-size:15px;font-weight:700;font-family:inherit}
.tbtn:hover{background:var(--a2)}
.tbtn.ghost{background:#fff;border:1.5px solid var(--p);color:var(--p);margin-left:8px}
.tout{margin-top:16px;text-align:center;min-height:40px}
.tout svg{max-width:100%}
.terr{color:#dc2626;font-size:13px;font-weight:500}
.dlrow{display:flex;gap:8px;justify-content:center;margin-top:12px;flex-wrap:wrap}
.dlbtn{font-size:13px;font-weight:500;padding:8px 16px;border-radius:8px;border:1.5px solid var(--p);background:#fff;color:var(--p);cursor:pointer;font-family:inherit}
.dlbtn:hover{background:var(--tint)}

/* ── セクション ── */
.sec{padding:44px 0}
.sec.tint{background:var(--tint)}
.sec.tinta{background:var(--tint-a)}
.sec h2{font-size:22px;margin:0 0 20px}
.eyebrow{display:block;font-size:12px;letter-spacing:.1em;color:var(--a);font-weight:700;text-transform:uppercase;margin-bottom:4px}
.fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.fcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.fcard .fic{width:38px;height:38px;border-radius:10px;background:var(--tint-a);color:var(--a);display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:700;margin-bottom:10px}
.fcard b{display:block;font-size:15px;margin-bottom:4px;color:var(--p)}
.fcard span{font-size:13px;color:var(--tx2)}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.step{display:flex;gap:12px;align-items:flex-start}
.step .n{flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--p);color:var(--a2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.step p{margin:3px 0 0;font-size:14px;color:var(--tx)}
.statband{background:var(--p-dark);padding:30px 0}
.statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:var(--max);margin:0 auto;padding:0 20px}
.stat{text-align:center}
.stat b{display:block;font-size:27px;color:var(--a2)}
.stat span{font-size:13px;color:rgba(255,255,255,.75)}

/* ── 記事カード ── */
.pgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.pcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:block;color:inherit}
.pcard:hover{border-color:var(--a);text-decoration:none}
.pcard .cat{display:inline-block;font-size:11.5px;font-weight:700;color:var(--a);background:var(--tint-a);padding:3px 10px;border-radius:12px;margin-bottom:8px}
.pcard b{display:block;font-size:15.5px;color:var(--p);margin-bottom:6px;line-height:1.5}
.pcard span{font-size:13px;color:var(--tx2)}
.catgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.catcard{background:#fff;border:1px solid var(--line);border-left:4px solid var(--a);border-radius:10px;padding:16px;display:block;color:inherit}
.catcard:hover{text-decoration:none;background:var(--tint-a)}
.catcard b{color:var(--p);font-size:15px}
.catcard span{display:block;font-size:13px;color:var(--tx2);margin-top:4px}

/* ── FAQ ── */
.faqi{border:1px solid var(--line);border-radius:10px;margin-bottom:10px;background:#fff}
.faqi summary{padding:14px 18px;font-weight:700;font-size:15px;cursor:pointer;color:var(--p);list-style:none;display:flex;justify-content:space-between;gap:10px}
.faqi summary::after{content:"＋";color:var(--a);font-weight:700}
.faqi[open] summary::after{content:"−"}
.faqi .fa-body{padding:0 18px 16px;font-size:14px;color:var(--tx2)}

/* ── 記事本文 ── */
.article{max-width:760px;margin:0 auto;padding:36px 20px 20px}
.crumbs{font-size:12.5px;color:var(--tx2);margin-bottom:14px}
.crumbs a{color:var(--tx2)}
.article h1{font-size:27px;margin:0 0 10px}
.pmeta{font-size:13px;color:var(--tx2);margin-bottom:26px}
.article h2{font-size:21px;margin:38px 0 14px;padding-left:12px;border-left:5px solid var(--a)}
.article h3{font-size:17px;margin:28px 0 10px}
.article p{margin:0 0 18px}
.article ul,.article ol{margin:0 0 18px;padding-left:24px}
.article li{margin-bottom:6px}
.article table{border-collapse:collapse;width:100%;margin:0 0 20px;font-size:14px}
.article th,.article td{border:1px solid var(--line);padding:9px 12px;text-align:left}
.article th{background:var(--tint);font-weight:700}
.article .note{background:var(--tint-a);border-left:4px solid var(--a);border-radius:0 8px 8px 0;padding:14px 16px;margin:0 0 20px;font-size:14.5px}
.rel{background:var(--tint);border-radius:12px;padding:18px 20px;margin:34px 0}
.rel b{display:block;margin-bottom:10px;color:var(--p)}
.rel a{display:block;font-size:14px;padding:4px 0}
.pagenav{display:flex;justify-content:space-between;gap:10px;margin:26px 0;font-size:14px}

/* ── ページャ ── */
.pager{display:flex;gap:8px;justify-content:center;margin:30px 0}
.pager a,.pager span{padding:8px 14px;border:1px solid var(--line);border-radius:8px;font-size:14px}
.pager span{background:var(--p);color:#fff;border-color:var(--p)}

/* ── フッター ── */
.foot{background:#14181d;color:#aab3bf;margin-top:50px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px;max-width:var(--max);margin:0 auto;padding:36px 20px}
.fc h6{margin:0 0 12px;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--a2)}
.fc a{display:block;color:#aab3bf;font-size:13.5px;padding:4px 0}
.fc a:hover{color:#fff;text-decoration:none}
.fc-brand p{font-size:13px;line-height:1.8;margin:10px 0 0}
.flogo{display:flex;align-items:center;gap:9px;color:#fff;font-weight:700;font-size:15px}
.foot-bot{border-top:1px solid #232a33;font-size:12px;color:#727c8a;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;max-width:var(--max);margin:0 auto;padding:14px 20px}

@media(max-width:760px){
  .hero-grid{grid-template-columns:1fr}
  .hero h1{font-size:24px}
  .nav-links{display:none}
  .foot-grid{grid-template-columns:1fr 1fr}
  .statgrid{grid-template-columns:1fr 1fr 1fr;gap:8px}
  .stat b{font-size:21px}
}
@media(max-width:460px){
  .foot-grid{grid-template-columns:1fr}
}

/* ── QR一括グリッド ── */
.qgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px;text-align:left}
.qcell{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:6px}
.qcell svg{width:110px;height:110px}
.qlabel{font-size:11px;color:var(--tx2);word-break:break-all;text-align:center}
.qerr{color:#dc2626;font-size:12px;justify-content:center}
textarea.tin{min-height:120px;resize:vertical;line-height:1.6}
@media print{
  .nav,.hero>div:first-child,.sec,.foot,.foot-bot,.statband,#qrb-actions,.ttabs,.tl,textarea,.tbtn,.thint{display:none!important}
  .hero{background:#fff;padding:0}
  .toolcard{border:none;padding:0}
  .qgrid{grid-template-columns:repeat(4,1fr)}
  .qcell{page-break-inside:avoid}
  .dlbtn{display:none}
}



/* ==========================================================================
   VIBRANT & ATTRACTIVE SAAS DESIGN SYSTEM ENHANCEMENTS
   ========================================================================== */

/* Radiant ambient lighting effect */
body {
    background: #090d16 !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.08) 0%, transparent 50%) !important;
    background-attachment: fixed !important;
    color: #f8fafc !important;
}

/* Vibrant Gradient Headings */
.content-section h2, .hero-content h1, h1 {
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* Glassmorphism Card System */
.tg-card {
    background: rgba(30, 41, 59, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.tg-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(129, 140, 248, 0.5) !important;
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.3), 0 0 15px rgba(99, 102, 241, 0.2) !important;
}

/* Vibrant Icon Box Styling */
.tg-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tg-card:hover .tg-icon-box {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Glowing Badge Chip */
.tg-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.4)) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.4) !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

/* Vibrant Interactive Section Cards */
.content-section > div, .step-interactive-container, .zoom-compare-container, .bulk-interactive-container, .jan-flowchart-container {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Vibrant Hero Action Buttons */
.btn-hero-primary, .tbtn, .step-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.25s ease !important;
}

.btn-hero-primary:hover, .tbtn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6), 0 0 20px rgba(139, 92, 246, 0.5) !important;
}

.btn-hero-secondary {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
}

.btn-hero-secondary:hover {
    background: rgba(51, 65, 85, 0.9) !important;
    border-color: rgba(129, 140, 248, 0.5) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Category Title Accent Bar */
.tg-cat-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    color: #818cf8 !important;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3) !important;
    padding-bottom: 0.6rem !important;
}

/* FAQ Accordion Styling */
.faq-item {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

.faq-item:hover, .faq-item.open {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}


/* Light Theme Dynamic Overrides */
[data-theme="light"] body {
    background: #f8fafc !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(236, 72, 153, 0.06) 0%, transparent 40%) !important;
    color: #0f172a !important;
}

[data-theme="light"] .tg-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .tg-card:hover {
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .tg-name {
    color: #0f172a !important;
}

[data-theme="light"] .tg-desc {
    color: #64748b !important;
}

[data-theme="light"] .content-section h2, [data-theme="light"] h1 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .top-nav span, [data-theme="light"] .top-nav a {
    color: #0f172a !important;
}


/* ==========================================================================
   HIGH-VISIBILITY PROMINENT DOWNLOAD BUTTONS SYSTEM
   ========================================================================== */

.actions-group, .hero-actions, #actions-group, #qrb-actions, #bc-dl {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.btn-action, #btn-png, .png-btn, .dlbtn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(52, 211, 153, 0.4) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-action:hover, #btn-png:hover, .png-btn:hover, .dlbtn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5) !important;
}

#btn-svg, .svg-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(129, 140, 248, 0.4) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

#btn-svg:hover, .svg-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5) !important;
}

.btn-print, #btn-print {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
    transition: all 0.25s ease !important;
}


/* Canvas & SVG Render Contrast Enforcement */
#barcode-canvas-container {
    background: #ffffff !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 120px !important;
    width: 100% !important;
}

#barcode-svg {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 80px !important;
}

#barcode-svg rect {
    shape-rendering: crispEdges !important;
}
