/* ============================================
   CYBER TOOLS - AESTHETIC LAUNCHER
   ============================================ */

:root {
    --bg-deep: #0a0a0a;
    --bg-dark: #0f0f0f;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    
    --primary: #e4e4e7;
    --primary-dim: #a1a1aa;
    --primary-glow: rgba(228, 228, 231, 0.15);
    
    --accent: #ffffff;
    --accent-dim: #d4d4d8;
    --accent-glow: rgba(255, 255, 255, 0.1);
    
    --purple: #71717a;
    --purple-glow: rgba(113, 113, 122, 0.3);
    
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-dim: #52525b;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
    opacity: 0.3;
    z-index: 1;
    animation: scan 6s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    50% { transform: translate(100px, -100px); }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.tools-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 100px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */

.tools-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-icon {
    font-size: 1rem;
}

.tools-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, #ffffff, #71717a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.terminal-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.prompt {
    color: var(--primary);
}

.command {
    color: var(--text-primary);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   TOOLS LAUNCHER GRID
   ============================================ */

.tools-launcher {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.05);
}

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

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tool-card:hover .card-glow {
    opacity: 0.3;
}

.card-content {
    position: relative;
    padding: 2rem;
    z-index: 1;
}

.tool-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.tool-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: scale(1.1);
}

.tool-card:hover .tool-icon svg {
    color: var(--accent);
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: var(--transition);
}

.launch-btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.tool-card:hover .launch-btn {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-deep);
}

.tool-card:hover .launch-btn svg {
    transform: translateX(4px);
}

/* ============================================
   TOOL WORKSPACE
   ============================================ */

.tool-workspace {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.tool-workspace.active {
    display: block;
}

.tools-launcher.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

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

.workspace-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workspace-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.workspace-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* ============================================
   TOOL PANEL STYLES
   ============================================ */

.tool-panel {
    max-width: 800px;
    margin: 0 auto;
}

.tool-panel.dual-panel {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dim);
    padding-top: 3rem;
}

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

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input,
.input-group textarea {
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: var(--transition);
    resize: vertical;
}

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

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-dim);
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .input-group {
    flex: 1;
}

.input-row .input-group.small {
    flex: 0 0 100px;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 50px;
}

