/* Rank Banner */
.rank-banner {
    max-width: 560px;
    margin: 2rem auto;
    background: rgba(18, 18, 36, 0.25);
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0, 212, 255, 0.08);
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rank-banner-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

.rank-banner-desc {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.rank-banner-link {
    color: #ff6b6b;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}

.rank-banner-link:hover { color: #00d4ff; }

.rank-banner-note {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rank-banner-insta {
    color: #e4405f;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

.rank-banner-wa {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

.rank-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: linear-gradient(135deg, #00d4ff, #667eea);
    color: #fff;
    font-weight: 700;
    padding: 0.65em 1.75em;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
    transition: opacity 0.2s, transform 0.2s;
}

.rank-banner-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .rank-banner { margin: 1.5rem 0.75rem; }
}

/* WhatsApp Buttons */
.whatsapp-buttons {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.6em;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.whatsapp-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.whatsapp-group {
    background: #25d366;
    color: #fff;
}

.whatsapp-channel {
    background: #075e54;
    color: #fff;
}

/* Social Icons in Footer */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 0.75rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    text-decoration: none;
    position: relative;
}

.social-icons a[title="LinkedIn"] { color: #38bdf8; }
.social-icons a[title="GitHub"]   { color: #c4b5fd; }
.social-icons a[title="Instagram"] { color: #f472b6; }

.social-icons i {
    font-size: 1.2rem;
    transition: transform 0.22s ease;
    display: block;
}

.social-icons a:hover {
    transform: translateY(-4px) scale(1.12);
    text-decoration: none;
}

.social-icons a[title="LinkedIn"]:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.social-icons a[title="GitHub"]:hover {
    background: rgba(196, 181, 253, 0.18);
    border-color: #c4b5fd;
    box-shadow: 0 0 18px 4px rgba(196, 181, 253, 0.35);
    color: #ddd6fe;
}

.social-icons a[title="Instagram"]:hover {
    background: rgba(244, 114, 182, 0.18);
    border-color: #f472b6;
    box-shadow: 0 0 18px 4px rgba(244, 114, 182, 0.35);
    color: #fbcfe8;
}

.social-icons a:hover i {
    transform: scale(1.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #080818;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    background:
        radial-gradient(ellipse 60% 50% at 15% 85%, rgba(102, 126, 234, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(240, 147, 251, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 55% at 50% 50%, rgba(0, 212, 255, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(16, 185, 129, 0.25) 0%, transparent 55%);
    animation: bgDrift 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 40% at 70% 30%, rgba(118, 75, 162, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 35% 45% at 20% 20%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 40% 90%, rgba(99, 102, 241, 0.3) 0%, transparent 55%);
    animation: bgDrift2 24s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes bgDrift {
    0%   { transform: translate(0, 0) scale(1);      opacity: 1; }
    25%  { transform: translate(3%, -4%) scale(1.05); opacity: 0.9; }
    50%  { transform: translate(-4%, 3%) scale(1.08); opacity: 1; }
    75%  { transform: translate(5%, 5%) scale(1.03);  opacity: 0.85; }
    100% { transform: translate(-3%, -5%) scale(1.1); opacity: 1; }
}

@keyframes bgDrift2 {
    0%   { transform: translate(0, 0) scale(1.05);    opacity: 0.8; }
    33%  { transform: translate(-5%, 4%) scale(1);    opacity: 1; }
    66%  { transform: translate(4%, -3%) scale(1.08); opacity: 0.75; }
    100% { transform: translate(-2%, 6%) scale(1.12); opacity: 1; }
}

/* Navbar */
.navbar {
    background: rgba(8, 8, 24, 0.85);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.25);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: 0 2px 32px rgba(102, 126, 234, 0.12), 0 1px 0 rgba(255,255,255,0.04);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f6fe 0%, #3cff00 50%, #0048ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: logoShimmer 6s ease-in-out infinite alternate;
    white-space: nowrap;
    position: relative;
    z-index: 5100;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

@keyframes logoShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35em;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    position: relative;
    z-index: 5100;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 36, 0.98);
    backdrop-filter: blur(24px) saturate(140%);
    z-index: 5050;
    padding: 0 1rem 2rem 1rem;
    border-top: 2px solid #00d4ff33;
    box-shadow: none;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(.77, 0, .18, 1), background 0.3s;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1.5px solid #00d4ff33;
    padding-bottom: 1.2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.mobile-menu-links a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    background: rgba(15, 15, 40, 0.65);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(102, 126, 234, 0.18);
    padding: 2rem;
    border-radius: 24px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(102, 126, 234, 0.6) 30%,
        rgba(240, 147, 251, 0.6) 70%,
        transparent 100%);
}

h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 40%, #f472b6 70%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: h1Shimmer 8s ease-in-out infinite alternate;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

@keyframes h1Shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    transition: all 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(15, 15, 35, 0.8);
}

input::placeholder {
    color: #64748b;
}

/* Custom Select Arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.detected-branch {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid #667eea;
    color: #a5b4fc;
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

button {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    /* Better touch targets */
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: white;
    transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(102, 126, 234, 0.5), 0 0 0 1px rgba(240,147,251,0.2);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.success-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

button:disabled {
    background: rgba(100, 116, 139, 0.3) !important;
    color: #64748b !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Note Card */
.note-card {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-left: 3px solid #818cf8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.note-card-icon {
    color: #818cf8;
    font-size: 0.95rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.note-card-body {
    flex: 1;
}

.note-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.35rem;
}

.note-card-text {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.6;
}

.note-card-text strong {
    color: #c4b5fd;
    font-weight: 600;
}

/* Privacy Section */
.privacy-section {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.privacy-title {
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-text {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.privacy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Results Section */
.result {
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-card {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.loading {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: #a5b4fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.details {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 600;
    color: #e2e8f0;
    word-break: break-word;
}

/* Table Styles */
.table-container {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th,
td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.critical-score {
    background: rgba(128, 25, 25, 0.445);
}

th {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

td {
    color: #e2e8f0;
    font-size: 0.875rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.subject-name {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-text {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-text a {
    color: #667eea;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Agreement Section */
.agreement-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.agreement-section.show {
    transform: translateY(0);
}

.agreement-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.agreement-text {
    color: #d1d5db;
    font-size: 0.85rem;
    flex: 1;
    line-height: 1.4;
}

.agreement-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.agreement-buttons button {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: auto;
    flex: none;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: row-reverse;
    }

    .mobile-menu {
        display: block;
    }

    .main-content {
        padding: 0.75rem;
    }

    .container {
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 0.5rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .details {
        padding: 1.25rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    th,
    td {
        padding: 0.625rem;
        font-size: 0.8rem;
    }

    .table-container {
        margin: 1rem -0.5rem 2rem -0.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .agreement-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .agreement-buttons {
        width: 100%;
        justify-content: center;
    }

    .agreement-buttons button {
        flex: 1;
        max-width: 120px;
    }

    .privacy-section {
        padding: 1rem;
    }

    .privacy-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .container {
        padding: 1.25rem;
        margin: 0.25rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    input,
    select,
    button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }

    .subject-name {
        font-size: 0.7rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .spinner {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.35rem;
    }

    .agreement-buttons button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    table {
        min-width: 400px;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding: 0.5rem;
    }

    .container {
        margin: 0.25rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        margin-bottom: 1rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .agreement-section,
    .action-buttons,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    body::before,
    body::after {
        display: none !important;
    }

    .container {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .details {
        background: #f8f9fa !important;
        border: 1px solid #ccc !important;
    }

    .table-container {
        background: white !important;
        border: 1px solid #ccc !important;
    }

    th {
        background: #f8f9fa !important;
        color: black !important;
    }

    td {
        color: black !important;
    }

    h1 {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }

    .logo {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}



/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before,
    body::after {
        animation: none !important;
    }
}

/* Focus indicators for better accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Better touch targets */
@media (pointer: coarse) {

    button,
    input,
    select,
    .nav-links a {
        min-height: 44px;
    }
}