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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #00ff;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    color: #ff6b35;
    font-size: 1.8rem;
    font-weight: bold;
}

/* ==========================================================================
   AI PROFILE COMPONENT
   ========================================================================== */
.ai-profile {
    position: relative;
}

.ai-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 13px rgba(209, 209, 209, 0.6);
    background: rgba(0, 0, 0, 0.4);
    color: #ff0000;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.ai-profile-btn:hover {
    transform: translateZ(10px) rotateX(10deg) rotateY(10deg) scale(1.25);
    box-shadow:
        0 15px 25px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 100, 0, 0.6),
        0 0 30px rgba(255, 200, 0, 0.4),
        0 0 40px rgba(0, 255, 0, 0.3),
        0 0 50px rgba(0, 100, 255, 0.2),
        0 0 60px rgba(100, 0, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.4);
    animation: rainbow-glow 4s linear infinite;
}

.ai-profile-btn:hover::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg,
            #ff0000, #ff3300, #ff6600, #ff9900, #ffcc00, #ffff00,
            #ccff00, #99ff00, #66ff00, #33ff00, #00ff00, #00ff33,
            #00ff66, #00ff99, #00ffcc, #00ffff, #00ccff, #0099ff,
            #0066ff, #0033ff, #0000ff, #3300ff, #6600ff, #9900ff,
            #cc00ff, #ff00ff, #ff00cc, #ff0099, #ff0066, #ff0033, #ff0000);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    animation: rainbow-border 3s linear infinite;
    filter: blur(3px);
    opacity: 0.7;
}

.ai-profile-btn.attn {
    animation: ai-attn 0.6s ease;
}

.ai-badge {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   AI DROPDOWN
   ========================================================================== */
.ai-dropdown {
    position: absolute;
    right: 0;
    top: 54px;
    width: min(320px, 90vw);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1002;
}

.ai-dropdown.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ai-dropdown-inner {
    padding: 14px;
}

.ai-dropdown-header {
    color: #ff6b35;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-field {
    margin-bottom: 10px;
}

.ai-field label {
    display: block;
    font-size: 0.85rem;
    color: #ff6b35;
    margin-bottom: 6px;
}

.ai-field input,
.ai-field select {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ai-field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 30px;
    cursor: pointer;
}

.ai-field input:focus,
.ai-field select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.2);
    background: #2a2a2a;
}

.ai-field select:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: #2a2a2a;
}

.ai-field select option {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 6px;
}

.ai-help {
    opacity: 0.7;
    display: block;
    margin-top: 6px;
}

.ai-missing {
    border-color: #ff4444 !important;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.3) !important;
}

/* ==========================================================================
   HAMBURGER MENU
   ========================================================================== */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border: none;
    background: none;
    z-index: 1001;
    transition: transform 0.2s ease;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger:hover {
    transform: scale(1.1);
    position: relative;
    border-radius: 8px;
}

.hamburger:hover::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg,
            #ff0000, #ff3300, #ff6600, #ff9900, #ffcc00, #ffff00,
            #ccff00, #99ff00, #66ff00, #33ff00, #00ff00, #00ff33,
            #00ff66, #00ff99, #00ffcc, #00ffff, #00ccff, #0099ff,
            #0066ff, #0033ff, #0000ff, #3300ff, #6600ff, #9900ff,
            #cc00ff, #ff00ff, #ff00cc, #ff0099, #ff0066, #ff0033, #ff0000);
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: rainbow-border 3s linear infinite;
    filter: blur(2px);
    opacity: 0.8;
}

