* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    color: #1a1a1a;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

h1, h2, h3 {
    margin-top: 0;
}

a {
    color: #0071e3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

button, .btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #0071e3;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

button:hover, .btn:hover {
    background: #005bb5;
}

.btn-danger {
    background: #ff3b30;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-secondary {
    background: #6c757d;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.navbar {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 0;
}

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

.navbar a {
    color: #fff;
    margin-left: 16px;
}

.navbar a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

th {
    font-weight: 600;
    background: #f9f9f9;
}

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

.price {
    font-weight: 600;
    white-space: nowrap;
}

.cost {
    color: #6c757d;
    font-size: 13px;
}

.login-box {
    max-width: 360px;
    margin: 80px auto;
}

.small {
    font-size: 13px;
    color: #6c757d;
}

.btn-small {
    padding: 6px 10px;
    font-size: 13px;
}

.btn-copy {
    background: #34c759;
}

.btn-copy:hover {
    background: #248a3d;
}

.btn-edit-copy {
    background: #fff;
    color: #0071e3;
    border: 1px solid #0071e3;
    margin-left: 4px;
}

.btn-edit-copy:hover {
    background: #f0f7ff;
}

.copy-actions {
    white-space: nowrap;
}

.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
}

.modal-content textarea {
    width: 100%;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
