/*
 * TechWicket Tools CSS - Premium Glassmorphic Dark Theme
 * Font: Plus Jakarta Sans & Inter
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #070b13;
    --bg-card: rgba(19, 27, 43, 0.7);
    --bg-card-hover: rgba(26, 37, 59, 0.85);
    --border-color: rgba(99, 102, 241, 0.15);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    --color-primary: #6366f1; /* Indigo */
    --color-primary-hover: #4f46e5;
    --color-accent: #f59e0b; /* Amber Gold */
    --color-accent-hover: #d97706;
    
    --color-success: #10b981; /* Emerald */
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-success-border: rgba(16, 185, 129, 0.3);
    
    --color-warning: #f59e0b; /* Amber */
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-warning-border: rgba(245, 158, 11, 0.3);
    
    --color-error: #ef4444; /* Rose */
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-error-border: rgba(239, 68, 68, 0.3);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-nav: #e2e8f0;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(12px);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glows */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: #818cf8;
}

/* Header */
.tw-header {
    background: rgba(7, 11, 19, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tw-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tw-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tw-logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tw-logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tw-logo-text span {
    background: linear-gradient(135deg, #a5b4fc 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

.tw-logo-sub {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 1px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tw-nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.tw-nav-links a {
    color: var(--text-nav);
    font-size: 14px;
    font-weight: 500;
}

.tw-nav-links a:hover {
    color: var(--color-primary);
}

.tw-dlbtn {
    background: linear-gradient(135deg, var(--color-accent) 0%, #d97706 100%);
    color: #070b13;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tw-dlbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Hero Section */
.tw-hero {
    padding: 70px 20px 80px;
    text-align: center;
    position: relative;
}

.tw-hero h1 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.tw-hero h1 span {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tw-hero p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 36px;
}

/* Search and Filters */
.tw-search {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(19, 27, 43, 0.6);
    backdrop-filter: var(--glass-blur);
}

.tw-search input {
    width: 100%;
    padding: 16px 120px 16px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.tw-search input::placeholder {
    color: var(--text-muted);
}

.tw-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.tw-search button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.tw-cats {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.tw-cat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-nav);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tw-cat:hover, .tw-cat.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Ad Spaces */
.tw-ad {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.tw-ad-box {
    background: rgba(19, 27, 43, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

/* Main Grid & Cards */
.tw-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-grow: 1;
}

.tw-stitle {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tw-stitle span {
    color: var(--color-primary);
}

.tw-ssub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.tw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}

.tw-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.tw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #a5b4fc);
    opacity: 0;
    transition: var(--transition-smooth);
}

.tw-card.show {
    display: flex;
    flex-direction: column;
}

.tw-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-glow), var(--shadow-premium);
}

.tw-card:hover::before {
    opacity: 1;
}

.tw-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tw-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tw-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.tw-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tw-openbtn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.tw-card:hover .tw-openbtn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Tool Layout Specific Styles */
.tw-tool-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .tw-tool-container {
        grid-template-columns: 2.3fr 1fr;
    }
}

.tw-tool-main {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
}

.tw-tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tw-sidebar-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.tw-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.tw-sidebar-tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tw-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
    color: var(--text-main);
}

.tw-sidebar-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
}

.tw-sidebar-icon {
    font-size: 18px;
}

.tw-sidebar-item h4 {
    font-size: 13px;
    font-weight: 600;
}

/* Breadcrumbs */
.tw-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tw-breadcrumbs a {
    color: var(--text-muted);
}

.tw-breadcrumbs a:hover {
    color: var(--color-primary);
}

/* Tool Styling Controls */
.tw-tool-title-section {
    margin-bottom: 24px;
}

.tw-tool-title-section h2 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 8px;
}

.tw-tool-title-section p.tw-mdesc {
    color: var(--text-muted);
    font-size: 14px;
}

/* Form Elements */
.tw-group {
    margin-bottom: 20px;
}

.tw-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-nav);
}

.tw-input, .tw-textarea, .tw-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: rgba(7, 11, 19, 0.4);
    color: #fff;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.tw-input:focus, .tw-textarea:focus, .tw-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(7, 11, 19, 0.6);
}

.tw-textarea {
    resize: vertical;
    min-height: 120px;
}

.tw-select option {
    background: var(--bg-dark);
    color: #fff;
}