.hamburger:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #ff6b35;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
    display: block;
}

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

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

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

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 90vw);
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(100deg, rgba(8, 10, 12, 0.98) 0%, rgba(30, 35, 42, 0.92) 50%, rgba(28, 32, 40, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 2px solid #6eff35;
    transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 999;
    padding: 10px 0 20px;
    display: flex;
    flex-direction: column;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    transform: translateZ(0);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu.active {
    right: 0;
    transform: translateZ(0) translateX(0);
}

.nav-menu * {
    transform: translateZ(0);
}

/* ==========================================================================
   MENU CATEGORIES AND LINKS
   ========================================================================== */
.home-link {
    margin: 20px 20px 15px;
    padding: 0;
}

.home-link .nav-link {
    display: block;
    padding: 15px 20px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-link .nav-link:hover {
    background: transparent;
    transform: translateY(-2px);
    border-left: 4px solid transparent;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.home-link .nav-link.active {
    background: transparent;
    border-left: 4px solid transparent;
    font-size: 1.55rem;
}

.menu-category {
    margin: 10px 20px 5px;
    padding: 10px 15px;
    background: transparent;
    border-radius: 8px;
    border-left: 1px solid #ff6b358e;
}

.category-title {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.category-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-links .nav-link {
    margin: 2px 0;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 30px;
    margin: 5px 20px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    display: block;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    border-left: 4px solid #ff6b35;
    transform: translateX(8px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.nav-link.active {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.2);
    border-left: 4px solid #ff6b35;
    font-weight: 600;
}

/* ==========================================================================
   OVERLAY
   ========================================================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ==========================================================================
   MAIN CONTENT AND LAYOUT
   ========================================================================== */
.container {
    padding-top: 80px;
}

.main-content {
    padding: 30px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 15px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.hero-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff6b35, #ff8c69);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.hero-description {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.5;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 50px;
    justify-items: stretch;
}

.service-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 80px;
}

.service-card:hover {
    transform: translateX(4px);
    border-color: #ff6b35;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
}

.card-header {
    padding: 16px 20px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 107, 53, 0.1);
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-content {
    padding: 16px 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 107, 53, 0.1);
}

.card-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-content p {
    margin-bottom: 8px;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-list {
    list-style: none;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-list li {
    position: relative;
    padding: 4px 8px;
    margin-bottom: 0;
    opacity: 0.8;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.feature-list li::before {
    display: none;
}

.card-footer {
    padding: 16px 20px;
    margin-top: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.15);
    color: #ffb199;
    font-size: 0.75rem;
    line-height: 1;
    vertical-align: baseline;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8c69);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #ff8c69, #ff6b35);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */
.security-section {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.security-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
    font-size: 2rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.security-item {
    text-align: center;
    padding: 20px;
}

.security-item h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.security-item p {
    opacity: 0.8;
    line-height: 1.6;
}

/* ==========================================================================
   AI RESULT COMPONENTS
   ========================================================================== */
.result-container h1,
.result-container h2,
.result-container h3,
.result-container h4,
.result-container h5,
.result-container h6 {
    margin-top: 1.1em;
    margin-bottom: 0.6em;
}

.result-container ul,
.result-container ol {
    padding-left: 28px;
    margin: 0.6em 0 0.6em 4px;
}

.result-container ul ul,
.result-container ol ul,
.result-container ul ol,
.result-container ol ol {
    padding-left: 24px;
}

.result-container li {
    margin: 6px 0;
}

/* AI specific stack/card styles moved to ai-tools-pages.css to keep core lean */

/* ==========================================================================
   FORM COMPONENTS
   ========================================================================== */
.form-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    margin-top: 10px !important;
    padding: 0px 40px 0px 40px !important;
    background: rgba(26, 26, 26, 0.95) !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 107, 53, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.form-group {
    margin-bottom: 25px !important;
    position: relative !important;
}

.form-group label:not(.checkbox-inline) {
    color: #ff6b35 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 1rem !important;
}

.form-group select {
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(45, 45, 45, 0.8) 100%) !important;
    border: 2px solid rgba(255, 107, 53, 0.3) !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    padding-right: 45px !important;
    color: #e0e0e0 !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 18px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.form-group select:focus {
    outline: none !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    background-color: #222 !important;
}

.form-group select:hover {
    border-color: rgba(255, 107, 53, 0.5) !important;
    background-color: #222 !important;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100% !important;
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(45, 45, 45, 0.8) 100%) !important;
    border: 2px solid rgba(255, 107, 53, 0.3) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    color: #e0e0e0 !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1), 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    background-color: #222 !important;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(255, 107, 53, 0.5) !important;
    background-color: #222 !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select option[value=""] {
    color: #888 !important;
    opacity: 1 !important;
}

/* ==========================================================================
   CHECKBOX AND RADIO CONTROLS
   ========================================================================== */
input[type="radio"],
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.checkbox-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 6px;
}

.checkbox-group .checkbox-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-inline {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 2px solid rgba(255, 107, 53, 0.3) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    margin: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
    font-weight: 500 !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #e0e0e0 !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.checkbox-inline:hover {
    background: rgba(255, 107, 53, 0.2) !important;
    border-color: rgba(255, 107, 53, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2) !important;
}

label[style*="display: flex"] {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 2px solid rgba(255, 107, 53, 0.3) !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    margin: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
    font-weight: 500 !important;
    position: relative !important;
}

label[style*="display: flex"]:hover {
    background: rgba(255, 107, 53, 0.2) !important;
    border-color: rgba(255, 107, 53, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2) !important;
}

input[type="radio"]:focus+label,
input[type="checkbox"]:focus+label,
label:has(input[type="radio"]:focus),
label:has(input[type="checkbox"]:focus),
.checkbox-inline:has(input:focus) {
    outline: 2px solid #ff6b35 !important;
    outline-offset: 2px !important;
}

.checkbox-inline:has(input[type="checkbox"]:checked)::before {
    content: "✓" !important;
    position: absolute !important;
    right: 8px !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

label:has(input[type="radio"]:checked)::before {
    content: "●" !important;
    position: absolute !important;
    right: 8px !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

.checkbox-inline input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px !important;
    border: 2px solid rgba(255, 107, 53, 0.5) !important;
    background: #1a1a1a !important;
    cursor: pointer !important;
    margin: 0 !important;
    accent-color: #ff6b35;
}

.checkbox-inline input[type="checkbox"]:checked {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary,
button[onclick],
button.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c69 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    min-width: 200px !important;
    margin: 10px auto !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    text-align: center !important;
}

.btn-primary:hover,
button[onclick]:hover,
button.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4) !important;
    background: linear-gradient(135deg, #ff8c69 0%, #ff6b35 100%) !important;
}

.btn-primary:active,
button[onclick]:active,
button.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

.btn-primary:disabled,
button[onclick]:disabled,
button.btn-primary:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.form-container form {
    text-align: center !important;
}

.form-container .form-group {
    text-align: left !important;
}

.result-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
}

.result-buttons .btn-primary {
    min-width: auto !important;
    width: auto !important;
    padding: 8px 16px !important;
    margin: 2px !important;
    font-size: 14px !important;
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border-radius: 6px !important;
    min-width: 120px !important;
}

.result-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   QUIZ COMPONENTS
   ========================================================================== */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.question-container {
    padding: 30px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ff6b35;
    font-weight: bold;
}

.answer-option {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #1a1a1a;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #ff8c69);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-results {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.score-display {
    font-size: 3rem;
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ==========================================================================
   FILE UPLOAD
   ========================================================================== */
.file-upload-area {
    border: 2px dashed rgba(255, 107, 53, 0.5);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 107, 53, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.file-upload-area.dragover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.15);
}

.upload-text {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #999;
    font-size: 0.9rem;
}

.file-name {
    color: #ff6b35;
    font-weight: bold;
    margin-top: 10px;
}

/* ==========================================================================
   RESULT CONTENT FORMATTING
   ========================================================================== */
.result-content {
    text-align: left !important;
    line-height: 1.6;
}

.result-content div {
    text-align: left !important;
}

.result-content h1,
.result-content h2,
.result-content h3,
.result-content h4,
.result-content h5,
.result-content h6 {
    color: #ff6b35;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
    text-align: left !important;
}

.result-content h1 {
    font-size: 2em;
}

.result-content h2 {
    font-size: 1.7em;
}

.result-content h3 {
    font-size: 1.4em;
}

.result-content h4 {
    font-size: 1.2em;
}

.result-content h5 {
    font-size: 1.1em;
}

.result-content h6 {
    font-size: 1em;
}

.result-content p {
    margin: 1em 0;
    text-align: left !important;
}

.result-content ul,
.result-content ol {
    margin: 1em 0;
    padding-left: 2em;
    text-align: left !important;
}

.result-content li {
    margin: 0.5em 0;
    text-align: left !important;
}

.result-content blockquote {
    border-left: 4px solid #ff6b35;
    margin: 1em 0;
    padding: 0.5em 1em;
    background: rgba(255, 107, 53, 0.1);
    text-align: left !important;
}

.result-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.result-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
    text-align: left !important;
}

.result-content strong,
.result-content b {
    color: #ffd700;
    font-weight: 600;
}

.result-content em,
.result-content i {
    color: #87ceeb;
    font-style: italic;
}

.result-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    text-align: left !important;
}

.result-content th,
.result-content td {
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.5em;
    text-align: left !important;
}

.result-content th {
    background: rgba(255, 107, 53, 0.2);
    font-weight: 600;
}

#resultContent,
#resultContent *,
.result-content,
.result-content * {
    text-align: left !important;
}

#resultDiv,
#tpq-result,
#vr-result {
    text-align: left !important;
}

