/* ===== CSS VARIABLES ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #38ef7d;
    --warning: #f093fb;
    --danger: #f5576c;
    --dark: #1a202c;
    --light: #f7fafc;
    --gray: #718096;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-danger: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== THEME VARIABLES ===== */
body.dark-theme {
    --bg-primary: #0f0c29;
    --bg-secondary: #1a202c;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --card-bg: rgba(26, 32, 44, 0.8);
    --header-bg: rgba(15, 12, 41, 0.85);
    --header-border: rgba(255, 255, 255, 0.08);
    --dropdown-bg: rgba(26, 32, 44, 0.95);
    --textarea-bg: rgba(0, 0, 0, 0.3);
    --footer-bg: rgba(0, 0, 0, 0.4);
    --footer-text: #ffffff;
    --footer-muted: #a0aec0;
    --footer-border: rgba(255, 255, 255, 0.1);
}

body.light-theme {
    --bg-primary: #f7fafc;
    --bg-secondary: #edf2f7;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-border: rgba(0, 0, 0, 0.08);
    --dropdown-bg: rgba(255, 255, 255, 0.98);
    --textarea-bg: rgba(0, 0, 0, 0.04);
    --footer-bg: #1a202c;
    --footer-text: #ffffff;
    --footer-muted: #a0aec0;
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    transition: var(--transition);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* ===== DROPDOWN MENU ===== */
.nav-item {
    list-style: none;
}

.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown > .nav-link {
    cursor: pointer;
}

.nav-item.dropdown > .nav-link .fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1001;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    padding-left: 1.5rem;
}

/* ===== NAV ACTIONS ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle,
.hamburger {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.12);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle:hover,
.hamburger:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== AD BANNERS ===== */
.ad-banner-top {
    width: 100%;
    padding: 1rem 0;
    padding-top: 80px;
    text-align: center;
}

.ad-banner-middle {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
}

.ad-slot {
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed var(--gray);
    color: var(--gray);
    padding: 1rem;
    margin: 0 auto;
    display: inline-block;
    min-width: 300px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 40px 2rem 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background: var(--card-bg);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: var(--shadow-sm);
}

.badge i {
    color: var(--primary);
}

.hero-cta {
    margin-top: 1.5rem;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.tool-card {
    background: var(--card-bg);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

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

.tool-card.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.tool-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tool-card.active .tool-icon {
    color: white;
}

.tool-icon .arrow {
    font-size: 1rem;
    opacity: 0.6;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.tool-tag {
    display: inline-block;
    background: var(--gradient-success);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CONVERTER PANELS ===== */
.converter-wrapper {
    position: relative;
}

.converter-panel {
    display: none;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
}

.converter-panel.active {
    display: block;
}

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

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.panel-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    background: rgba(102, 126, 234, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: rotate(-15deg);
}

/* ===== INPUT AREA ===== */
.input-area {
    margin-bottom: 1.5rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.input-header label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-upload {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.btn-upload:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-upload input[type="file"] {
    display: none;
}

.btn-sample {
    background: rgba(118, 75, 162, 0.1);
    color: var(--secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-sample:hover {
    background: rgba(118, 75, 162, 0.2);
    transform: translateY(-2px);
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-md);
    background: var(--textarea-bg);
    color: var(--text-primary);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.drag-over {
    border-color: var(--success);
    background: rgba(56, 239, 125, 0.05);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== OPTIONS BAR ===== */
.options-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

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

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

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
}

.checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    display: none;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select-wrapper select {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(102, 126, 234, 0.15);
    background: var(--textarea-bg);
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
}

/* ===== OUTPUT AREA ===== */
.output-area {
    margin-top: 2rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.output-header label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.output-status {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.output-status.success {
    background: rgba(56, 239, 125, 0.1);
    color: #11998e;
}

body.dark-theme .output-status.success {
    color: var(--success);
}

.output-status.error {
    background: rgba(245, 87, 108, 0.1);
    color: var(--danger);
}

.output-container {
    position: relative;
}

.output-code {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    min-height: 200px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #11998e;
    line-height: 1.6;
}

body.dark-theme .output-code {
    color: var(--success);
}

body.light-theme .output-code {
    background: rgba(0, 0, 0, 0.06);
}

.output-code.error {
    border-color: var(--danger);
    color: var(--danger);
}

.output-code.success {
    border-color: rgba(17, 153, 142, 0.3);
}

body.dark-theme .output-code.success {
    border-color: rgba(56, 239, 125, 0.3);
}

/* ===== PRIVACY BANNER ===== */
.privacy-banner {
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    text-align: center;
}

.privacy-content i {
    font-size: 3rem;
    color: var(--primary);
}

.privacy-content strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.privacy-content p {
    color: var(--text-secondary);
}

/* ===== SEO CONTENT ===== */
.seo-content {
    margin-top: 4rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.seo-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.seo-content h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.seo-content ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.seo-content li {
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-decoration: none;
}

.main-footer .logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-footer .logo span {
    -webkit-text-fill-color: var(--footer-text);
}

.main-footer .logo .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--footer-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.trust-badges {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.trust-badges span {
    color: var(--footer-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-badges span i {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    font-size: 0.85rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--footer-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    z-index: 9999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #11998e;
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: #f5a623;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dropdown-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    /* Mobile dropdown - always visible when nav is open */
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0.25rem 0 0.25rem 1.5rem;
        min-width: unset;
        opacity: 1;
        transform: none;
        display: block;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-menu li a:hover {
        padding-left: 1.25rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .trust-badges {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 120px 1.5rem 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

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

    .input-actions {
        flex-direction: column;
    }

    .options-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .privacy-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}