/* CSS Reset and Font Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0b10;
    --bg-surface: rgba(18, 22, 36, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #06b6d4;      /* Cyan */
    --accent-glow: rgba(6, 182, 212, 0.3);
    --green-color: #10b981;       /* Safe */
    --green-glow: rgba(16, 185, 129, 0.25);
    --red-color: #ef4444;         /* Harmful */
    --red-glow: rgba(239, 68, 68, 0.25);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Tech grid and dot pattern with radial mask */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        /* Dot Matrix Pattern */
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        /* Grid Lines Pattern */
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 20px 20px, 80px 80px, 80px 80px;
    background-position: center;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    pointer-events: none;
}

/* Background glowing accents */
.glowing-accents {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
}

.accent-1 {
    top: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent);
}

.accent-2 {
    bottom: -10%;
    left: 5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.45), transparent);
}

.accent-3 {
    top: 35%;
    left: 35%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent);
}

.accent-4 {
    top: 20%;
    right: 25%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent);
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text h1 span {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back-home {
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
}

.team-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-align: right;
    backdrop-filter: blur(10px);
}

.team-badge .class-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.team-badge .team-names {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.glass-panel {
    position: relative;
    background: rgba(18, 22, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Decorative cybertech corner brackets for glass panels */
.glass-panel::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(6, 182, 212, 0.3);
    border-left: 2px solid rgba(6, 182, 212, 0.3);
    pointer-events: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    border-top-left-radius: 4px;
}

.glass-panel::after {
    content: "";
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
    border-right: 2px solid rgba(6, 182, 212, 0.3);
    pointer-events: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    border-bottom-right-radius: 4px;
}

.glass-panel:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 
        0 12px 40px 0 rgba(6, 182, 212, 0.15),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.glass-panel:hover::before {
    border-color: rgba(6, 182, 212, 0.85);
    transform: translate(-2px, -2px);
}

.glass-panel:hover::after {
    border-color: rgba(6, 182, 212, 0.85);
    transform: translate(2px, 2px);
}

/* Panel Header styling */
.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.panel-header i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.panel-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Layout Sizes */
.status-card {
    grid-column: span 4;
}

.predict-card {
    grid-column: span 8;
}

.traffic-card {
    grid-column: span 4;
}

.blocklist-card {
    grid-column: span 4;
}

.whitelist-card {
    grid-column: span 4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

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

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

.btn-accent {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--red-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.status-glow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
}

.glow-red {
    background: var(--red-color);
    box-shadow: 0 0 15px var(--red-color);
    animation: pulse-red 2s infinite;
}

.glow-green {
    background: var(--green-color);
    box-shadow: 0 0 15px var(--green-color);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.text-red { color: var(--red-color); }
.text-green { color: var(--green-color); }

.sub-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Mode Options */
.control-group {
    margin-bottom: 1.5rem;
}

.control-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mode-option {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.mode-option input {
    position: absolute;
    opacity: 0;
}

.mode-option.active {
    border-color: var(--accent-color);
    background: rgba(6, 182, 212, 0.05);
}

.mode-option .option-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.mode-option .option-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Model Info */
.model-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.info-row .label {
    color: var(--text-secondary);
}

.info-row .val {
    font-weight: 600;
}

.count-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

/* Result Area */
.result-area {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-title-row h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-green {
    background: var(--green-color);
    color: #ffffff;
}

.badge-red {
    background: var(--red-color);
    color: #ffffff;
}

.clean-url-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}

.clean-url-box .label {
    color: var(--text-secondary);
}

.domain-highlight {
    font-family: monospace;
    font-weight: 700;
    color: var(--accent-color);
}

/* Risk Meter */
.meter-container {
    margin-bottom: 1.5rem;
}

.meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.meter-header .risk-val {
    font-weight: 700;
}

.meter-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-red { background: linear-gradient(90deg, #ef4444, #f87171); }
.fill-green { background: linear-gradient(90deg, #10b981, #34d399); }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.feature-item .label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.feature-item .val {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Content Scan Area */
.content-scan-area {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 10px;
    padding: 0.85rem;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.4s ease;
}

.scan-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.scan-header i {
    color: #f97316;
}

.scan-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.scan-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    align-items: flex-start;
}

.scan-row .label {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.scan-row .val {
    font-weight: 600;
    text-align: right;
}

.keywords-list {
    font-family: monospace;
    font-size: 0.7rem;
    color: #f87171;
    max-width: 300px;
    word-break: break-word;
}

.action-btn-row {
    display: flex;
    justify-content: flex-end;
}

/* Tab Navigation */
.panel-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-color);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

/* Log Panel */
.log-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 250px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.03);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.log-list {
    padding: 0.75rem;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.log-placeholder {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 4rem;
}

.log-row {
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.log-row.blocked {
    border-left: 2px solid var(--red-color);
    background: rgba(239, 68, 68, 0.03);
}

.log-row.allowed {
    border-left: 2px solid var(--green-color);
    background: rgba(16, 185, 129, 0.03);
}

.log-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-action {
    font-weight: 700;
    flex-shrink: 0;
}

.log-action.blocked { color: var(--red-color); }
.log-action.allowed { color: var(--green-color); }

/* List Blocklist */
.list-container {
    height: 200px;
    overflow-y: auto;
}

.blocked-domains-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blocked-domains-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.08);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
}

.blocked-domains-list li .domain-name {
    color: var(--text-primary);
}

.blocked-domains-list li button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.blocked-domains-list li button:hover {
    color: var(--red-color);
}

/* List Whitelist */
.whitelisted-domains-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.whitelisted-domains-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.02);
    border: 1px solid rgba(16, 185, 129, 0.08);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.whitelisted-domains-list li:hover {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.18);
}

.whitelisted-domains-list li .domain-name {
    color: var(--text-primary);
}

.whitelisted-domains-list li button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.whitelisted-domains-list li button:hover {
    color: var(--red-color);
    transform: scale(1.15);
}

.empty-list-msg {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.8rem;
    text-align: center;
    padding-top: 3rem;
    background: none !important;
    border: none !important;
}

/* Raw Hosts View */
.hosts-view-container {
    height: 200px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    overflow: auto;
}

.hosts-view-container pre {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Footer */
.main-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1f2937;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
    font-size: 0.85rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .status-card { grid-column: span 6; }
    .predict-card { grid-column: span 6; }
    .traffic-card { grid-column: span 12; }
    .blocklist-card { grid-column: span 12; }
    .whitelist-card { grid-column: span 12; }
}

@media (max-width: 768px) {
    .status-card { grid-column: span 12; }
    .predict-card { grid-column: span 12; }
    .blocklist-card { grid-column: span 12; }
    .whitelist-card { grid-column: span 12; }
    
    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .logo-area {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-back-home {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .team-badge {
        text-align: center;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem 0.75rem;
        gap: 1.25rem;
    }

    .glass-panel {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .search-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-box input {
        width: 100%;
    }

    .search-box .btn {
        width: 100%;
        justify-content: center;
    }

    .log-row {
        min-width: 0;
    }

    .log-url {
        flex-grow: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .clean-url-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .domain-highlight {
        word-break: break-all;
    }

    .keywords-list {
        max-width: 100%;
        word-break: break-all;
    }

    .panel-header h2 {
        font-size: 1.1rem;
    }

    .logo-text h1 {
        font-size: 1.6rem;
    }
}

/* Model Training Results Dashboard Styles */
.model-training-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.best-model-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.85rem 1rem;
    border-radius: 12px;
}

.best-model-badge i {
    font-size: 1.5rem;
    color: #34d399;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #e5e7eb;
}

.metrics-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.metric-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.metrics-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.metric-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.metric-detail-row .detail-label {
    color: var(--text-secondary);
}

.metric-detail-row .detail-val {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-colab {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #f57c00, #ff9800);
    border: 1px solid #ffb74d;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-colab:hover {
    background: linear-gradient(135deg, #ef6c00, #f57c00);
    box-shadow: 0 6px 16px rgba(245, 124, 0, 0.35);
    transform: translateY(-1px);
}

