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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px 100px 20px;
}

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

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb800 100%);
    color: #333;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert ul {
    margin: 8px 0 0 20px;
}

.alert li {
    margin: 4px 0;
}

/* Forms */
.password-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.label-icon {
    font-size: 18px;
}

textarea,
input[type="text"],
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

textarea:focus,
input[type="text"]:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* Security Features */
.security-features {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 2px solid #667eea;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
}

.badge-icon {
    font-size: 16px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-copy {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-large {
    width: 100%;
    padding: 18px 24px;
    font-size: 17px;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn-copy {
    padding: 10px 16px;
    background: #667eea;
    color: white;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #5568d3;
}

.btn-copy.copied {
    background: #10b981;
}

.btn-icon {
    font-size: 18px;
}

/* Info Section */
.info-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.info-section h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-text strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
}

.info-text br + em {
    color: #888;
    font-size: 13px;
}

/* Success Card */
.success-card,
.view-card {
    text-align: center;
}

.success-icon,
.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-card h2,
.view-card h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 12px;
}

.success-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

/* Link Display */
.link-container {
    margin: 32px 0;
}

.link-display {
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.link-display input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

/* Password Display */
.password-display {
    margin: 32px 0;
}

.password-display label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

.password-box {
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #667eea;
}

.password-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Password Info */
.password-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-weight: 700;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Error Message */
.error-message {
    font-size: 16px;
    color: #666;
    margin: 20px 0;
}

/* Billboard Promotional Section */
.billboard-promo {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    max-width: 380px;
}

.promo-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease-out;
}

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

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.promo-ai {
    border-left-color: #10a37f;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
}

.promo-news {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fef5f3 100%);
}

.promo-tools {
    border-left-color: #4A90E2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.promo-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: inline-block;
}

.promo-card h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.promo-card p {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.promo-card p:last-of-type {
    margin-bottom: 10px;
}

.promo-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.promo-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Powered By Footer */
.powered-by {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    text-align: center;
    border-top: 2px solid #667eea;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.powered-by p {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.powered-by a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.powered-by a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.powered-by .separator {
    margin: 0 10px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 15px 100px 15px;
    }
    
    .card {
        padding: 24px 20px;
    }
    
    .card-header h1 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .billboard-promo {
        position: static;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .link-display,
    .password-box {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons a,
    .action-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card-header h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .security-features {
        flex-direction: column;
    }
    
    .feature-badge {
        justify-content: center;
    }
}
