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

:root {
    --primary-color: #00D4FF;
    --primary-light: #33E5FF;
    --primary-dark: #0099CC;
    --bg-dark: #0a1628;
    --bg-darker: #05101a;
    --card-bg: #0f1a2e;
    --text-light: #ffffff;
    --text-muted: #8899aa;
    --border-color: #1a3a5a;
    --success-color: #00ff99;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: #05101a;
    color: var(--text-light);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #05101a 0%, #0a1628 50%, #05101a 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Browser Header */
.header {
    margin-bottom: 25px;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.browser-bar {
    background: rgba(15, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.browser-bar:hover {
    background: rgba(15, 26, 46, 0.8);
    border-color: rgba(0, 212, 255, 0.2);
}

.url-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    flex: 1;
    min-width: 0;
    font-weight: 500;
}

.home-icon::before {
    content: "⌂";
    font-size: 16px;
}

.url {
    word-break: break-all;
    opacity: 0.8;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(0, 255, 153, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 153, 0.3);
    color: var(--success-color);
    z-index: 1000;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
    word-wrap: break-word;
    font-weight: 500;
    font-size: 14px;
}

.notification.hidden {
    display: none;
}

.notification.error {
    background: rgba(255, 50, 50, 0.08);
    border-color: rgba(255, 50, 50, 0.3);
    color: #ff6b6b;
}

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

/* Menu Button */
.menu-btn {
    position: fixed;
    left: 20px;
    top: 280px;
    background: rgba(15, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-line {
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.menu-btn:hover .menu-line {
    background: var(--primary-color);
}

/* Card Container */
.card {
    background: rgba(15, 26, 46, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

.element-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    bottom: -75px;
    left: -75px;
    animation: float 10s ease-in-out infinite reverse;
}

.element-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), #004080);
    bottom: 20%;
    right: 5%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 10px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    font-size: 56px;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    animation: pulse-text 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
}

@keyframes pulse-text {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
    }
}

.title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 4px;
    margin-bottom: 8px;
    word-spacing: 100vw;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Progress Section */
.progress-section {
    margin: 10px 0 30px 0;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.step-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.step-number.active::before {
    opacity: 1;
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(1.4);
        opacity: 0;
    }
}

.step-number.completed {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.step-number svg {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.step-number.active ~ .step-label,
.step-number.completed ~ .step-label {
    color: var(--primary-color);
}

.step-line {
    position: absolute;
    height: 2px;
    background: rgba(0, 212, 255, 0.1);
    top: 26px;
    left: 50%;
    right: -50%;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-line.active {
    background: linear-gradient(90deg, var(--primary-color), rgba(0, 212, 255, 0.3));
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* Step Content */
.step-content {
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3;
}

.step-content.active {
    display: block;
}

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

.step-content h3 {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Input Wrapper */
.input-wrapper {
    margin-bottom: 28px;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 14px;
    padding: 14px 18px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.input-group:focus-within {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.input-icon {
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
    font-weight: 700;
    opacity: 0.7;
}

.input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    outline: none;
    font-size: 14px;
    padding: 5px 0;
    font-weight: 500;
}

.input-field::placeholder {
    color: rgba(136, 153, 170, 0.5);
}

.input-field:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.2) inset;
    -webkit-text-fill-color: var(--text-light);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper:focus-within .input-underline {
    opacity: 1;
}

.copy-btn {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.copy-btn:active {
    transform: scale(0.98);
}

.copy-btn svg {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Checkbox Section */
.checkbox-section {
    margin-bottom: 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.checkbox-custom::before {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.checkbox-input:checked + .checkbox-custom::before {
    opacity: 1;
}

.checkbox-text {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Primary Button */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.primary-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.btn-icon {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.primary-btn:hover .btn-icon {
    transform: translateX(2px);
}

/* Connection Status */
.connection-status {
    text-align: center;
    font-size: 12px;
    color: rgba(136, 153, 170, 0.6);
    margin-top: 20px;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Success Container */
.success-container {
    text-align: center;
}

.success-icon {
    width: 90px;
    height: 90px;
    margin: 20px auto 30px;
    background: linear-gradient(135deg, rgba(0, 255, 153, 0.2), rgba(0, 255, 153, 0.05));
    border: 2px solid var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
    box-shadow: 0 0 40px rgba(0, 255, 153, 0.25);
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.success-icon svg {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 153, 0.2);
    animation: pulse-border 2s ease-out infinite;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-border {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(1.3);
        opacity: 0;
    }
}

.success-title {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 700;
}

.success-message {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 500;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--bg-dark);
    border-right-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .card {
        padding: 35px 20px;
        gap: 25px;
    }

    .logo {
        font-size: 48px;
    }

    .title {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .step-number {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-line {
        top: 23px;
    }

    .primary-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .header {
        margin-bottom: 15px;
    }

    .card {
        padding: 25px 15px;
        gap: 20px;
        border-radius: 20px;
    }

    .logo {
        font-size: 40px;
    }

    .title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 12px;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .step-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .step-content h3 {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .input-field {
        font-size: 13px;
    }

    .primary-btn {
        padding: 13px 20px;
        font-size: 13px;
        gap: 8px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .success-icon {
        width: 75px;
        height: 75px;
        margin: 15px auto 25px;
    }

    .success-title {
        font-size: 22px;
    }

    .success-message {
        font-size: 13px;
    }

    .menu-btn {
        width: 44px;
        height: 44px;
    }

    .notification {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .browser-bar {
        padding: 10px 14px;
    }

    .url-bar {
        font-size: 12px;
    }
}