.toggle-visibility {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.toggle-visibility:hover {
    color: var(--primary);
}

.toggle-visibility svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.action-btn.primary {
    background: linear-gradient(135deg, #ffffff, #d4d4d8);
    border: none;
    color: var(--bg-deep);
    font-weight: 600;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.action-btn.primary svg {
    width: 20px;
    height: 20px;
}

.action-btn.large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* ============================================
   PASSWORD STRENGTH TOOL
   ============================================ */

.strength-display {
    margin: 2rem 0;
}

.strength-meter {
    position: relative;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.meter-fill.weak { 
    width: 25%; 
    background: #ef4444; 
}
.meter-fill.fair { 
    width: 50%; 
    background: #f59e0b; 
}
.meter-fill.good { 
    width: 75%; 
    background: #a1a1aa; 
}
.meter-fill.strong { 
    width: 100%; 
    background: linear-gradient(90deg, #d4d4d8, #ffffff); 
}

.meter-segments {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
}

.meter-segments span {
    flex: 1;
    border-right: 2px solid var(--bg-card);
}

.meter-segments span:last-child {
    border-right: none;
}

.strength-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
}

.strength-label.weak { color: #ef4444; }
.strength-label.fair { color: #f59e0b; }
.strength-label.good { color: #a1a1aa; }
.strength-label.strong { color: #ffffff; }

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.analysis-item.passed {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.analysis-item .check-icon {
    font-size: 1.1rem;
    transition: var(--transition);
}

.analysis-item.passed .check-icon {
    color: var(--text-primary);
}

.crack-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.crack-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.crack-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   HASH GENERATOR TOOL
   ============================================ */

.hash-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.hash-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.hash-type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-btn {
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-deep);
}

.hash-value {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.6;
}

/* ============================================
   JWT DECODER TOOL
   ============================================ */

.jwt-results {
    margin-top: 2rem;
}

.jwt-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.jwt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.jwt-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.jwt-label.header {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.jwt-label.payload {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

.jwt-alg {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.jwt-content {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.jwt-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 165, 2, 0.1);
    border: 1px solid rgba(255, 165, 2, 0.3);
    border-radius: var(--radius-md);
    color: var(--warning);
    font-size: 0.9rem;
}

.jwt-warning svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   SUBNET CALCULATOR TOOL
   ============================================ */

.subnet-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-card.wide {
    grid-column: 1 / -1;
}

.result-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   PASSWORD GENERATOR TOOL
   ============================================ */

.gen-options {
    margin-bottom: 2rem;
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.option-row label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.slider-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-wrap input[type="range"] {
    width: 200px;
    height: 6px;
    -webkit-appearance: none;
    background: var(--bg-elevated);
    border-radius: 10px;
    outline: none;
}

.slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

.option-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-wrap:hover {
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-wrap input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-wrap input:checked + .checkmark {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.checkbox-wrap input:checked + .checkmark::after {
    content: '✓';
    color: var(--bg-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

.checkbox-wrap span:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.generated-password-wrap {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.generated-password {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-secondary);
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.generated-password.active {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.copy-btn.large {
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn.large:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-deep);
}

.copy-btn.large svg {
    width: 24px;
    height: 24px;
}

.gen-entropy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.entropy-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.entropy-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: var(--bg-deep);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .tools-container {
        padding: 90px 1rem 3rem;
    }
    
    .tools-header {
        margin-bottom: 2rem;
    }
    
    .tools-title {
        font-size: 2.5rem;
    }
    
    .launcher-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .tool-panel.dual-panel {
        grid-template-columns: 1fr;
    }
    
    .panel-divider {
        padding: 0;
        transform: rotate(90deg);
    }
    
    .workspace-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
    
    .workspace-status {
        display: none;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .subnet-results {
        grid-template-columns: 1fr;
    }
    
    .option-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .slider-wrap {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .slider-wrap input[type="range"] {
        width: 150px;
    }
    
    .generated-password-wrap {
        flex-direction: column;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .input-row .input-group.small {
        flex: 1;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .terminal-line {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .workspace-content {
        padding: 1rem;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   CV TAILOR - AI RESUME BUILDER
   ============================================ */

/* Featured Card Styling */
.tool-card.featured {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
}

.tool-card.featured::before {
    opacity: 0.5;
}

.tool-icon.ai-powered {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ffffff, #d4d4d8);
    color: #0a0a0a;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* CV Tailor Panel */
.cv-tailor-panel {
    max-width: 900px;
    margin: 0 auto;
}

/* Steps Indicator */
.cv-tailor-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    opacity: 0.4;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-deep);
}

.step.completed .step-number {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step.active .step-label {
    color: var(--text-primary);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
}

/* Step Content */
.cv-step-content {
    animation: fadeIn 0.4s ease;
}

.cv-step-content.hidden {
    display: none;
}

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

.cv-step-content .input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cv-step-content .input-group label svg {
    color: var(--text-secondary);
}

.cv-step-content textarea {
    min-height: 300px;
    line-height: 1.7;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-style: italic;
}

.btn-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Processing State */
.processing-state {
    text-align: center;
    padding: 3rem 2rem;
}

.ai-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
    border-top-color: var(--text-secondary);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--text-dim);
    animation-duration: 2.5s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    animation: pulse 2s ease-in-out infinite;
}

.processing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.processing-status {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
}

.proc-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.proc-step.active {
    color: var(--text-primary);
}

.proc-step.completed {
    color: var(--text-secondary);
}

.proc-icon {
    font-size: 0.75rem;
}

.proc-step.completed .proc-icon {
    color: var(--success);
}

/* Results State */
.results-state {
    animation: fadeIn 0.5s ease;
}

.results-state.hidden {
    display: none;
}

/* ATS Score Display */
.ats-score-display {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1;
}

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

/* Resume Preview */
.resume-preview {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.preview-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
}

.preview-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

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

.preview-content {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.preview-content::-webkit-scrollbar {
    width: 6px;
}

.preview-content::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.preview-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Resume Preview Content Styles */
.resume-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.resume-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.resume-contact {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.resume-section {
    margin-bottom: 1.5rem;
}

.resume-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
}

.resume-item {
    margin-bottom: 1rem;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.resume-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.resume-item-date {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.resume-item-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.resume-item-list {
    list-style: none;
    padding: 0;
}

.resume-item-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.resume-item-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-skill {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Keywords Matched */
.keywords-matched {
    margin-bottom: 2rem;
}

.keywords-matched h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.keyword-tag.matched {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 2rem;
}

.error-state.hidden {
    display: none;
}

.error-icon {
    color: var(--danger);
    margin-bottom: 1.5rem;
}

.error-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-tailor-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .step {
        padding: 0.5rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .btn-row {
        flex-direction: column;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2rem;
    }
}