#resultDiv *,
#tpq-result *,
#vr-result * {
    text-align: left !important;
}

/* ==========================================================================
   UTILITY STATES
   ========================================================================== */
.loading {
    text-align: center !important;
    padding: 40px !important;
    color: #ff6b35 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b35;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    margin-top: 10px;
}

.success {
    color: #44ff44;
    background: rgba(68, 255, 68, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(68, 255, 68, 0.3);
    margin-top: 10px;
}

#errorDiv {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    color: #ff6b6b !important;
    text-align: center !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #000;
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid #ff6b35;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.7;
}

/* ==========================================================================
   GLOBAL ALIGNMENT OVERRIDES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.security-section h2,
.security-item h4,
.ai-card h1,
.card-header h3,
.result-content h1,
.result-content h2,
.result-content h3,
.result-content h4,
.result-content h5,
.result-content h6 {
    text-align: center !important;
}

p,
.security-item p,
.result-content p,
.ai-card p,
.card p {
    text-align: left !important;
}

.security-item h4 {
    text-align: center !important;
}

.security-item p {
    text-align: left !important;
}

/* ==========================================================================
   ANIMATIONS AND KEYFRAMES
   ========================================================================== */
@keyframes rainbow-glow {
    0% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.3), 0 0 40px rgba(255, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    10% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 80, 0, 0.5), 0 0 20px rgba(255, 80, 0, 0.4), 0 0 30px rgba(255, 80, 0, 0.3), 0 0 40px rgba(255, 80, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    20% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 160, 0, 0.5), 0 0 20px rgba(255, 160, 0, 0.4), 0 0 30px rgba(255, 160, 0, 0.3), 0 0 40px rgba(255, 160, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    30% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 0, 0.5), 0 0 20px rgba(255, 255, 0, 0.4), 0 0 30px rgba(255, 255, 0, 0.3), 0 0 40px rgba(255, 255, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    40% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(128, 255, 0, 0.5), 0 0 20px rgba(128, 255, 0, 0.4), 0 0 30px rgba(128, 255, 0, 0.3), 0 0 40px rgba(128, 255, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    50% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.4), 0 0 30px rgba(0, 255, 0, 0.3), 0 0 40px rgba(0, 255, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    60% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 200, 0.5), 0 0 20px rgba(0, 255, 200, 0.4), 0 0 30px rgba(0, 255, 200, 0.3), 0 0 40px rgba(0, 255, 200, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    65% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 200, 255, 0.5), 0 0 20px rgba(0, 200, 255, 0.4), 0 0 30px rgba(0, 200, 255, 0.3), 0 0 40px rgba(0, 200, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    70% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 128, 255, 0.5), 0 0 20px rgba(0, 128, 255, 0.4), 0 0 30px rgba(0, 128, 255, 0.3), 0 0 40px rgba(0, 128, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    75% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(64, 64, 255, 0.5), 0 0 20px rgba(64, 64, 255, 0.4), 0 0 30px rgba(64, 64, 255, 0.3), 0 0 40px rgba(64, 64, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    80% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(128, 0, 255, 0.5), 0 0 20px rgba(128, 0, 255, 0.4), 0 0 30px rgba(128, 0, 255, 0.3), 0 0 40px rgba(128, 0, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    85% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(200, 0, 255, 0.5), 0 0 20px rgba(200, 0, 255, 0.4), 0 0 30px rgba(200, 0, 255, 0.3), 0 0 40px rgba(200, 0, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    90% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 0, 128, 0.5), 0 0 20px rgba(255, 0, 128, 0.4), 0 0 30px rgba(255, 0, 128, 0.3), 0 0 40px rgba(255, 0, 128, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    95% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 0, 64, 0.5), 0 0 20px rgba(255, 0, 64, 0.4), 0 0 30px rgba(255, 0, 64, 0.3), 0 0 40px rgba(255, 0, 64, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }

    100% {
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.3), 0 0 40px rgba(255, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.08);
    }
}

@keyframes rainbow-border {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes ai-attn {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-2px);
    }

    40% {
        transform: translateX(2px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-section {
        padding: 18px 12px;
        margin-bottom: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 45px;
    }

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

    .form-container {
        padding: 20px;
    }

    .main-content {
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-header {
        border-right: none;
        border-bottom: 1px solid rgba(255, 107, 53, 0.1);
        flex: none;
        padding: 12px 16px;
    }

    .card-content {
        border-right: none;
        padding: 12px 16px;
    }

    .card-footer {
        padding: 12px 16px;
    }

    .feature-list {
        justify-content: flex-start;
    }

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

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 15px 10px;
        margin-bottom: 20px;
    }

    .nav-menu {
        width: 320px;
        right: -320px;
    }

    .form-container {
        margin: 20px !important;
        padding: 25px !important;
    }

    .result-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .result-buttons .btn-primary {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .nav-menu.active {
        right: 0;
    }

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

    .hero-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .hero-section {
        padding: 12px 8px;
        margin-bottom: 18px;
    }

    .services-grid {
        gap: 15px;
        margin-bottom: 35px;
    }
}