.tw-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tw-row .tw-group {
    flex: 1;
    min-width: 150px;
}

/* Buttons */
.tw-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tw-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.tw-btn.green {
    background: var(--color-success);
}
.tw-btn.green:hover {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.tw-btn.grey {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tw-btn.grey:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.tw-btn.gold {
    background: var(--color-accent);
    color: #070b13;
}
.tw-btn.gold:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* Tool Outputs */
.tw-result {
    display: none;
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.tw-result.show {
    display: block;
}

.tw-result.ok {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: #34d399;
}

.tw-result.warn {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: #fbbf24;
}

.tw-result.err {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: #f87171;
}

/* Image boxes (drag drop mock) */
.tw-imgbox {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.tw-imgbox:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.04);
    color: #fff;
}

.tw-imgbox img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.tw-dllink {
    display: none;
    width: 100%;
    padding: 14px;
    background: var(--color-success);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    transition: var(--transition-smooth);
}

.tw-dllink.show {
    display: block !important;
}

.tw-dllink:hover {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Custom stats block */
.tw-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tw-stat {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tw-stat .n {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tw-stat .l {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.tw-sbar {
    display: flex;
    gap: 6px;
    margin: 10px 0 6px;
}

.tw-seg {
    height: 6px;
    flex: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

/* Toast Component */
.tw-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1b4b;
    color: #e0e7ff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.tw-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Guides / FAQs / Educational sections */
.tw-info {
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.tw-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 32px;
}

.tw-info h3 {
    font-size: 20px;
    color: #fff;
    margin-top: 24px;
    margin-bottom: 12px;
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
}

.tw-info h3:first-of-type {
    margin-top: 0;
}

.tw-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.tw-info-box {
    background: rgba(99, 102, 241, 0.08);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #c7d2fe;
    line-height: 1.7;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.tw-info-box strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 14px;
}

.tw-tip-box {
    background: var(--color-success-bg);
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.7;
    border: 1px solid var(--color-success-border);
}

.tw-tip-box strong {
    display: block;
    margin-bottom: 6px;
    color: #34d399;
    font-size: 14px;
}

.tw-faq-item {
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.01);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.tw-faq-item h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
}

.tw-faq-item p {
    margin-bottom: 0;
}

/* Loader */
.tw-loader {
    text-align: center;
    padding: 24px;
    display: none;
}

.tw-loader .spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer styling */
.tw-footer {
    background: #04060b;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 13px;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tw-footer strong {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
}

.tw-footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tw-footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.tw-footer-links a:hover {
    color: #fff;
}

.tw-footer span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* Specific UI overlays like the PDF to Word preview box */
.pw-preview-box {
    background: rgba(7, 11, 19, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    font-size: 12px;
    font-family: monospace;
    max-height: 180px;
    overflow-y: auto;
    display: none;
    color: #cbd5e1;
    white-space: pre-wrap;
    word-break: break-word;
}

.tw-thumbgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.tw-thumbitem {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tw-thumbitem img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tw-thumbitem p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 6px 0;
}

.tw-thumbitem a {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.tw-thumbitem a:hover {
    background: var(--color-primary-hover);
}

.tw-curr-result {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-accent);
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-top: 16px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tw-tag-item {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* About/Policy page formatting */
.tw-content-page {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    max-width: 800px;
    margin: 0 auto;
}

.tw-content-page h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.tw-content-page h3 {
    font-size: 20px;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 12px;
}

.tw-content-page p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tw-content-page ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.tw-content-page li {
    margin-bottom: 8px;
}

/* Responsive Grid and Overlay adjustments */
@media(max-width: 768px) {
    .tw-header {
        padding: 0 20px;
        height: 60px;
    }
    .tw-nav-links {
        display: none; /* Hide on mobile - will use responsive links in footer or a simple dropdown */
    }
    .tw-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .tw-thumbgrid {
        grid-template-columns: 1fr;
    }
    .tw-row {
        flex-direction: column;
    }
    .tw-logo-text {
        font-size: 18px;
    }
    .tw-logo-sub {
        display: none;
    }
    .tw-logo-icon {
        width: 30px;
        height: 30px;
    }
    .tw-content-page {
        padding: 24px 16px;
    }
}

@media(max-width: 480px) {
    .tw-stats {
        grid-template-columns: 1fr;
    }
}
