:root {
    --primary-color: #333;
    --accent-color: #5d9cec; /* Soft blue like many modern blogs */
    --success-color: #10b981;
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --nav-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    justify-content: center;
}

/* Background Effect (Blob) */
.background-blob {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(93, 156, 236, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--nav-height));
}

.hidden {
    display: none !important;
}

/* Navbar - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-clock {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    font-family: monospace;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: opacity 0.2s;
}
.logo-area:hover {
    opacity: 0.8;
}

.nav-logo {
    width: auto;
    height: 50px;
    margin-right: 10px;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Loader */
#loading {
    justify-content: center;
    align-items: center;
}
.loader {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Main Card (Minimalist) */
.main-card {
    background: transparent;
    padding: 2rem 1.5rem;
    box-shadow: none;
    margin-top: 1rem;
    text-align: center;
    flex: 1;
}

.product-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    padding: 12px;
    background: #ffffff00;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.verification-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px currentColor;
}

/* Details Section */
.details-section {
    text-align: left;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}
.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.link {
    color: var(--accent-color);
    text-decoration: none;
}

/* IP Protection Card */
.ip-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    text-align: left;
}

.ip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-right: 12px;
}
.ip-icon svg {
    width: 20px;
    height: 20px;
}

.ip-info {
    flex: 1;
}
.ip-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
}
.ip-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ip-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.ip-card.disabled {
    opacity: 0.6;
}
.ip-card.disabled .ip-status-indicator {
    background: #9ca3af;
}

/* Footer (Transparent/Simple) */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}
.footer a {
    color: inherit;
    text-decoration: underline;
}

/* Error State */
.error-card {
    background: transparent;
    padding: 3rem 2rem;
    box-shadow: none;
    text-align: center;
    margin-top: 2rem;
}
.error-icon {
    width: 50px;
    height: 50px;
    background: #fee2e2;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.error-card h2 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.error-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Generator Page Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

.code-preview {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    min-height: 100px;
    text-align: left;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.seal-preview-box {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Code Card Refined Styles */
.code-card-wrapper {
    margin-top: 2rem;
    text-align: left;
}

.code-card {
    background: #1e293b; /* Dark theme for code */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.code-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.header-title {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 12px;
}

.copy-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
}

.code-content {
    width: 100%;
    background: #1e293b;
    border: none;
    color: #e2e8f0;
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    min-height: 140px;
    outline: none;
    display: block;
}