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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0A0E14;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
}

/* Scanlines cyberpunk */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.03) 2px,
        rgba(0, 240, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
    max-width: 420px;
    width: 100%;
    margin: auto;
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #00F0FF;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    letter-spacing: 2px;
}

.subtitle {
    color: #7B2CBF;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.phone-card {
    background: rgba(26, 31, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.2);
}

.target-info {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid #00F0FF;
    text-align: left;
}

.target-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.target-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #00F0FF;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-input {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #00F0FF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.phone-input:focus {
    outline: none;
    border-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.phone-input.error {
    border-color: #FF3366;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.call-button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #00F0FF 0%, #7B2CBF 100%);
    border: none;
    border-radius: 0.5rem;
    color: #0A0E14;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.call-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.call-button:hover::before {
    width: 300px;
    height: 300px;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.call-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.call-button.active {
    background: linear-gradient(135deg, #FF3366 0%, #FF006E 100%);
    color: #fff;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #888;
}

.status-dot.active {
    background: #00FF87;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
    animation: pulse 2s infinite;
}

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

.call-screen {
    display: none;
}

.call-screen.visible {
    display: block;
}

.timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    color: #00F0FF;
    margin: 2rem 0;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.transcript {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.transcript-line {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.transcript-line.berthe {
    background: rgba(123, 44, 191, 0.15);
    border-left: 3px solid #7B2CBF;
}

.transcript-line.user {
    background: rgba(0, 240, 255, 0.15);
    border-left: 3px solid #00F0FF;
}

.transcript-line strong {
    color: #00F0FF;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-msg {
    color: #FF3366;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 0.25rem;
    border-left: 3px solid #FF3366;
}

.hold-indicator {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 215, 10, 0.1);
    border: 1px solid rgba(255, 215, 10, 0.3);
    border-radius: 0.5rem;
    color: #FFD60A;
    font-size: 0.85rem;
}

.hold-indicator.visible {
    display: block;
    animation: pulse 1s infinite;
}

/* Push-to-Talk button */
.ptt-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 3px solid #00F0FF;
    color: #00F0FF;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.ptt-button:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.ptt-button:active, .ptt-button.active {
    background: #00F0FF;
    color: #0A0E14;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
    transform: scale(0.95);
}

.ptt-hint {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Call history */
.call-history {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(26, 31, 46, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.history-title {
    font-size: 0.75rem;
    color: #7B2CBF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.history-item {
    padding: 0.5rem;
    background: rgba(0, 240, 255, 0.05);
    border-left: 2px solid #00F0FF;
    margin-bottom: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.history-empty {
    color: #555;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.history-date {
    color: #888;
    font-size: 0.75rem;
}

.history-result {
    color: #00F0FF;
    font-weight: 600;
}

.history-result.success {
    color: #39ac5a;
}

.history-result.fail {
    color: #FF3366;
}

/* Timer warning */
.timer-warning {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 0.5rem;
    color: #FF3366;
    font-size: 0.85rem;
    animation: pulse 1s infinite;
}

.timer-warning.visible {
    display: block;
}
